php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66438 shortcut for short tags and shortcut for asp style tags does not work
Submitted: 2014-01-07 23:51 UTC Modified: 2014-01-08 00:50 UTC
From: oxconcise at hotmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.4.23 OS: Windows 7
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: oxconcise at hotmail dot com
New email:
PHP Version: OS:

 

 [2014-01-07 23:51 UTC] oxconcise at hotmail dot com
Description:
------------
---
From manual page: http://www.php.net/language.basic-syntax.phpmode
---

the use of 

<%= expression %>

or


<?= expression ?>

doesn't work even when short or asp style tags have been enabled in the .ini file.

Outputs:Parse error: syntax error, unexpected...


Test script:
---------------
<?= echo "tom" ?>

Expected result:
----------------
tom

Actual result:
--------------
Parse error: syntax error, unexpected 'echo' (T_ECHO) in C:\Users\Robert\Documents\web development\xampp\htdocs\xampp\web_development\new_study\one.php on line 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-08 00:50 UTC] bjori@php.net
-Status: Open +Status: Not a bug
 [2014-01-08 00:50 UTC] bjori@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

You can't use echo with short echo tags
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 04:00:01 2026 UTC