helly Fri Apr 6 15:32:29 2007 UTC Added files: (Branch: PHP_5_2) /php-src/ext/spl/tests bug40442.phpt
Modified files: /php-src/ext/spl spl_array.c Log: - Fix #40442 http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_array.c?r1=1.123&r2=1.124&diff_format=u Index: php-src/ext/spl/spl_array.c diff -u php-src/ext/spl/spl_array.c:1.123 php-src/ext/spl/spl_array.c:1.124 --- php-src/ext/spl/spl_array.c:1.123 Sat Mar 24 16:28:45 2007 +++ php-src/ext/spl/spl_array.c Fri Apr 6 15:32:29 2007 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: spl_array.c,v 1.123 2007/03/24 16:28:45 helly Exp $ */ +/* $Id: spl_array.c,v 1.124 2007/04/06 15:32:29 helly Exp $ */ #ifdef HAVE_CONFIG_H # include "config.h" @@ -525,7 +525,7 @@ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &index) == FAILURE) { return; } - RETURN_BOOL(spl_array_has_dimension_ex(0, getThis(), index, 1 TSRMLS_CC)); + RETURN_BOOL(spl_array_has_dimension_ex(0, getThis(), index, 0 TSRMLS_CC)); } /* }}} */ /* {{{ proto mixed ArrayObject::offsetGet(mixed $index) U http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/bug40442.phpt?view=markup&rev=1.1 Index: php-src/ext/spl/tests/bug40442.phpt +++ php-src/ext/spl/tests/bug40442.phpt -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php