Browse Source

- Derick changed the test but forgot to make the code use E_RECOVERABLE_ERROR

migration/RELEASE_1_0_0
Marcus Boerger 21 years ago
parent
commit
7a9c654f83
  1. 3
      ext/spl/spl_array.c

3
ext/spl/spl_array.c

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

Loading…
Cancel
Save