Doc #66438 [Opn->Nab]: shortcut for short tags and shortcut for asp style tags does not work

From: Date: Wed, 08 Jan 2014 00:50:21 +0000
Subject: Doc #66438 [Opn->Nab]: shortcut for short tags and shortcut for asp style tags does not work
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10824@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66438&edit=1 ID: 66438 Updated by: bjori@php.net Reported by: oxconcise at hotmail dot com Summary: shortcut for short tags and shortcut for asp style tags does not work -Status: Open +Status: Not a bug Type: Documentation Problem Package: *General Issues Operating System: Windows 7 PHP Version: 5.4.23 Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2014-01-07 23:51:42] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66438&edit=1

« previous php.doc.bugs (#10824) next »