ID:               44654
 User updated by:  xuefer at gmail dot com
 Reported By:      xuefer at gmail dot com
 Status:           Open
 Bug Type:         Compile Failure
 Operating System: *
 PHP Version:      5.3CVS-2008-04-06 (CVS)
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to