From: Stanislav Malyshev Date: Tue, 29 Sep 2015 03:44:28 +0000 (-0700) Subject: Merge branch 'PHP-5.5' into PHP-5.6 X-Git-Tag: php-5.6.15RC1~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51b23cd0f0b35e4748fac9ca19fb7825cf382ffd;p=php Merge branch 'PHP-5.5' into PHP-5.6 * PHP-5.5: fix memory leak FIx bug #70433 - Uninitialized pointer in phar_make_dirstream when zip entry filename is "/" Conflicts: ext/phar/dirstream.c --- 51b23cd0f0b35e4748fac9ca19fb7825cf382ffd diff --cc ext/phar/dirstream.c index e863509b6c,4728e29f9c..e6926ce154 --- a/ext/phar/dirstream.c +++ b/ext/phar/dirstream.c @@@ -198,7 -207,7 +198,7 @@@ static php_stream *phar_make_dirstream( zend_hash_internal_pointer_reset(manifest); while (FAILURE != zend_hash_has_more_elements(manifest)) { - if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(manifest, &str_key, &keylen, &unused, 0, NULL)) { - if (HASH_KEY_IS_STRING != zend_hash_get_current_key_ex(manifest, &key, &keylen, &unused, 0, NULL)) { ++ if (HASH_KEY_IS_STRING != zend_hash_get_current_key_ex(manifest, &str_key, &keylen, &unused, 0, NULL)) { break; }