]> granicus.if.org Git - php/commitdiff
- Derick changed the test but forgot to make the code use E_RECOVERABLE_ERROR
authorMarcus Boerger <helly@php.net>
Sun, 18 Sep 2005 17:32:52 +0000 (17:32 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 18 Sep 2005 17:32:52 +0000 (17:32 +0000)
ext/spl/spl_array.c

index be51aa81c7aa7cb64151dbbc238e264092e5d85d..952f54734666085d38d766730e312f10bf49dfb3 100755 (executable)
@@ -475,7 +475,8 @@ void spl_array_iterator_append(zval *object, zval *append_value TSRMLS_DC) /* {{
        }
        
        if (Z_TYPE_P(intern->array) == IS_OBJECT) {
-               php_error_docref(NULL TSRMLS_CC, E_ERROR, "Cannot append properties to objects, use %v::offsetSet() instead", Z_OBJCE_P(object)->name);
+               php_error_docref(NULL TSRMLS_CC, E_RECOVERABLE_ERROR, "Cannot append properties to objects, use %v::offsetSet() instead", Z_OBJCE_P(object)->name);
+               return;
        }
 
        spl_array_write_dimension(object, NULL, append_value TSRMLS_CC);