php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43458 <?=//$x ?> works in PHP4, but not PHP5
Submitted: 2007-11-29 20:27 UTC Modified: 2007-11-30 00:08 UTC
From: andrew at sundale dot net Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.5 OS: Linux
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: andrew at sundale dot net
New email:
PHP Version: OS:

 

 [2007-11-29 20:27 UTC] andrew at sundale dot net
Description:
------------
<?=//$x ?> works in PHP4, but not PHP5

I have encountered a legacy code, there were used these comments.
Surprisingly, it works in PHP4.


Reproduce code:
---------------
<?=//$x ?>



Expected result:
----------------
Nothing

Actual result:
--------------
Error in PHP5

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-30 00:08 UTC] iliaa@php.net
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

This is expected.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Dec 06 10:00:01 2025 UTC