ID: 11449 Updated by: zeev Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating system: PHP Version: 4.0.5 Assigned To: Comments: Static variables are a 'feature' of the function, and are declared in compile-time. Since it's impossible to know their name in compile-time, it's not possible to use varying expression as the static variable name. Previous Comments: --------------------------------------------------------------------------- [2001-06-12 20:23:22] [EMAIL PROTECTED] this script produces a parse error: function test(){ $a="a"; static $$a; } --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11449&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]