You can use the zend2.implicit_clone INI directive (change it at run-time if you want at the beginning of the application).
But I do want to move my application to the new semantics, I think it is much more reasonable than the PHP4 behaviour anyway (sadly enough my request to ref instead of copy on assignment was turned down in the PHP4 alpha days ;-)).
I simply want to have a way of doing an explicit clone where it is really needed. I still can't see no reason why there should be no migration path for this. PHP5 adoption is going to be hard enough due to subtle bugs arising from this so I think clone() is the least we could do here. Forcing people to use zend2.implicit_clone won't help this IMHO.
- Chris
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php