diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-04-01 16:31:03 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-04-01 16:31:03 +0400 |
commit | a25a1ba0ef263e9e1d65b8eaebd3e764878c55c7 (patch) | |
tree | 978ef72e0c909146687f463f5066e3d9672eb5ce /Zend/zend_variables.c | |
parent | 7eff369ba94f244604669f4b0e9737dc06265f43 (diff) | |
download | php-git-a25a1ba0ef263e9e1d65b8eaebd3e764878c55c7.tar.gz |
STR_DUP() doesn't duplicate interned strings anymore. In case new string is required STR_INIT() or STR_ALLOC() should be used.
Diffstat (limited to 'Zend/zend_variables.c')
-rw-r--r-- | Zend/zend_variables.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c index 4a7fb4f74a..e9a0db8654 100644 --- a/Zend/zend_variables.c +++ b/Zend/zend_variables.c @@ -237,9 +237,7 @@ ZEND_API void _zval_copy_ctor_func(zval *zvalue ZEND_FILE_LINE_DC) case IS_CONSTANT: case IS_STRING: CHECK_ZVAL_STRING_REL(zvalue); - if (!IS_INTERNED(Z_STR_P(zvalue))) { - Z_STR_P(zvalue) = STR_DUP(Z_STR_P(zvalue), 0); - } + Z_STR_P(zvalue) = STR_DUP(Z_STR_P(zvalue), 0); break; case IS_ARRAY: case IS_CONSTANT_ARRAY: { |