Re: PHP 4.0 Bug #5806: "Parse error" reporting in php-4.0.1pl2 which was working fine in php-3.0.9
| From: | Joey Smith | Date: | Thu, 27 Jul 2000 06:26:25 +0000 |
| Subject: | Re: PHP 4.0 Bug #5806: "Parse error" reporting in php-4.0.1pl2 which was working fine in php-3.0.9 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-26426@lists.php.net to get a copy of this message | ||
Well, I can tell you the problem, but I don't know if it's a bug, or
intentional (Don't use much OO, myself). The problem is in your
initializer...remove the variable referece.
On 27 Jul 2000, ssh@baba9.com wrote the following to php-dev@lists.php.net :
> <?
> 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";
>
> }
>
> ?>
> "var $Host = $GLOBALS["CF"]["MYSQL_SERVER"];"
var $Host;
var $User;
var $Password;
...
} /* end class decl. */
$a = new DB_Ads();
$a->Host = $GLOBALS["CF"]["MYSQL_SERVER"];