IS_UNDEF should never goes to user script land

This commit is contained in:
Xinchen Hui 2014-03-15 22:37:27 +08:00
parent 2a8cef80cf
commit d0bbc227aa
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);