From:             xuefer at gmail dot com
Operating system: 
PHP version:      5.3CVS-2008-04-06 (CVS)
PHP Bug Type:     Compile Failure
Bug description:  wired syntax error for #

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 bug report at http://bugs.php.net/?id=44654&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44654&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44654&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44654&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44654&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44654&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44654&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44654&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44654&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44654&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44654&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44654&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44654&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44654&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44654&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44654&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44654&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44654&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44654&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44654&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44654&r=mysqlcfg

Reply via email to