mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
IS_UNDEF should never goes to user script land
This commit is contained in:
parent
2a8cef80cf
commit
d0bbc227aa
@ -430,7 +430,7 @@ static void spl_array_write_dimension_ex(int check_inherited, zval *object, zval
|
||||
if (check_inherited && intern->fptr_offset_set) {
|
||||
zval tmp;
|
||||
if (!offset) {
|
||||
ZVAL_UNDEF(&tmp);
|
||||
ZVAL_NULL(&tmp);
|
||||
offset = &tmp;
|
||||
} else {
|
||||
SEPARATE_ARG_IF_REF(offset);
|
||||
|
@ -422,7 +422,7 @@ static void spl_fixedarray_object_write_dimension(zval *object, zval *offset, zv
|
||||
if (intern->fptr_offset_set) {
|
||||
zval tmp;
|
||||
if (!offset) {
|
||||
ZVAL_UNDEF(&tmp);
|
||||
ZVAL_NULL(&tmp);
|
||||
offset = &tmp;
|
||||
} else {
|
||||
SEPARATE_ARG_IF_REF(offset);
|
||||
|
Loading…
Reference in New Issue
Block a user