PHP 4.0 Bug #5806: "Parse error" reporting in php-4.0.1pl2 which was working fine in php-3.0.9
| From: | ssh at baba9 dot com | Date: | Thu, 27 Jul 2000 05:20:53 +0000 |
| Subject: | PHP 4.0 Bug #5806: "Parse error" reporting in php-4.0.1pl2 which was working fine in php-3.0.9 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-26424@lists.php.net to get a copy of this message | ||
From: ssh@baba9.com
Operating system: Linux and Free-bsd
PHP version: 4.0.1pl2
PHP Bug Type: Scripting Engine problem
Bug description: "Parse error" reporting in php-4.0.1pl2 which was working fine in
php-3.0.9
<?
include( "db_mysql.inc" );
class DB_Ads extends DB_Sql {
var $Host = $GLOBALS["CF"]["MYSQL_SERVER"];
var $User = $GLOBALS["CF"]["MYSQL_USER_NAME"];
var $Password = $GLOBALS["CF"]["MYSQL_PASSWORD"];
var $Database = "phpads";
}
?>
the "db_mysql.inc" contains the class "DB_Sql".
This above script doesn't give any problem in php-3.0.9 where as in php-4.0.1pl2 it say's
"Parse error: parse error in test.php on line 5" ie It is not accepting the following line
"var $Host = $GLOBALS["CF"]["MYSQL_SERVER"];"
Can any body suggest what could be the problem...
regards.
siva