Bug #11599 Updated: stdio stream problem
| From: | sniper@php.net | Date: | Fri, 22 Jun 2001 13:04:36 +0000 |
| Subject: | Bug #11599 Updated: stdio stream problem | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57660@lists.php.net to get a copy of this message | ||
ID: 11599
Updated by: sniper
Reported By: jbarrett@australink.net
Old-Status: Duplicate
Status: Closed
Bug Type: Filesystem function related
Operating system:
PHP Version: 4.0.4pl1
Assigned To:
Comments:
This should be fixed in CVS. The fix will be in PHP 4.0.7.
Previous Comments:
---------------------------------------------------------------------------
[2001-06-21 17:38:58] sniper@php.net
Duplicate of #8624
---------------------------------------------------------------------------
[2001-06-20 22:59:42] jbarrett@australink.net
The following php lines :-
<?PHP
$fp = fopen("php://stderr", "w");
fputs($fp, "here's a debug message");
fclose($fp);
phpinfo();
?>
work the first time but the second time reply with :-
Warning: fopen("php://stderr","w") - Bad file descriptor in
/home/sites/site2/users/jbarrett/web/test.php on line 2
Warning: Supplied argument is not a valid File-Handle resource in
/home/sites/site2/users/jbarrett/web/test.php on line 3
Warning: Supplied argument is not a valid File-Handle resource in
/home/sites/site2/users/jbarrett/web/test.php on line 4
unless apache is restarted. Called it apache related cos the code works fine on console but only
fails this way as an apache module. (more than likely something to do with PHP "cleaning
up" the file pointer)
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11599&edit=2