com php-src: Fixed interned string leaks after new STATIC_KEY flag is introduced: Zend/zend_string.c

From: Date: Tue, 28 Apr 2015 03:14:21 +0000
Subject: com php-src: Fixed interned string leaks after new STATIC_KEY flag is introduced: Zend/zend_string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86510@lists.php.net to get a copy of this message
Commit: e5633865829a5160077e327445c7ff490f2d05d4 Author: Xinchen Hui <laruence@php.net> Tue, 28 Apr 2015 11:14:21 +0800 Parents: 422de8a7a7500b26abd7cc0716b7390033626c53 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e5633865829a5160077e327445c7ff490f2d05d4 Log: Fixed interned string leaks after new STATIC_KEY flag is introduced Changed paths: M Zend/zend_string.c Diff: diff --git a/Zend/zend_string.c b/Zend/zend_string.c index e8685a4..f395d5c 100644 --- a/Zend/zend_string.c +++ b/Zend/zend_string.c @@ -38,8 +38,7 @@ ZEND_API zend_ulong zend_hash_func(const char *str, size_t len) static void _str_dtor(zval *zv) { zend_string *str = Z_STR_P(zv); - GC_FLAGS(str) &= ~IS_STR_INTERNED; - GC_REFCOUNT(str) = 1; + pefree(str, GC_FLAGS(str) & IS_STR_PERSISTENT); } #endif

« previous php.cvs (#86510) next »