Bug #60186 [Opn->Csd]: stream_select ignores the timeout on freebsd

From: Date: Tue, 09 Jan 2024 12:49:53 +0000
Subject: Bug #60186 [Opn->Csd]: stream_select ignores the timeout on freebsd
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246202@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60186&edit=1 ID: 60186 Updated by: devnexen@php.net Reported by: tyrael@php.net Summary: stream_select ignores the timeout on freebsd -Status: Open +Status: Closed Type: Bug Package: Streams related Operating System: freebsd PHP Version: 5.3SVN-2011-11-01 (SVN) -Assigned To: +Assigned To: devnexen Block user comment: N Private report: N New Comment: Is no longer a relevant issue. Previous Comments: ------------------------------------------------------------------------ [2016-07-01 14:49:14] cmb@php.net Related To: Bug #60225 ------------------------------------------------------------------------ [2014-04-18 15:56:25] tyrael@php.net maybe you didn't checked the PHP-5.3 branch? http://git.php.net/?p=php-src.git;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-01 16:46:47] mike@php.net There's no ext/spl/tests/bug60082.phpt ------------------------------------------------------------------------ [2011-11-01 10:25:42] tyrael@php.net Automatic comment from SVN on behalf of tyrael Revision: http://svn.php.net/viewvc/?view=revision&revision=318637 Log: ignore this test on FreeBSD per #60186 ------------------------------------------------------------------------ [2011-11-01 10:21:30] tyrael@php.net Description: ------------ 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60186&edit=1

« previous php.bugs (#246202) next »