note 122687 deleted from language.basic-syntax.phptags by cmb
| From: | cmb@php.net | Date: | Thu, 25 Apr 2019 07:19:10 +0000 |
| Subject: | note 122687 deleted from language.basic-syntax.phptags by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210670@lists.php.net to get a copy of this message | ||
Note Submitter: raoni at gmail dot com
----
If short_open_tag = Off
<?php/*php not followed by space*/ echo "a"?>
This will not be parsed by php
If short_open_tag = On
<?php/*php not followed by space*/ echo "a"?>
This will be parsed by php, but it throw "Parse error: Syntax error ..." because because
'php' will be assumed as a constant
<?/*? not followed by space*/ echo "a"?>
This will be parsed by php, and work fine.
(Tested in php 7.1)