]> granicus.if.org Git - php/commitdiff
IS_UNDEF should never goes to user script land
authorXinchen Hui <laruence@gmail.com>
Sat, 15 Mar 2014 14:37:27 +0000 (22:37 +0800)
committerXinchen Hui <laruence@gmail.com>
Sat, 15 Mar 2014 14:37:27 +0000 (22:37 +0800)
ext/spl/spl_array.c
ext/spl/spl_fixedarray.c

index aa66e5ca25e0d6884f10fdcf726a187c83a8c845..82f166fe6d9a980ec52e9f126ec335c379922df9 100644 (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);
index d8f61ce3499a5b0ef979e8433724089e8a7292c8..0a8b8502fdfca5f429280d7b300c0e5dee2fe2c9 100644 (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);