From: tip at tut dot by Operating system: Windows PHP version: 4.3.5RC3 PHP Bug Type: CGI related Bug description: CLI doesn't work with -r switch and single quoted string on windows
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 bug report at http://bugs.php.net/?id=27352&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27352&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27352&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27352&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27352&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27352&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27352&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27352&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27352&r=support Expected behavior: http://bugs.php.net/fix.php?id=27352&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27352&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27352&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27352&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27352&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27352&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27352&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27352&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27352&r=float