#30317 [NEW]: comments - here document syntax

From: Date: Mon, 04 Oct 2004 10:20:53 +0000
Subject: #30317 [NEW]: comments - here document syntax
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-67074@lists.php.net to get a copy of this message
From: matteo_tullo at hotmail dot it Operating system: Linux, Windows 98, Solaris PHP version: 4.3.9 PHP Bug Type: Compile Failure Bug description: comments - here document syntax Description: ------------ putting a comment on the same line of a here document terminator provokes a parse error Reproduce code: --------------- <?php PRINT <<<EOF a EOF;//comment ?> Expected result: ---------------- I expected the script to print: a Actual result: -------------- parse error, unexpected $ in <filename> on line 5 -- Edit bug report at http://bugs.php.net/?id=30317&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30317&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30317&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30317&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30317&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30317&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30317&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30317&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30317&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30317&r=support Expected behavior: http://bugs.php.net/fix.php?id=30317&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30317&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30317&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30317&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30317&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30317&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30317&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30317&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30317&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30317&r=mysqlcfg

« previous php.bugs (#67074) next »