colder Thu Mar 19 03:00:45 2009 UTC Modified files: /php-src/ext/spl spl_array.c Log: Fix #47231 (offsetGet error using incorrect offset) http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_array.c?r1=1.162&r2=1.163&diff_format=u Index: php-src/ext/spl/spl_array.c diff -u php-src/ext/spl/spl_array.c:1.162 php-src/ext/spl/spl_array.c:1.163 --- php-src/ext/spl/spl_array.c:1.162 Tue Mar 10 23:39:38 2009 +++ php-src/ext/spl/spl_array.c Thu Mar 19 03:00:44 2009 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: spl_array.c,v 1.162 2009/03/10 23:39:38 helly Exp $ */ +/* $Id: spl_array.c,v 1.163 2009/03/19 03:00:44 colder Exp $ */ #ifdef HAVE_CONFIG_H # include "config.h" @@ -348,7 +348,7 @@ 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 {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php