PHP 4.0 Bug #4658 Updated: global parameters in class

From: Date: Mon, 29 May 2000 14:00:33 +0000
Subject: PHP 4.0 Bug #4658 Updated: global parameters in class
Groups: php.dev 
Request: Send a blank email to php-dev+get-19677@lists.php.net to get a copy of this message
ID: 4658 Updated by: sterling Reported By: chedong@yeah.net Status: Closed Bug Type: Other Assigned To: Comments: Quoth the incompatibilities list: 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. A workaround is to create a constructor that sets the value of $test: class test { var $test; function test () { $this->test = $PHP_SELF; } } Full Bug description available at: http://bugs.php.net/version4/?id=4658

« previous php.dev (#19677) next »