PHP 4.0 Bug #6881 Updated: static variables can't be intialized by function, variable, etc.

From: Date: Tue, 26 Sep 2000 02:16:07 +0000
Subject: PHP 4.0 Bug #6881 Updated: static variables can't be intialized by function, variable, etc.
Groups: php.dev 
Request: Send a blank email to php-dev+get-33647@lists.php.net to get a copy of this message
ID: 6881 User Update by: simon@comsys.ntu-kpi.kiev.ua Status: Open Bug Type: *General Issues Description: static variables can't be intialized by function, variable, etc. #!php -q <? $a = "abc"; function foo() { global $a; static $b = $a; static $arr = array($a); } ?> I can't init static variable by another variable or function. Even more PHP give error while parsing this code. Previous Comments: --------------------------------------------------------------------------- [2000-09-25 22:06:38] simon@comsys.ntu-kpi.kiev.ua #!php -q <? $a = "abc"; function foo() { global $a; static $b = $a; static $arr = array($a); } ?> I can't ini static variable by another variable or function. Even more PHP give error while parsing this code. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6881

« previous php.dev (#33647) next »