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:[EMAIL PROTECTED]

--
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

-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to