Skip to content

Commit 83d8ebc

Browse files
committed
Revert "Properly update string type flags"
This reverts commit 99b1a62.
1 parent 2874fa8 commit 83d8ebc

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Zend/zend_variables.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,6 @@ ZEND_API void ZEND_FASTCALL _zval_copy_ctor_func(zval *zvalue ZEND_FILE_LINE_DC)
219219
{
220220
if (EXPECTED(Z_TYPE_P(zvalue) == IS_ARRAY)) {
221221
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;
229222
} else if (EXPECTED(Z_TYPE_P(zvalue) == IS_STRING) ||
230223
EXPECTED(Z_TYPE_P(zvalue) == IS_CONSTANT)) {
231224
CHECK_ZVAL_STRING_REL(Z_STR_P(zvalue));

0 commit comments

Comments
 (0)