Re: PHP 5 and Implicit cloning
| From: | Jules | Date: | Thu, 22 Jul 2004 11:55:04 +0000 |
| Subject: | Re: PHP 5 and Implicit cloning | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191513@lists.php.net to get a copy of this message | ||
Jason,
I need it for other reasons. This is not a new application that is causing
this. It was built on PHP 4 and therefore has lots of non PHP 5 elements.
So I'm pretty sure I need than on, unless someone has another idea...
Thanks,
Jules...
"Jason Barnett" <jasbarne@indiana.edu> wrote in message
news:20040722112013.7653.qmail@pb1.pair.com...
> If you need a copy of an object (like the default in PHP4), you can
explicitly
> do that with clone.
>
> $cErrorHandler = new testErrors();
> $clone = clone $cErrorHandler;
>
> If you do this you shouldn't need zend engine 1 compatibility (unless you
need
> that for other reasons).