Skip to content

Commit aa791a4

Browse files
committed
Removed deprecated check
1 parent 0e25e00 commit aa791a4

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Zend/zend_execute.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -898,13 +898,10 @@ static inline zval* zend_assign_to_variable(zval **variable_ptr_ptr, zval *value
898898
} else if (EXPECTED(!PZVAL_IS_REF(value))) {
899899
Z_ADDREF_P(value);
900900
*variable_ptr_ptr = value;
901-
if (EXPECTED(variable_ptr != &EG(uninitialized_zval))) {
902-
GC_REMOVE_ZVAL_FROM_BUFFER(variable_ptr);
903-
zval_dtor(variable_ptr);
904-
efree(variable_ptr);
905-
} else {
906-
Z_DELREF_P(variable_ptr);
907-
}
901+
ZEND_ASSERT(variable_ptr != &EG(uninitialized_zval));
902+
GC_REMOVE_ZVAL_FROM_BUFFER(variable_ptr);
903+
zval_dtor(variable_ptr);
904+
efree(variable_ptr);
908905
return value;
909906
} else {
910907
goto copy_value;

0 commit comments

Comments
 (0)