Re: Singleton Pattern?
| From: | Michael Wallner | Date: | Thu, 18 Mar 2004 22:54:38 +0000 |
| Subject: | Re: Singleton Pattern? | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-26570@lists.php.net to get a copy of this message | ||
8-|
...posted to the wrong address...
Hi Paul,
that's simple because of an PHP4 bug. Either assign
the object to $obj by value, or don't use a static
method variable for implementing the singleton
pattern in your package.
Regards,
--
mike(@)php.net