|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41311 <?=// doesnt work in PHP 5
Submitted: 2007-05-07 08:27 UTC Modified: 2007-05-07 12:43 UTC
From: khuram dot shahzad at yahoo dot com Assigned:
Status: Wont fix Package: Unknown/Other Function
PHP Version: 5.2.2 OS: Windows 2000
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: khuram dot shahzad at yahoo dot com
New email:
PHP Version: OS:


 [2007-05-07 08:27 UTC] khuram dot shahzad at yahoo dot com

the above line was working when i was using php 4.4. After updating to PHP 5.2 the same Line of code is giving Parse error 

Reproduce code:

Expected result:
Parse error: syntax error, unexpected ';' in D:\Program Files\Apache Group\Apache2\htdocs\test.php on line 2

Actual result:
it should execute without parse error


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-07 12:43 UTC]
<?=...?> is a shortcut for "echo ...", therefor this code is definitely wrong.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 09:01:26 2024 UTC