Re: Bug #44654: wired syntax error for #

From: Date: Sun, 06 Apr 2008 14:22:07 +0000
Subject: Re: Bug #44654: wired syntax error for #
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-36819@lists.php.net to get a copy of this message
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 <php-bugs@lists.php.net> 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 > >

« previous php.internals (#36819) next »