Objects as Arrays
| From: | (Marcus B�rger) | Date: | Fri, 19 Sep 2003 11:18:53 +0000 |
| Subject: | Objects as Arrays | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-4529@lists.php.net to get a copy of this message | ||
Hello internals,
IIRC it was intended to use object properties as arrays. Currently most
array_*() functions do explicitly check for IS_ARRAY. The patch below now
enables objects in nearly all array_*() functions. The contray of such an
approach is that it would allow to access/modify protected and private
properties. But for some functions we do it already so we need to find a
solution for that sooner or later independantly from this patch.
Any thoughts?
http://marcus-boerger.de/php/ext/standard/php-array-20030918.diff.txt
--
Best regards,
Marcus mailto:mail@marcus-boerger.de