php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20223 PHP-CLI '-r' Switch Broken
Submitted: 2002-11-02 18:42 UTC Modified: 2002-11-02 23:03 UTC
From: mattmurphy at kc dot rr dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.3.0-pre2 OS: Windows Me
Private report: No CVE-ID: None
 [2002-11-02 18:42 UTC] mattmurphy at kc dot rr dot com
PHP 4.2.3, 4.3.0pre1, and 4.3.0pre2 all fail to parse the '-r' option when used with CLI (php-cli.exe on 4.2.3, and php.exe on the others).

C:\WINDOWS\DESKTOP\php-4.3.0pre2-Win32>php -r 'phpinfo();'
PHP Parse Error: parse error, unexpected $ in Command line code on line 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-02 23:03 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

On windows you need to quote the arguments using " not '.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 01 19:01:30 2024 UTC