|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-01-04 13:44 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 02:00:01 2025 UTC |
Description: ------------ Embedding a heredoc inside another heredoc fails to compile on 5.2.12. (The same code successfully compiles on 5.2.4-ubuntu, but running it has the wrong output.) Reproduce code: --------------- <?php $a = Array("b" => 1); echo <<<ZZ {$a[<<<B b B ]} ZZ; ?> Expected result: ---------------- 1 Actual result: -------------- Parse error: syntax error, unexpected $end in /home/thue/test.php on line 11