#32107 [Com]: fclose (STDIN|STDOUT|STDERR) not working
| From: | matxgx at hotmail dot com | Date: | Thu, 27 Apr 2006 18:52:54 +0000 |
| Subject: | #32107 [Com]: fclose (STDIN|STDOUT|STDERR) not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-96292@lists.php.net to get a copy of this message | ||
ID: 32107
Comment by: matxgx at hotmail dot com
Reported By: php at the-eend dot org
Status: No Feedback
Bug Type: CGI related
Operating System: Redhat ES3
PHP Version: 4.3.10
New Comment:
I actually am experiencing the same issue, as witnessed below using PHP
5.1.2
gillespiem@localhost ~/src/php $ php -v
PHP 5.1.2-gentoo (cli) (built: Apr 27 2006 10:49:04)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
gillespiem@localhost ~/src/php $ php std3.php
Warning: fwrite(): 2 is not a valid stream resource in
/home/gillespiem/src/php/std3.php on line 6
Stdout still open
Any advice would be greatly appreciated.
Previous Comments:
------------------------------------------------------------------------
[2005-10-10 23:30:23] valerio at wnet dot it
This bug is still present in php 4.3.10.
Any chance to have it fixed in the 4.3 tree?
------------------------------------------------------------------------
[2005-08-06 01:00:04] 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".
------------------------------------------------------------------------
[2005-07-29 15:35:13] wez@php.net
Please try it with PHP 5
------------------------------------------------------------------------
[2005-07-29 13:01:57] Andreas dot Oesterhelt at InTradeSys dot com
Here's the test case requested by tony2001@php.net:
<?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] sniper@php.net
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.
------------------------------------------------------------------------
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