Bug #60186 [NEW]: stream_select ignores the timeout on freebsd
| From: | tyrael@php.net | Date: | Tue, 01 Nov 2011 10:21:31 +0000 |
| Subject: | Bug #60186 [NEW]: stream_select ignores the timeout on freebsd | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-164758@lists.php.net to get a copy of this message | ||
From: tyrael
Operating system: freebsd
PHP version: 5.3SVN-2011-11-01 (SVN)
Package: Streams related
Bug Type: Bug
Bug description:stream_select ignores the timeout on freebsd
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 bug report at https://bugs.php.net/bug.php?id=60186&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60186&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60186&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60186&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=60186&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60186&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=60186&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=60186&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=60186&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=60186&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=60186&r=support
Expected behavior: https://bugs.php.net/fix.php?id=60186&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=60186&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=60186&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=60186&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60186&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60186&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=60186&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=60186&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=60186&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=60186&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=60186&r=mysqlcfg