ID: 44654 Updated by: [EMAIL PROTECTED] Reported By: xuefer at gmail dot com -Status: Assigned +Status: Closed Bug Type: Compile Failure Operating System: * PHP Version: 5.3CVS-2008-04-06 (CVS) Assigned To: nlopess New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2008-04-07 17:51:50] [EMAIL PROTECTED] It is. http://lxr.php.net/source/ZendEngine2/zend_language_scanner.l#2155 Was added during the conversion to handle the shebang, it may not be quite working as expected though. ------------------------------------------------------------------------ [2008-04-07 17:04:09] xuefer at gmail dot com tested with cli and fastcgi web (not cgi), so not a shebang problem. we're talking about this bug at mailinglist and looks like it's relatived to re2c lexer changes recentl ------------------------------------------------------------------------ [2008-04-07 08:05:55] [EMAIL PROTECTED] Are you running PHP in CGI mode? If so then it might be the CGI shebang doing funky stuff after my guessings atleast in 2.php even though it isn't #! as shebangs normally are... For the CLI example I think (from memories) that you can't break in and out of php with the -r option. ------------------------------------------------------------------------ [2008-04-06 14:19:03] xuefer at gmail dot com Description: ------------ $ php -r 'if (1) { ?>#<?php }' Parse error: syntax error, unexpected $end in Command line code on line 1 note that you cannot reproduce with ?> #<?php (with a space before # Reproduce code: --------------- 1.php <?php if (1) { ?>#<?php } ?> 2.php #<?php echo 1; ?> #<?php echo 1; ?> expected: #1#1 actual: #<?php echo 1; ?> #<?php echo 1; ?> Expected result: ---------------- used to work in php5.2 IIRC and echo # character Actual result: -------------- Parse error: syntax error, unexpected $end in Command line code on line 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44654&edit=1