Why do we want to continue treating objects as arrays? Can't people
simply pass get_object_vars($obj) result to array_walk?
In any case, does the error message make sense though?
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "The argument should be
an array");
-Andrei
On Sep 19, 2006, at 2:33 AM, Antony Dovgal wrote:
tony2001 Tue Sep 19 09:33:02 2006 UTC
Added files:
/php-src/ext/standard/tests/array array_walk_objects.phpt
array_walk_rec_objects.phpt
Modified files:
/php-src/ext/standard array.c
/php-src/ext/standard/tests/array array_walk.phpt
array_walk_recursive1.phpt
Log:
support objects in array_walk*()
add new tests, fix old ones
<tony2001-20060919093302.txt>--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php