PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
HTTP_Request_DownloadListener

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTTP
View previous topic :: View next topic  
Author Message
robertos



Joined: 17 Mar 2007
Posts: 32

PostPosted: Sun Apr 01, 2007 7:49 pm    Post subject: HTTP_Request_DownloadListener Reply with quote

Hello,

I'm trying the example with the http request listener from page:
http://pear.php.net/manual/en/package.http.http-request.listeners.php

However i got this error:Unhandled event 'connect'
I'm running it from cli. Any ideas?Thanks.
Back to top
View user's profile Send private message
Demoder



Joined: 27 Aug 2008
Posts: 3

PostPosted: Wed Aug 27, 2008 7:05 am    Post subject: Reply with quote

It looks like this at the end:
Code:
  default:
                PEAR::raiseError("Unhandled event '{$event}'");
        } // switch


Try to make it look like this:
Code:
 
 case "connect":
 break;
 default:
  PEAR::raiseError("Unhandled event '{$event}'");
} // switch


This change will make it not freak out about the "connect" state.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTTP All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement