Re: HTTP_client and listeners
| From: | Dan Rossi | Date: | Thu, 16 Feb 2006 07:19:12 +0000 |
| Subject: | Re: HTTP_client and listeners | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23005@lists.php.net to get a copy of this message | ||
Fatal error: Interface 'HTTP_Listener' not found in
:D
This brings me back to my other discussion, has there been any thought of suggesting to maintainers to port their packages to php5 , and then create a different channel called ie pear5 where it only contains php5 pear classes, which also stores the PEAR base classes also in php5 ? If there was such then there would be an Interface called HTTP_Listener :D
This means classes dont need to have 2 appended on the end also ;)
On 16/02/2006, at 4:02 PM, Justin Patrin wrote:
On 2/15/06, Dan Rossi <pear@electroteque.org> wrote:Can somebody explain why the attached listener is required to extend HTTP_Request_Listener ?? if (!is_a($listener, 'HTTP_Request_Listener')) {Likely it was a hack to make sure that you implemented the interface. This *should* be done with an Interface. -- Justin Patrinreturn false; }This kinda sucks as i cant attach the current class of $this or self to be the listener object and it obviouslly needs to extend that class. Generally listener objects dont require to extend the event dispatcher ??? As of now i cant send database connections to a method call like that. Any ideas ?