From c856710706dc1839959d8417bd908a2d73bb8aae Mon Sep 17 00:00:00 2001 From: Etienne Kneuss Date: Thu, 19 Mar 2009 03:00:44 +0000 Subject: [PATCH] Fix #47231 (offsetGet error using incorrect offset) --- ext/spl/spl_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.50.1