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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 22:01:30 2024 UTC