From: cmouse at desteem dot org Operating system: Windows XP x64 PHP version: 5.2.5 PHP Bug Type: Scripting Engine problem Bug description: PHP parses string inside quotes as PHP code
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 > -- Edit bug report at http://bugs.php.net/?id=44227&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44227&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44227&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44227&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44227&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44227&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44227&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44227&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44227&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44227&r=support Expected behavior: http://bugs.php.net/fix.php?id=44227&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44227&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44227&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44227&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44227&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44227&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44227&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44227&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44227&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44227&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44227&r=mysqlcfg