diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-12-01 17:44:20 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-12-01 17:44:20 +0100 |
commit | 7f96b4aa63059d7f9d53d0228431b24d7c193dac (patch) | |
tree | 6d1e6cd44e3d9a2c7169285693b026b8a21771dd /env-pr8.patch | |
parent | 39dd9c32296d4d36b988ac13fbf9042c229cf582 (diff) |
php-pecl-env: add patch for 7.1
Diffstat (limited to 'env-pr8.patch')
-rw-r--r-- | env-pr8.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/env-pr8.patch b/env-pr8.patch new file mode 100644 index 0000000..6bcae23 --- /dev/null +++ b/env-pr8.patch @@ -0,0 +1,22 @@ +From 58552b8035d4b0a72040f0c8aed91ae849172eda Mon Sep 17 00:00:00 2001 +From: Remi Collet <fedora@famillecollet.com> +Date: Thu, 1 Dec 2016 17:40:42 +0100 +Subject: [PATCH] fix segfault with 7.1.0, fix #7 + +--- + php7/php_env.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/php7/php_env.c b/php7/php_env.c +index 22c19b4..b891ba7 100644 +--- a/php7/php_env.c ++++ b/php7/php_env.c +@@ -37,7 +37,7 @@ void php_env_module_init(HashTable *vars TSRMLS_DC) { + fh.filename = ENV_G(file); + fh.type = ZEND_HANDLE_FP; + +- if (zend_parse_ini_file(&fh, 0, 0 /* ZEND_INI_SCANNER_NORMAL */, ++ if (zend_parse_ini_file(&fh, 1, 0 /* ZEND_INI_SCANNER_NORMAL */, + php_env_ini_parser_cb, vars) == FAILURE || ENV_G(parse_err)) { + if (ENV_G(parse_err)) { + php_error(E_WARNING, "env: parsing '%s' failed", ENV_G(file)); |