diff options
Diffstat (limited to 'ext/spl/spl_array.c')
| -rw-r--r-- | ext/spl/spl_array.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index 2835876e33..44f201d9b9 100644 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -787,7 +787,10 @@ static HashTable *spl_array_get_properties(zval *object) /* {{{ */ HashTable *result; if (intern->nApplyCount > 1) { - php_error_docref(NULL, E_ERROR, "Nesting level too deep - recursive dependency?"); + zend_throw_error(zend_ce_error, "Nesting level too deep - recursive dependency?"); + ALLOC_HASHTABLE(result); + ZEND_INIT_SYMTABLE(result); + return result; } intern->nApplyCount++; |
