Bug #61253 [Asn]: Wrappers opened with errors concurrency problem
Edit report at https://bugs.php.net/bug.php?id=61253&edit=1
ID: 61253
Updated by: pajoye@php.net
Reported by: cataphract@php.net
Summary: Wrappers opened with errors concurrency problem
Status: Assigned
Type: Bug
Package: Streams related
Operating System: Any (ZTS)
PHP Version: 5.4SVN-2012-03-02 (SVN)
-Assigned To: pajoye
+Assigned To: mattficken
Block user comment: N
Private report: N
New Comment:
Matt, can you test this patch please? and add the test to our suites while being
at it :)
Previous Comments:
------------------------------------------------------------------------
[2012-03-02 22:13:36] cataphract@php.net
Pierre, please see if this fixes the problem.
------------------------------------------------------------------------
[2012-03-02 22:13:02] cataphract@php.net
The following patch has been added/updated:
Patch Name: bug61253.diff
Revision: 1330726381
URL: https://bugs.php.net/patch-display.php?bug=61253&patch=bug61253.diff&revision=1330726381
------------------------------------------------------------------------
[2012-03-02 22:08:08] cataphract@php.net
Description:
------------
When opening the same wrapper in several threads and this generates errors, a segfault may result.
Test script:
---------------
<?php
file_get_contents('http://localhost/notfound');
Expected result:
----------------
Each requests shows a 404 error.
Actual result:
--------------
Segfault given enough concurrency
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61253&edit=1
Thread (8 messages)