|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40561 call to soap-server produces segfault
Submitted: 2007-02-20 15:38 UTC Modified: 2007-02-28 01:00 UTC
Avg. Score:3.7 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: andreas at dolleschal dot org Assigned:
Status: No Feedback Package: SOAP related
PHP Version: 5.2.1 OS: Linux
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.
Block user comment
Status: Assign to:
Bug Type:
From: andreas at dolleschal dot org
New email:
PHP Version: OS:


 [2007-02-20 15:38 UTC] andreas at dolleschal dot org
the following function produces a segmentation fault.

Reproduce code:
    $wsdl = "";

    //try {
        $client = new SoapClient($wsdl, array('trace' => 1));

        $params->query = 'test';
        $params->startIndex = 0;
        $params->numResults = 10;

        print $client->quickSearch($params);
    //} // end try

    //catch(SOAPFault $f) {
    //    print 'Error: ' . $f->faultstring;
    //} // end catch

Expected result:
at least not a segfault


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-20 15:44 UTC] does not respond by HTTP.
 [2007-02-20 15:50 UTC] andreas at dolleschal dot org
What else? If I try to call the URL directly I get the wsdl-descriptions?
 [2007-02-20 15:55 UTC]
Ah, I see. It's "localhost" in your WSDL.
I need a working reproduce case to investigate it.
 [2007-02-20 16:01 UTC] andreas at dolleschal dot org
sorry. use as request-url.
 [2007-02-20 16:09 UTC]
Can't see any segfaults, only an uncaught exception:

Fatal error: Uncaught SoapFault exception: [HTTP] Internal Server Error in /tmp/4.php:12
Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...', '', '', 1, 0)
#1 [internal function]: SoapClient->__call('quickSearch', Array)
#2 /tmp/4.php(12): SoapClient->quickSearch(Object(stdClass))
#3 {main}
  thrown in /tmp/4.php on line 12

 [2007-02-20 16:16 UTC] andreas at dolleschal dot org
true if you call the script with cli, if you call the script via apache the apache process get's an segmentation fault. how should one resolve this "[HTTP] Internal Server Error"?
 [2007-02-20 16:18 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read for *NIX and for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

 [2007-02-28 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".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Dec 07 05:01:29 2023 UTC