php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34759 STDERR, STDIN, STDOUT not defined
Submitted: 2005-10-06 14:58 UTC Modified: 2005-10-06 15:34 UTC
From: d at blrf dot net Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.0.5 OS: Linux
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: d at blrf dot net
New email:
PHP Version: OS:

 

 [2005-10-06 14:58 UTC] d at blrf dot net
Description:
------------
STDERR, STDIN and STDOUT seem to be missing in PHP 5.0.5.

Reproduce code:
---------------
<?php
fwrite(STDERR, "ERROR!\n");
?>

Expected result:
----------------
ERROR!

Actual result:
--------------
fwrite(): supplied argument is not a valid stream resource in

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-06 15:08 UTC] tony2001@php.net
They are defined only in PHP CLI.
 [2005-10-06 15:10 UTC] d at blrf dot net
This is from CLI, not from web browser.
 [2005-10-06 15:12 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

Works fine for me.

 [2005-10-06 15:28 UTC] d at blrf dot net
This seems to be the case only on this machine. So I'll look it up there. Strange, anyway.
 [2005-10-06 15:34 UTC] tony2001@php.net
Not PHP problem -> bogus.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC