php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33909 fread of a pipe hang after opening a pipe with a < entry
Submitted: 2005-07-28 18:55 UTC Modified: 2008-07-21 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: phil at adigital dot com dot mx Assigned:
Status: No Feedback Package: Program Execution
PHP Version: 5CVS-2005-07-29 OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: phil at adigital dot com dot mx
New email:
PHP Version: OS:

 

 [2005-07-28 18:55 UTC] phil at adigital dot com dot mx
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-21 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 16:01:30 2025 UTC