From a25a1ba0ef263e9e1d65b8eaebd3e764878c55c7 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 1 Apr 2014 16:31:03 +0400 Subject: STR_DUP() doesn't duplicate interned strings anymore. In case new string is required STR_INIT() or STR_ALLOC() should be used. --- Zend/zend_variables.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Zend/zend_variables.c') 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: { -- cgit v1.2.1