#34759 [Bgs->Opn]: STDERR, STDIN, STDOUT not defined

From: Date: Thu, 06 Oct 2005 13:10:03 +0000
Subject: #34759 [Bgs->Opn]: STDERR, STDIN, STDOUT not defined
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-86114@lists.php.net to get a copy of this message
ID: 34759 User updated by: d at blrf dot net Reported By: d at blrf dot net -Status: Bogus +Status: Open Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 5.0.5 New Comment: This is from CLI, not from web browser. Previous Comments: ------------------------------------------------------------------------ [2005-10-06 15:08:23] tony2001@php.net They are defined only in PHP CLI. ------------------------------------------------------------------------ [2005-10-06 14:58:25] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34759&edit=1

« previous php.bugs (#86114) next »