From:             phil at adigital dot com dot mx
Operating system: windows XP, linux
PHP version:      5.0.4
PHP Bug Type:     Reproducible crash
Bug description:  fread of a pipe hang after opening a pipe with a < entry

Description:
------------
Opening a pipe for read , for example for a cgi (in this example) will
block on the fread AFTER a call to a call with an entry file

I got the error on Windows, Linux, from PHP 5.0.2, PHP 5.0.4, PHP5.1 on
CVS (did not try on other versions either)

For example:
Call 1: popen("/usr/bin/php5"); with SCRIPT_FILENAME=info.php    WORKS
perfectly, and is repeatible X times

Call 2: popen("/usr/bin/php5"); with SCRIPT_FILENAME=info.php<tempfile   
WORKS perfectly... BUT

Call 3: after the call 2
popen("/usr/bin/php5"); with SCRIPT_FILENAME=info.php    WILL HANG AND
TOTALLY BLOCK but without using CPU time.

compile: compiled downloaded version on windows, 
natural php.ini without modifications
On linux: compiled as CLI, CGI, no more options than mysql

The bug do not depends on what is compiled with php

Thx



Reproduce code:
---------------
For linux code example :
http://www.thomassigny.org/bugpipe/linux/
For windows code example :
http://www.thomassigny.org/bugpipe/windows/

Expected result:
----------------
i expect the code does not hang...

Actual result:
--------------
 no backtrace, the running code hang

-- 
Edit bug report at http://bugs.php.net/?id=33909&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33909&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33909&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33909&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33909&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33909&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33909&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33909&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33909&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33909&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33909&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33909&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33909&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33909&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33909&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33909&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33909&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33909&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33909&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33909&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33909&r=mysqlcfg

Reply via email to