Re: coding recommendations

From: Date: Sun, 26 Jan 2003 20:09:25 +0000
Subject: Re: coding recommendations
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-12761@lists.php.net to get a copy of this message
Krystof Slaby wrote:
I'm not able to make it behave different what's wrong with it? do I make some (maybe fundamental) mistake? There is no different if you call the parent constructors without
parameters. But if you set a own error class, you must use $this: $this->PEAR("my_error_class"); Else the call is senseless, because the name is stored in an instance variable. It's a current bug in php, that parent_class::method behaves like $this->method, if used in a child_class method. Although while using parent_class::method $this should not exist, it does it! Thats the reason why pushErrorhandling and other PEAR-Error related methods doesn't works correctly, and are still unusable.
system resources (such as free handles etc.) - if this fails, it's better to
pass an error than continue and pass an error when method is called (though it
must be also done), you get the hint that something went wrong and you
Thats why the factory pattern was found.

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