Re: [PHP4BETA] Incompatibility?
| From: | Andi Gutmans | Date: | Sun, 27 Feb 2000 05:17:00 +0000 |
| Subject: | Re: [PHP4BETA] Incompatibility? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-11068@lists.php.net to get a copy of this message | ||
By the way, the fix is easy. Just move the initialization to your constructor.
Andi
At 07:04 AM 2/27/00 +0200, Zeev Suraski wrote:
At 06:05 27/02/2000 , Mitch Vincent wrote:--- Andi Gutmans <andi@zend.com> http://www.zend.com/" Static variable and class member initializers only accept scalar values (in PHP 3.0 they accepted any valid expression). The impact should be small, since initializers with anything but a simple static value rarely make sense. " Thanks! Oh, I'm using PHP Beta4 pl1 and Apache 1.3.12It applies exactly to your problem. You have a class member initializer, being assigned an object, which is not a simple scalar value. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/ -- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net For additional commands, e-mail: php4beta-help@lists.php.net To contact the list administrators, e-mail: php4beta-admin@lists.php.net