note 100762 added to function.fopen
| From: | conartist6atgmaildotcom at osu1 dot php dot net | Date: | Fri, 05 Nov 2010 05:35:28 +0000 |
| Subject: | note 100762 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173771@lists.php.net to get a copy of this message | ||
In other comments it has been noted that fopen hangs when opening any fifo which is not actively
being written to. It has also been noted that it is possible to prevent this behaviour by performing
an fopen with the "r+" flags such that PHP keeps a handle open to the fifo itself.
I hereby document that using the "r+" flag on a pipe under Linux (Slackware 13.0 (i486)
and PHP 5.2.14) will render PHP unable to read data waiting to be written to the pipe by any other
process. As far as I can tell "r+" is not a valid (read: useful) set of flags for fifo
pipes.
----
Server IP: 192.41.42.26
Probable Submitter: 134.82.231.44
----
Manual Page -- http://www.php.net/manual/en/function.fopen.php
Edit -- https://master.php.net/note/edit/100762
Del: integrated -- https://master.php.net/note/delete/100762/integrated
Del: useless -- https://master.php.net/note/delete/100762/useless
Del: bad code -- https://master.php.net/note/delete/100762/bad+code
Del: spam -- https://master.php.net/note/delete/100762/spam
Del: non-english -- https://master.php.net/note/delete/100762/non-english
Del: in docs -- https://master.php.net/note/delete/100762/in+docs
Del: other reasons-- https://master.php.net/note/delete/100762
Reject -- https://master.php.net/note/reject/100762
Search -- https://master.php.net/manage/user-notes.php