|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66401 yield in SoapClients __doRequest cause Segmentation fault
Submitted: 2014-01-03 13:47 UTC Modified: 2014-01-09 07:55 UTC
From: erik at datahack dot se Assigned: krakjoe (profile)
Status: Closed Package: Reproducible crash
PHP Version: 5.5.7 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: erik at datahack dot se
New email:
PHP Version: OS:


 [2014-01-03 13:47 UTC] erik at datahack dot se
Using yield in SoapClients __doRequest cause Segmentation fault.

Test script:
class XSoapClient extends SoapClient {
	function __doRequest($request, $location, $action, $version) {
		yield 123;

$client = new XSoapClient(null, array('uri' => '', 'location' => ''));

$x = $client->foo();
foreach($x as $r)

Expected result:
I wasn't really sure what result to expect, however not a Segmentation fault.

Actual result:
Segmentation fault


soapclient-bug-5.5.patch (last revision 2014-01-04 08:55 UTC by

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-04 08:55 UTC]
The following patch has been added/updated:

Patch Name: soapclient-bug-5.5.patch
Revision:   1388825719
 [2014-01-04 08:56 UTC]
-Status: Open +Status: Verified
 [2014-01-04 08:59 UTC]
-Assigned To: +Assigned To: dmitry
 [2014-01-04 08:59 UTC]
5.5 is missing the fix for this bug, patch attached but no idea of the workflow to apply to specific 5.5 branches so will let someone else do it.

Dmitry is the only person left in the header that is still around, so assigned. Should be a quick fix for you :)
 [2014-01-09 07:46 UTC]
-Status: Verified +Status: Feedback -Assigned To: dmitry +Assigned To: krakjoe
 [2014-01-09 07:46 UTC]
This patch was applied to PHP-5.5 on Dec 10.

See `git show a65166531`.

I'm not sure if it was include into 5.5.7 release, but it's definitely in PHP-5.5 branch. So, the bug must be already fixed.
 [2014-01-09 07:55 UTC]
-Status: Feedback +Status: Closed
 [2014-01-09 07:55 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

 [2014-01-09 07:55 UTC]
Thanks Dmitry, I missed that ...
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Jan 30 06:03:58 2023 UTC