PEAR_ErrorStack documentation error ?
| From: | Yashesh Bhatia | Date: | Fri, 25 Mar 2005 06:06:12 +0000 |
| Subject: | PEAR_ErrorStack documentation error ? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-18321@lists.php.net to get a copy of this message | ||
hello:
while going thru the documentation of PEAR_ErrorStack http://pear.php.net/manual/en/core.pear.pear-errorstack.intro.php
the first example shows
// use the callback
$dbstack->setDefaultCallback(array(&$myobj, 'errorCallback'))
now it seems the intent of the above method invocation is to use the
callback only for the dbstack. However when reading the documentation
for the method setDefaultCallback it mentions that it should be
called statically.
http://pear.php.net/manual/en/core.pear.pear-errorstack.setdefaultcallback.php
any reason why the method is being called with an instance of the
errorstack ?
thank you.
regards.
yashesh bhatia.
--
go pre
http://www2.localaccess.com/rlalonde/pre.htm