|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60186 stream_select ignores the timeout on freebsd
Submitted: 2011-11-01 10:21 UTC Modified: 2024-01-09 12:49 UTC
From: Assigned: devnexen (profile)
Status: Closed Package: Streams related
PHP Version: 5.3SVN-2011-11-01 (SVN) OS: freebsd
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:
New email:
PHP Version: OS:


 [2011-11-01 10:21 UTC]
I was running the php testsuite on FreeBSD 8.2, when I noticed that 
ext/spl/tests/bug60082.phpt hangs the whole test.
That test reproduces a bug where the php executor will be pushed into an infinite 
loop, so the timeout should kick-in, and proc_terminate the runaway test.
but it doesn't happen on FreeBSD.
for the record, I'm going to change the test to be skipped on FreeBSD, because it 
is now not possible to run the testsuite, as it requires manually killing that 
test on each run. PITA.

Test script:
see ext/spl/tests/bug60082.phpt, basically proc_open-ing a process with an infinite loop and calling stream_select on it passing a timeout through the tv_sec argument.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-01 10:25 UTC]
Automatic comment from SVN on behalf of tyrael
Log: ignore this test on FreeBSD per #60186
 [2014-04-01 16:46 UTC]
-Status: Open +Status: Feedback
 [2014-04-01 16:46 UTC]
There's no ext/spl/tests/bug60082.phpt
 [2014-04-18 15:56 UTC]
maybe you didn't checked the PHP-5.3 branch?;a=blob;f=ext/spl/tests/bug60082.phpt;h=346bee79740c7a3541d78a15ed7738c019ab7e47;hb=refs/heads/PHP-5.3

(not sure why this is only in the 5.3 branch or if the issue reported here is still occuring almost 3 years later)
 [2014-04-18 15:56 UTC]
-Status: Feedback +Status: Open
 [2024-01-09 12:49 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: devnexen
 [2024-01-09 12:49 UTC]
Is no longer a relevant issue.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 01 15:01:30 2024 UTC