Re: PHP 5 and Implicit cloning
| From: | Jason Barnett | Date: | Thu, 22 Jul 2004 11:19:51 +0000 |
| Subject: | Re: PHP 5 and Implicit cloning | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191508@lists.php.net to get a copy of this message | ||
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).