Re: [PHP] Re: New object model

2004-07-15 Thread Marek Kilimajer
Jason Barnett wrote: Although you can turn on zend engine 1 compatibility, if you intend to distribute your code you cannot expect this on most servers. Another way to pass by value is to use the __clone method. function test($orig, $clone) { $orig->x = 'I am the original.'; $clone->x = 'I

[PHP] Re: New object model

2004-07-14 Thread Jason Barnett
Troy S wrote: Is there an ini-file setting so that objects are passed by value as in PHP 4? If so, how long is this likely to be supported? Thanks, Troy Although you can turn on zend engine 1 compatibility, if you intend to distribute your code you cannot expect this on most servers. Another wa

[PHP] Re: New object model

2004-07-14 Thread Ben Ramsey
Troy S wrote: Is there an ini-file setting so that objects are passed by value as in PHP 4? If so, how long is this likely to be supported? I believe this is possible with the following setting in php.ini: zend.ze1_compatibility_mode = On This should turn on PHP5's backwards compatibility with PHP