php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30470 php5 break <?=//
Submitted: 2004-10-18 15:31 UTC Modified: 2005-03-07 22:15 UTC
From: momo@php.net Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.0.1 OS: win32
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: momo@php.net
New email:
PHP Version: OS:

 

 [2004-10-18 15:31 UTC] momo@php.net
Description:
------------
on php5:
$ ./php-cli.exe -r '<?=//c?>'

give:
Parse error: parse error, unexpected '<' in Command line code on line 1

but on php4 it's give nothing. i belive that the php5 behavior is the correct one but anyway we have here BC.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-18 22:56 UTC] helly@php.net
Are you sure you tested CLI version of PHP 4?
 [2004-10-19 20:41 UTC] momo@php.net
on php4 cli i of course have to close the '?>' in the begining of the script:

$ ./cli.exe -v
PHP 4.3.7RC1 (cli) (built: May 25 2004 15:32:33)
$ ./cli.exe -r '?><?=//c?>ok'
ok
 [2005-03-07 22:15 UTC] sniper@php.net
I get same behaviour with every PHP version I have..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 14 11:01:32 2024 UTC