Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.6.0

Bug #9934 Fatal Error when using eAccelerator
Submitted: 2007-01-24 13:38 UTC
From: lru at rtpartner dot ch Assigned:
Status: Bogus Package: Services_Webservice (version 0.5.1)
PHP Version: 5.1.6 OS: OS X 10.4
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 1 + 47 = ?

 
 [2007-01-24 13:38 UTC] lru at rtpartner dot ch (lukas rueegg)
Description: ------------ If running Webservice on a server running eAccelerator (http://eaccelerator.net/), the service runs only once, until it gets cached by eAccelerator. after that, a fatal error occures in Webservice.php as seen on the error message below. Test script: --------------- <?php include_once('Services/Webservice.php'); class myService extends Services_Webservice { /** * Says "Hello!" * * @param int * @return string */ public function hello($i) { return 'myString'; } } $myService = new myService( 'myService', 'example webservice description', array('uri' => 'myService', 'encoding' => SOAP_ENCODED, 'soap_version' => SOAP_1_2) ); $myService->handle(); ?> Expected result: ---------------- normal result of the script. Actual result: -------------- nothing. in the php error-log, there appear the following messages: ========== [24-Jan-2007 14:22:57] PHP Warning: strpos() [<a href='function.strpos'>function.strpos</a>]: Offset not contained in string. in /Applications/MAMP/bin/php5/lib/php/Services/Webservice.php on line 519 [24-Jan-2007 14:22:57] PHP Notice: Undefined offset: 0 in /Applications/MAMP/bin/php5/lib/php/Services/Webservice.php on line 526 [24-Jan-2007 14:22:57] PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class does not exist' in /Applications/MAMP/bin/php5/lib/php/Services/Webservice.php:543 Stack trace: #0 /Applications/MAMP/bin/php5/lib/php/Services/Webservice.php(543): ReflectionClass->__construct('') #1 /Applications/MAMP/bin/php5/lib/php/Services/Webservice.php(421): Services_Webservice->classMethodsIntoStruct() #2 /Applications/MAMP/bin/php5/lib/php/Services/Webservice.php(221): Services_Webservice->intoStruct() #3 /Users/lru/Documents/_svn-workspaces/aligned/index.php(26): Services_Webservice->handle() #4 {main} thrown in /Applications/MAMP/bin/php5/lib/php/Services/Webservice.php on line 543 ========== the bug can be avoided if excluding the script calling the Webservices from being cached. in this example, it would be the test-script 'index.php'.

Comments

 [2008-04-06 13:27 UTC] doconnor (Daniel O'Connor)
Lukas, I'm going to close this, because it isn't a Services_Webservice bug. I would certainly encourage you to: * Try this again with the latest versions of PHP / eAccelerator * File a bug with eAccelerator in trac