ID:               44654
 Updated by:       [EMAIL PROTECTED]
 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:

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.


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

[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