Re: Objects as Arrays

From: Date: Fri, 19 Sep 2003 22:37:17 +0000
Subject: Re: Objects as Arrays
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-4535@lists.php.net to get a copy of this message
I agree. The idea was to nuke this old "hackish behavior" with PHP 5. Arrays and Objects are two different beasts now. Andi At 10:34 PM 9/19/2003 +0300, Zeev Suraski wrote:
I generally think that it isn't consistent with the clear separation that we're having in ZE2 - objects are no longer 'pretty arrays'. I think people should get used to it. Zeev At 14:18 19/09/2003, Marcus Börger wrote:
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
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.internals (#4535) next »