diff options
Diffstat (limited to 'Zend/zend_variables.c')
| -rw-r--r-- | Zend/zend_variables.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c index 90415ba47e..2427871a22 100644 --- a/Zend/zend_variables.c +++ b/Zend/zend_variables.c @@ -199,7 +199,9 @@ ZEND_API void _zval_copy_ctor_func(zval *zvalue ZEND_FILE_LINE_DC) case IS_CONSTANT: case IS_STRING: CHECK_ZVAL_STRING_REL(zvalue); - Z_STR_P(zvalue) = STR_DUP(Z_STR_P(zvalue), 0); + if (!IS_INTERNED(Z_STR_P(zvalue))) { + Z_STR_P(zvalue) = STR_DUP(Z_STR_P(zvalue), 0); + } break; case IS_ARRAY: case IS_CONSTANT_ARRAY: { |
