Bug #66401 [Ver->Fbk]: yield in SoapClients __doRequest cause Segmentation fault
| From: | dmitry@php.net | Date: | Thu, 09 Jan 2014 07:46:41 +0000 |
| Subject: | Bug #66401 [Ver->Fbk]: yield in SoapClients __doRequest cause Segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183662@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66401&edit=1
ID: 66401
Updated by: dmitry@php.net
Reported by: erik at datahack dot se
Summary: yield in SoapClients __doRequest cause Segmentation
fault
-Status: Verified
+Status: Feedback
Type: Bug
Package: Reproducible crash
PHP Version: 5.5.7
-Assigned To: dmitry
+Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2014-01-04 08:59:13] krakjoe@php.net
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-04 08:55:19] krakjoe@php.net
The following patch has been added/updated:
Patch Name: soapclient-bug-5.5.patch
Revision: 1388825719
URL: https://bugs.php.net/patch-display.php?bug=66401&patch=soapclient-bug-5.5.patch&revision=1388825719
------------------------------------------------------------------------
[2014-01-03 13:47:34] erik at datahack dot se
Description:
------------
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)
var_dump($r);
Expected result:
----------------
I wasn't really sure what result to expect, however not a Segmentation fault.
Actual result:
--------------
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66401&edit=1