#27352 [Bgs]: CLI doesn't work with -r switch and single quoted string on windows
| From: | tip at tut dot by | Date: | Sun, 22 Feb 2004 22:41:21 +0000 |
| Subject: | #27352 [Bgs]: CLI doesn't work with -r switch and single quoted string on windows | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-55326@lists.php.net to get a copy of this message | ||
ID: 27352
User updated by: tip at tut dot by
Reported By: tip at tut dot by
Status: Bogus
Bug Type: CGI related
Operating System: Windows
PHP Version: 4.3.5RC3
New Comment:
Yes, it is a windows limitation, but there must be workaroud or at
least official note on this behavior in PHP manual.
Previous Comments:
------------------------------------------------------------------------
[2004-02-22 11:57:32] derick@php.net
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
From what I know is this a Windows limitation, not a PHP one.
------------------------------------------------------------------------
[2004-02-22 11:45:58] tip at tut dot by
Description:
------------
I don't know if it is an omission in manual but while executing next
string from "Chapter 8. Using PHP from the command line", an error
occured.
Reproduce code:
---------------
php -r 'print_r(get_defined_constants());'
Expected result:
----------------
php -r "print_r(get_defined_constants());"
Array
(
[E_ERROR] => 1
[E_WARNING] => 2
[E_PARSE] => 4
...
Actual result:
--------------
PHP Parse error: parse error, unexpected $end in Command line code on
line 1
Parse error: parse error, unexpected $end in Command line code on line
1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27352&edit=1