From: morrisdavidd at gmail dot com Operating system: Linux/Unix PHP version: 5.3.0 PHP Bug Type: Streams related Bug description: PSFS_FEED_ME causes stream block
Description: ------------ According to: http://us3.php.net/manual/en/function.stream-filter-register.php The return value of PSFS_FEED_ME for the method filter of extended classes of php_user_filter means: "Filter processed successfully, however no data was available to return. More data is required from the stream or prior filter." However, using the return value of PSFS_FEED_ME also inadvertently causes a block on stream read requests that should not be blocked (and an infinite poll for data?). Reproduce code: --------------- bug_demo.php: http://capricorn.physics.fsu.edu/~ddm05/bug_demo.txt test2.php: http://capricorn.physics.fsu.edu/~ddm05/test2.txt Expected result: ---------------- When replacing the phrase "badFilter" with "goodFilter" in line 44: bool(true) Loop! xLoop! xxtest2: 1248760722 Loop! xLoop! xLoop! xLoop! xxtest2: 1248760724 Loop! xLoop! xLoop! xLoop! xxtest2: 1248760726 Loop! ... Actual result: -------------- bool(true) Loop! xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx... -- Edit bug report at http://bugs.php.net/?id=49084&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49084&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49084&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49084&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49084&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49084&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49084&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49084&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49084&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49084&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49084&r=support Expected behavior: http://bugs.php.net/fix.php?id=49084&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49084&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49084&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49084&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49084&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49084&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49084&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49084&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49084&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49084&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49084&r=mysqlcfg
