Re: cvs: php-src /ext/standard array.c /ext/standard/tests/array array_walk.phpt array_walk_objects.phpt array_walk_rec_objects.phpt
array_walk_recursive1.phpt
| From: | Andrei Zmievski | Date: | Tue, 19 Sep 2006 15:38:53 +0000 |
| Subject: | Re: cvs: php-src /ext/standard array.c /ext/standard/tests/array array_walk.phpt array_walk_objects.phpt array_walk_rec_objects.phpt array_walk_recursive1.phpt |
||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-40600@lists.php.net to get a copy of this message | ||
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.phptModified files:/php-src/ext/standard array.c /php-src/ext/standard/tests/array array_walk.phpt array_walk_recursive1.phptLog: 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