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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mattmurphy at kc dot rr dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 28 03:00:03 2025 UTC