|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-07-25 00:11 UTC] johannes@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 06:00:01 2025 UTC |
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)