|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-06-21 17:38 UTC] sniper@php.net
[2001-06-22 09:04 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 18:00:01 2025 UTC |
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)