Req #76222 [Com]: add use empty tag <?= ?>
| From: | spam2 at rhsoft dot net | Date: | Mon, 16 Apr 2018 20:43:16 +0000 |
| Subject: | Req #76222 [Com]: add use empty tag <?= ?> | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-214771@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76222&edit=1
ID: 76222
Comment by: spam2 at rhsoft dot net
Reported by: koreshs at mail dot ru
Summary: add use empty tag <?= ?>
Status: Wont fix
Type: Feature/Change Request
Package: Scripting Engine problem
PHP Version: 7.2.4
Block user comment: N
Private report: N
New Comment:
> You do not understand!
you don#t
> Script itself <?= ?> should not cause errors
it should simply because it's the short form for <?php echo; ?>
php > echo ;
Parse error: syntax error, unexpected ';' in php shell code on line 1
Previous Comments:
------------------------------------------------------------------------
[2018-04-16 20:34:13] requinix@php.net
<?= "" //$val ?>
If you want to push for this change to the language then use the RFC process. https://wiki.php.net/rfc/howto
------------------------------------------------------------------------
[2018-04-16 20:26:13] koreshs at mail dot ru
You do not understand!.
Required work without error NOT <?= 'Example' //Example ?>.
Requires error - free operation for <?= // ?> and <?= //Example ?> and <?= ?>.
Script itself <?= ?> should not cause errors.
------------------------------------------------------------------------
[2018-04-14 23:11:59] cmb@php.net
Isn't something like <https://3v4l.org/09AB3> even
more nice,
since it actually prints a dummy text?
------------------------------------------------------------------------
[2018-04-14 22:33:55] koreshs at mail dot ru
Description:
------------
Please add the use of empty tags <?= ?>.
At design time, you often need to comment on values and variables. Use the tag <?= $val ?>
possible. But use the tag <?= //$var ?> cause an error. But the tag itself <?= ?> a
fundamental principle of language for the creation of the website, as the script needs to output the
values and variables. Please finish the tag and bring it to mind.
Test script:
---------------
<?= //$val ?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76222&edit=1