#20600 [Com]: Parsing Bug
| From: | artistoex at yahoo dot com | Date: | Sat, 23 Nov 2002 19:55:08 +0000 |
| Subject: | #20600 [Com]: Parsing Bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25660@lists.php.net to get a copy of this message | ||
ID: 20600
Comment by: artistoex@yahoo.com
Reported By: artistoex@yahoo.com
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Win32
PHP Version: 4.2.3
New Comment:
Another interesting thing:
----example 1----
<?if (true){
echo("");
-----------------
-Parser says-
Parse error: parse error, unexpected $ in [file] on line 2
----example 1----
<?if (true){
echo();
-----------------
-Parser says-
Parse error: parse error, unexpected ')' in [file] on line 2
what's that?????
Previous Comments:
------------------------------------------------------------------------
[2002-11-23 13:52:34] derick@php.net
Works fine:
[derick@kossu derick]$ php
<?
if (true){
echo ("");//Here should be repoorted the syntax error('expecting }'
or
bug();
?>
Parse error: parse error in - on line 6
-(6) : Parse error - parse error
[derick@kossu derick]$ php -v
PHP 4.3.0-dev (cli) (built: Nov 21 2002 14:11:40)
Copyright (c) 1997-2002 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
And BTW: just fix the code; if PHP can not parse it the parser goes
into an unstable state. Not really a bug.
Derick
------------------------------------------------------------------------
[2002-11-23 13:50:08] artistoex@yahoo.com
<?
if (true){
echo ("");//Here should be reported the syntax error('expecting }'
or something like that)
bug();
PHP reports unexpected $
--
Win32 Apache 1.3.27/PHP 4.2.3/SAPI
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20600&edit=1