From:             khalid at pixelcraze dot com
Operating system: FC 4
PHP version:      5.1.4
PHP Bug Type:     SOAP related
Bug description:  Random Fatal SoapFault errors

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 bug report at http://bugs.php.net/?id=38233&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38233&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38233&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38233&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38233&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38233&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38233&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38233&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38233&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38233&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38233&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38233&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38233&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38233&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38233&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38233&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38233&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38233&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38233&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38233&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38233&r=mysqlcfg

Reply via email to