note 75423 added to features.commandline
| From: | mjs at beebo dot org | Date: | Tue, 29 May 2007 14:30:04 +0000 |
| Subject: | note 75423 added to features.commandline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126997@lists.php.net to get a copy of this message | ||
There seems to be a bug in 5.2.x that causes the -r option to not work under cmd.exe on Windows:
php -r 'print_r(get_defined_constants());'
Parse error: parse error, unexpected $end in Command line code on line 1
You may be able to read the code in from a file (with -f) as a workaround. It also works when the
(same) executable is run via cygwin.
----
Server IP: 194.145.210.4
Probable Submitter: 193.114.255.2
----
Manual Page -- http://www.php.net/manual/en/features.commandline.php
Edit -- https://master.php.net/note/edit/75423
Del: integrated -- https://master.php.net/note/delete/75423/integrated
Del: useless -- https://master.php.net/note/delete/75423/useless
Del: bad code -- https://master.php.net/note/delete/75423/bad+code
Del: spam -- https://master.php.net/note/delete/75423/spam
Del: non-english -- https://master.php.net/note/delete/75423/non-english
Del: in docs -- https://master.php.net/note/delete/75423/in+docs
Del: other reasons-- https://master.php.net/note/delete/75423
Reject -- https://master.php.net/note/reject/75423
Search -- https://master.php.net/manage/user-notes.php