PHP 4.0 Bug #10066: Paser fails to report missing "}"

From: Date: Thu, 29 Mar 2001 22:43:04 +0000
Subject: PHP 4.0 Bug #10066: Paser fails to report missing "}"
Groups: php.dev 
Request: Send a blank email to php-dev+get-50306@lists.php.net to get a copy of this message
From: yohgaki@dd.iij4u.or.jp Operating system: Linux/Windows PHP version: 4.0.4pl1 PHP Bug Type: Scripting Engine problem Bug description: Paser fails to report missing "}" PHP fails to report missing "}". I could not reproduce this problem with simpler script. However, it happens on both Linux and W2K on longer script. (I think it may be easily to reproduce this problem if you get rid of "}" in 1000-2000 lines script with a lot of class definitions) PHP4.0.4pl1 - as Apache module under Linux PHP4.0.4RC1 - as Apache module under W2K IE just keeps spinning or complains "no server or DNS error". Problem happens on code like: ============ class foo{ function bar($str) { switch ($str) { case 'a': if (isset($var)) { echo 'No } after this line'; break; } } ============ This kind of programming error is easy to find with good editor, though. -- Edit Bug report at: http://bugs.php.net/?id=10066&edit=1

« previous php.dev (#50306) next »