Bug #77812 [NEW]: 7.3 Interactive shell won't digest 7.3 heredoc syntax
| From: | bugs dot php dot net at ss dot st dot tc | Date: | Wed, 27 Mar 2019 20:13:27 +0000 |
| Subject: | Bug #77812 [NEW]: 7.3 Interactive shell won't digest 7.3 heredoc syntax | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-220229@lists.php.net to get a copy of this message | ||
From: bugs dot php dot net at ss dot st dot tc
Operating system: Linux (didn't try Win)
PHP version: 7.3.3
Package: Strings related
Bug Type: Bug
Bug description:7.3 Interactive shell won't digest 7.3 heredoc syntax
Description:
------------
Old, pre-7.3 heredoc syntax works as expected in PHP 7.3 interactive
shell:
$ php7.3 -a
Interactive shell
php > echo <<<FOO
<<< > bar
<<< > FOO;
bar
Now let's try 7.3 heredoc syntax:
$ php7.3 -a
Interactive shell
php > echo <<<FOO
<<< > bar
<<< > FOO;
<<< >
$ php7.3 -a
Interactive shell
php > print(<<<FOO
<<< > xx
<<< > FOO);
<<< >
$ php7.3 -a
Interactive shell
php > echo <<<FOO
<<< > xxx
<<< > FOO;
<<< > FOO
php > ;
xxxPHP Warning: Use of undefined constant FOO - assumed 'FOO' (this
will throw an Error in a future version of PHP) in php shell code on
line 4
The latter example works well in PHP 7.2:
$ php7.2 -a
Interactive shell
php > echo <<<FOO
<<< > xxx
<<< > FOO;
<<< > FOO
php > ;
xxx
FOO;
php >
--
Edit bug report at https://bugs.php.net/bug.php?id=77812&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77812&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77812&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77812&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77812&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77812&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77812&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77812&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77812&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77812&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77812&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77812&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77812&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77812&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77812&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77812&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77812&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77812&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77812&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77812&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77812&r=mysqlcfg