From: tipton at shsu dot edu Operating system: Fedora Core 1 PHP version: 4.3.3 PHP Bug Type: Filesystem function related Bug description: Cannot read from pipe created with posix_mkfifo()
Description: ------------ wrote a script to test with following the order: create pipe, open pipe for writing, write to pipe, close pipe. with another script to open the pipe, read from the pipe, close the pipe, unlink the pipe. the writer script hangs on the fopen() unless it's mode is 'w+', the reader script hangs on the fopen() regardless of mode. i accept that it may be something i am doing wrong, but i can find no documentation anywhere dealing with pipes in PHP. Reproduce code: --------------- writer - http://piplipton.homelinux.org/socket/test.txt reader - http://piplipton.homelinux.org/socket/test2.txt substitute .php for .txt in the above links to run the actual scripts. -- Edit bug report at http://bugs.php.net/?id=26271&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26271&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26271&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26271&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26271&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26271&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26271&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26271&r=support Expected behavior: http://bugs.php.net/fix.php?id=26271&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26271&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26271&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26271&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26271&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26271&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26271&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26271&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26271&r=float