File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,13 @@ ZEND_API void ZEND_FASTCALL _zval_copy_ctor_func(zval *zvalue ZEND_FILE_LINE_DC)
219
219
{
220
220
if (EXPECTED (Z_TYPE_P (zvalue ) == IS_ARRAY )) {
221
221
ZVAL_ARR (zvalue , zend_array_dup (Z_ARRVAL_P (zvalue )));
222
+ } else if (EXPECTED (Z_TYPE_P (zvalue ) == IS_STRING )) {
223
+ CHECK_ZVAL_STRING_REL (Z_STR_P (zvalue ));
224
+ ZVAL_NEW_STR (zvalue , zend_string_dup (Z_STR_P (zvalue ), 0 ));
225
+ } else if (EXPECTED (Z_TYPE_P (zvalue ) == IS_CONSTANT )) {
226
+ CHECK_ZVAL_STRING_REL (Z_STR_P (zvalue ));
227
+ Z_STR_P (zvalue ) = zend_string_dup (Z_STR_P (zvalue ), 0 );
228
+ Z_TYPE_INFO_P (zvalue ) = IS_CONSTANT_EX ;
222
229
} else if (EXPECTED (Z_TYPE_P (zvalue ) == IS_STRING ) ||
223
230
EXPECTED (Z_TYPE_P (zvalue ) == IS_CONSTANT )) {
224
231
CHECK_ZVAL_STRING_REL (Z_STR_P (zvalue ));
You can’t perform that action at this time.
0 commit comments