Re: do pear packages create their own seperate DB connections?

From: Date: Tue, 22 Apr 2003 21:04:40 +0000
Subject: Re: do pear packages create their own seperate DB connections?
References: 1 2 3 4 5 6 7 8  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15355@lists.php.net to get a copy of this message
Hans Lellelid wrote:
Statics are a much better way to handle this IMO. There is some fringe behavior with statics in singleton method, however. (At least when using PHP4 which doesn't have class-scope static variables). I generally use: function &getInstance() { static $instance; if (!isset($instance)) {
      $instance = new Class(); // NOT by reference
} return $instance; }
yes of course. thanks -- Wolfram http://opensource.visionp.de ... authentication system .... http://sf.net/projects/auth

« previous php.pear.dev (#15355) next »