Re: [PHP4BETA] Three steps forward, one step back...

From: Date: Mon, 26 Jul 1999 05:04:50 +0000
Subject: Re: [PHP4BETA] Three steps forward, one step back...
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-2746@lists.php.net to get a copy of this message
At 07:00 AM 7/26/99 +0200, Andi Gutmans wrote:
At 07:17 PM 7/25/99 -0400, Eric Mings wrote:
I am pleased to report that compiling php4 as a static module (as opposed to DSO) did in fact appear to resolve the bug 1761 problem of include failures (at least for me), and as promised it does even appear to even be a little faster as a static module. However, I am trying to get it to work with mysql and phplib. Whenever I prepend the phplib prepend.php3 file I get the following error in Netscape: Parse error: parse error in db_mysql.inc on line 36 db_mysql.inc is an included file that sets up the database connection (which worked perfectly in php 3.0.9). The line that is being referenced (36) in the error is as follows:
 35    /* public: identification constant. never change this. */
 36    var $type     = "mysql";
 37    var $revision = "\$Revision: 1.15 $";
In PHP 4.0 you can't use expressions, only static values, as initializers. Thus, you'll need to change the var $revision = "\$Revision: 1.15 $"; to '$Revision: 1.15$';
I of course meant to change it to: var $revision = '$Revision: 1.15$'; Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.version4 (#2746) next »