Bug->Doc #77812 [Csd->ReO]: 7.3 heredoc syntax not documented in manual proper

From: Date: Thu, 28 Mar 2019 09:54:55 +0000
Subject: Bug->Doc #77812 [Csd->ReO]: 7.3 heredoc syntax not documented in manual proper
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16533@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77812&edit=1 ID: 77812 Updated by: cmb@php.net Reported by: bugs dot php dot net at ss dot st dot tc -Summary: 7.3 Interactive shell won't digest 7.3 heredoc syntax +Summary: 7.3 heredoc syntax not documented in manual proper -Status: Closed +Status: Re-Opened -Type: Bug +Type: Documentation Problem Package: Strings related -Operating System: Linux (didn't try Win) +Operating System: * -PHP Version: 7.3.3 +PHP Version: 7.3 Block user comment: N Private report: N New Comment: > […] which doesn't even mention new syntax. Re-opening as doc bug, then. Previous Comments: ------------------------------------------------------------------------ [2019-03-28 00:11:20] bugs dot php dot net at ss dot st dot tc Oh thank you so much. I didn't look there. Instead, was staring at https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc which doesn't even mention new syntax. Thanks again. ------------------------------------------------------------------------ [2019-03-28 00:03:28] a at b dot c dot de This is the first entry listed under the "Backward Incompatible Changes" section of the 7.3 migration guide. http://www.php.net/manual/en/migration73.incompatible.php ------------------------------------------------------------------------ [2019-03-27 20:13:27] bugs dot php dot net at ss dot st dot tc 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 this bug report at https://bugs.php.net/bug.php?id=77812&edit=1

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