ID:               32107
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php at the-eend dot org
-Status:           No Feedback
+Status:           Feedback
 Bug Type:         CGI related
 Operating System: Redhat ES3
 PHP Version:      4.3.10
 New Comment:

Please try it with PHP 5


Previous Comments:
------------------------------------------------------------------------

[2005-07-29 13:01:57] Andreas dot Oesterhelt at InTradeSys dot com

Here's the test case requested by [EMAIL PROTECTED]:

<?php

fclose(STDOUT);

/* This now fails..*/
fwrite (STDOUT, "Test");

/* but this still works: */
echo "Stdout still open\n";

/*
 * Standard output is still open.
 * The process is therefore unable to detach from its terminal.
 * See PHP Bug #27865 (PHP5, fixed)
 */

?>

Tested in PHP 4.3.10 (cli)

------------------------------------------------------------------------

[2005-03-20 18:01:30] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------

[2005-02-25 14:09:02] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.



------------------------------------------------------------------------

[2005-02-25 13:33:10] php at the-eend dot org

True enough, the resource goes from being a stream to an "Unknown".
Unfortunately, my terminal still hangs until the script is complete
when I try to log out of the server. If the stream is truly closed (not
saying I don't believe you ;)), I guess it must be something else. :(

I sense an incoming "bogus"... ;)

------------------------------------------------------------------------

[2005-02-25 13:03:46] [EMAIL PROTECTED]

Why do you think they are not closed?
<?php
var_dump(STDIN);
fclose (STDIN);
var_dump(fread(STDIN, 10));
?>
Or use var_dump() in your example:
<?php
var_dump(STDIN);
fclose (STDIN);
var_dump(STDIN);
?>

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/32107

-- 
Edit this bug report at http://bugs.php.net/?id=32107&edit=1

Reply via email to