Bug #18045: Parse error: parse error, unexpected ':', expecting '}'
| From: | webmaster at phpindex dot com | Date: | Fri, 28 Jun 2002 14:28:06 +0000 |
| Subject: | Bug #18045: Parse error: parse error, unexpected ':', expecting '}' | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-12413@lists.php.net to get a copy of this message | ||
From: webmaster@phpindex.com
Operating system: Linux
PHP version: 4.2.1
PHP Bug Type: Scripting Engine problem
Bug description: Parse error: parse error, unexpected ':', expecting '}'
This simple script crash with
Parse error: parse error, unexpected ':', expecting '}' in
/usr/local/apache/htdocs/armel/crash.php on line 5
<?php
$foo = "php";
print "{$foo}";
print "{:$foo}";
print "{$foo:}";
?>
Note that if you comment the last print, it just return
php{:php}
and not
{php}{:php}
May be a small problem in the Zend Engine (see T_CURLY_OPEN) :
line 695 -> Zend/zend_language_parser.y
line 1348 -> Zend/zend_language_scanner.l
This bug is reproducible and have been tested with php 4.2.1 (apxs) and
4.2.0 (CGI).
Regards,
Armel.
--
Edit bug report at http://bugs.php.net/?id=18045&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18045&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18045&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18045&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18045&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18045&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18045&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18045&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18045&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18045&r=globals