From: Etienne Kneuss Date: Thu, 19 Mar 2009 03:00:44 +0000 (+0000) Subject: Fix #47231 (offsetGet error using incorrect offset) X-Git-Tag: php-5.4.0alpha1~191^2~4097 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c856710706dc1839959d8417bd908a2d73bb8aae;p=php Fix #47231 (offsetGet error using incorrect offset) --- diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index 6ea9c1c50b..a3a3aa6384 100755 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -348,7 +348,7 @@ static zval **spl_array_get_dimension_ptr_ptr(int check_inherited, zval *object, zend_hash_index_find(ht, index, (void **) &retval); return retval; } else { - zend_error(E_NOTICE, "Undefined offset: %ld", Z_LVAL_P(offset)); + zend_error(E_NOTICE, "Undefined offset: %ld", index); return &EG(uninitialized_zval_ptr); } } else {