diff options
author | Reeze Xia <reeze@php.net> | 2015-12-09 00:02:00 +0800 |
---|---|---|
committer | Reeze Xia <reeze@php.net> | 2015-12-09 00:04:12 +0800 |
commit | 3427c122bf02488559ef5fdf0e9403396c30a5f1 (patch) | |
tree | a1c13edfc01eb1a59265249e7b9abcddc0791d0a /ext/filter/filter.c | |
parent | e26b605c2184c4ae29c3cdfaaf5bc7b2cb297988 (diff) | |
download | php-git-3427c122bf02488559ef5fdf0e9403396c30a5f1.tar.gz |
Fixed bug #71063 (filter_input(INPUT_ENV, ..) does not work)
Diffstat (limited to 'ext/filter/filter.c')
-rw-r--r-- | ext/filter/filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/filter/filter.c b/ext/filter/filter.c index e29a36ab71..581fc9c598 100644 --- a/ext/filter/filter.c +++ b/ext/filter/filter.c @@ -546,7 +546,7 @@ static zval *php_filter_get_storage(zend_long arg)/* {{{ */ if (PG(auto_globals_jit)) { zend_is_auto_global_str(ZEND_STRL("_ENV")); } - array_ptr = &IF_G(env_array) ? &IF_G(env_array) : &PG(http_globals)[TRACK_VARS_ENV]; + array_ptr = !Z_ISUNDEF(IF_G(env_array)) ? &IF_G(env_array) : &PG(http_globals)[TRACK_VARS_ENV]; break; case PARSE_SESSION: /* FIXME: Implement session source */ |