php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38233 Random Fatal SoapFault errors
Submitted: 2006-07-27 10:22 UTC Modified: 2006-08-05 01:00 UTC
Votes:8
Avg. Score:4.1 ± 0.9
Reproduced:6 of 6 (100.0%)
Same Version:3 (50.0%)
Same OS:1 (16.7%)
From: khalid at pixelcraze dot com Assigned:
Status: No Feedback Package: SOAP related
PHP Version: 5.1.4 OS: FC 4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: khalid at pixelcraze dot com
New email:
PHP Version: OS:

 

 [2006-07-27 10:22 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-27 10:31 UTC] tony2001@php.net
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


 [2006-07-27 11:19 UTC] khalid at pixelcraze dot com
Same error occurs on the latest:

PHP 5.2.0RC2-dev (cli) (built: Jul 27 2006 12:05:06) 
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
 [2006-07-28 10:28 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.


 [2006-07-28 10:47 UTC] khalid at pixelcraze dot com
Script requires Pear://Services_Google and a google API Key from www.google.com/api/

<?php
require_once("Services/Google.php");
$key = "Google_Key";

for($i=1;$i<200;$i++) {

$google = new Services_Google($key);
$google->queryOptions['limit'] = 1000;
$google->search('"page '.$i.'"');
$googleRes = $google->numResults();
echo "$i: $googleRes\n";
}

?>

THe issue is that sometimes this script will run fine. Another time, the script will die at random intervals...
 [2006-07-28 10:53 UTC] tony2001@php.net
Please provide SHORT and COMPLETE reproduce script, just to be sure that it's not a PEAR issue.
 [2006-08-05 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2006-09-28 12:38 UTC] horaci at gmail dot com
We are having the exact same problem, randomly, when trying to access webservices from our SAP servers business connectors.

As far as we know, it has been working flawlesly for at least 2 months until 3 days ago.

Any help is appreciated,
Thanks
 [2006-10-20 04:03 UTC] ottophobia at yahoo dot com
I am receiving these errors and have no idea what they mean or 
how to solve the problem. Can anyone help?

"Fatal error: main(): Failed opening required '/p/
prep.inc' (include_path='.:/usr/local/lib/php') in /home/
content/s/h/i/shir13/html/gallery/zoom/index.php on line 2"


Johnny
 [2007-02-22 15:29 UTC] a-wu at gmx dot net
Hi,

i've got the same bug, unfortunately.

my code (of the client)

$task = new SoapClient(...wsdlpath...);
$sec = $task->securityCheck($Username, $Password);
$id = $task->login($sec, process_id);
$bool = $task->logout($sec, $id);

Expected results:

boolean, if the action was successful or not.

Actual result:

Sometimes the process is not able to logout. I catch the exception and get the message "Error fetching http headers" and I don't know why.

I use php 5.1.4 and apache 2.0.59.

Is there a solution to this.

Thanks,

Andre
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC