|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-23 17:04 UTC] cmouse at desteem dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 02:00:01 2025 UTC |
Description: ------------ For some reason, php seems to think that code inside single or double quotes spanned over several lines is source code. Reproduce code: --------------- <?php $lang = 'fi'; $str = ' <?php class Test_Me_Here_' . $lang . ' { }'; echo $str ?> Expected result: ---------------- > php test.php class Test_Me_Here_fi { } > Actual result: -------------- >php test.php PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting '{' in C:\eclipse\workspace\luuppi\vendors\Luuppi\test.php on line 7 >