ID: 42091 Updated by: [EMAIL PROTECTED] Reported By: eliteforce at elitemail dot org -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: WinXP (SP2) PHP Version: 5.2.3 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Offering these constants (aka opening the streams) before starting the execution might lead to some conflicts therefore these are disabled when script is passed from STDIN. Previous Comments: ------------------------------------------------------------------------ [2007-07-24 23:21:24] eliteforce at elitemail dot org Description: ------------ When running php.exe from the console without any arguments (so the script can be entered directly) the constants STDIN, STDOUT, STDERR are undefined. When running the same code trough a file (php.exe <script>) or with the php.exe -r arg the constants are defined. Reproduce code: --------------- <?php var_dump(defined('STDIN')); var_dump(defined('STDOUT')); var_dump(defined('STDERR')); ?> ^Z Expected result: ---------------- bool(true) bool(true) bool(true) Actual result: -------------- bool(false) bool(false) bool(false) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42091&edit=1
