Doc #60271 [Opn->Bgs]: The <?=$foo?> in the example is no longer supported by PHP

From: Date: Fri, 11 Nov 2011 18:17:41 +0000
Subject: Doc #60271 [Opn->Bgs]: The <?=$foo?> in the example is no longer supported by PHP
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7420@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60271&edit=1 ID: 60271 Updated by: aharvey@php.net Reported by: darkmantis at cybershade dot org Summary: The <?=$foo?> in the example is no longer supported by PHP -Status: Open +Status: Bogus Type: Documentation Problem Package: *General Issues Operating System: N/A PHP Version: Irrelevant Block user comment: N Private report: N New Comment: The <?= shortcut syntax still works fine in PHP 5, provided you have the short_open_tag INI setting enabled, as the manual says. (Or you have PHP 5.4, which enables it globally.) Previous Comments: ------------------------------------------------------------------------ [2011-11-11 16:52:28] darkmantis at cybershade dot org Description: ------------ --- From manual page: http://www.php.net/function.echo#refsect1-function.echo-description --- "echo() also has a shortcut syntax, where you can immediately follow the opening tag with an equals sign. This short syntax only works with the short_open_tag configuration setting enabled. I have <?=$foo?> foo." The <?=$foo?> foo is no longer supported in PHP >= 5. Expected result: ---------------- bar Actual result: -------------- bar ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60271&edit=1

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