ID: 38233 Updated by: [EMAIL PROTECTED] Reported By: khalid at pixelcraze dot com -Status: Open +Status: Feedback Bug Type: SOAP related Operating System: FC 4 PHP Version: 5.1.4 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2006-07-27 10:22:11] khalid at pixelcraze dot com Description: ------------ Randomly, the script will produce a fatal error. I am not sure if this is to do with the Services_Google, or whether it is a PHP Soap issue... Reproduce code: --------------- $google = new Services_Google($key); $google->queryOptions['limit'] = 1000; $google->search('"'.$keyword.'"'); $googleRes = $google->numResults(); Expected result: ---------------- I expect the results to appear. However, randomly, a fatal error is thrown. Most of the time, it will work. It is only when processing a few hundred queries at a time... Actual result: -------------- PHP Fatal error: Uncaught SoapFault exception: [HTTP] Error Fetching http headers in /usr/local/lib/php/Services/Google.php:203 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://api.goog...', 'urn:GoogleSearc...', 1, 0) #1 [internal function]: SoapClient->__call('doGoogleSearch', Array) #2 /usr/local/lib/php/Services/Google.php(203): SoapClient->doGoogleSearch('key...', '"sapphire3d.co....', 0, 10, true, '', true, '', '', '') #3 /usr/local/lib/php/Services/Google.php(155): Services_Google->runQuery() #4 /path/file.php(77): Services_Google->numResults() #5 {main} thrown in /usr/local/lib/php/Services/Google.php on line 203 Fatal error: Uncaught SoapFault exception: [HTTP] Error Fetching http headers in /usr/local/lib/php/Services/Google.php:203 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://api.goog...', 'urn:GoogleSearc...', 1, 0) #1 [internal function]: SoapClient->__call('doGoogleSearch', Array) #2 /usr/local/lib/php/Services/Google.php(203): SoapClient->doGoogleSearch('key...', '"sapphire3d.co....', 0, 10, true, '', true, '', '', '') #3 /usr/local/lib/php/Services/Google.php(155): Services_Google->runQuery() #4 /path/file.php(77): Services_Google->numResults() #5 {main} thrown in /usr/local/lib/php/Services/Google.php on line 203 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38233&edit=1