Re: RC1

From: Date: Wed, 04 Feb 2004 19:37:11 +0000
Subject: Re: RC1
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-7566@lists.php.net to get a copy of this message
At 02:33 PM 2/4/2004 -0500, Sterling Hughes wrote:
http://marc.theaimsgroup.com/?l=php-dev&m=107367078904900&w=2 The main problem with a too early beta/rc release is we (well you ;) ) have to be sure that the ZE2 apis works the way it should. And not only from the php side. For the good all php extensions that are not bundled with the php releases (and I'm not thinking only about pecl :) ).
Yeah we looked at it today. It seems to be a bit of a problem. The correct way of doing this is to nuke get_properties() and only use set/get overloading handlers. However, it would mean that extension writers who want foreach() to work would have to implement iterator interface. I'm not quite sure how to go on this one. IMO get_properties() should not be used with non-PHP objects. how would one handle var_dump($obj) then?
Quite a problem, no doubt. The question is, should we expect every overloaded object to be able to give its properties as a hash? (I guess it could return an empty one). Pierre, is the problem only with foreach()? Andi

« previous php.internals (#7566) next »