i'm having trouble with the bug http://bugs.php.net/bug.php?id=44654 i just reported. i'm not sure if it's a expected behavoir or a bug introduced by re2c or whatever patch.
On Sun, Apr 6, 2008 at 10:19 PM, PHP Bug Database <[EMAIL PROTECTED]> wrote: > 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=2 > > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php