#27352 [Opn->Bgs]: CLI doesn't work with -r switch and single quoted string on windows

From: Date: Sun, 22 Feb 2004 16:57:32 +0000
Subject: #27352 [Opn->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-55319@lists.php.net to get a copy of this message
ID: 27352 Updated by: derick@php.net Reported By: tip at tut dot by -Status: Open +Status: Bogus Bug Type: CGI related Operating System: Windows PHP Version: 4.3.5RC3 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 From what I know is this a Windows limitation, not a PHP one. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#55319) next »