Req #72802 [Opn]: static $$var; // not work

From: Date: Wed, 10 Aug 2016 13:18:39 +0000
Subject: Req #72802 [Opn]: static $$var; // not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203157@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72802&edit=1 ID: 72802 User updated by: bear8811 at mail dot com Reported by: bear8811 at mail dot com Summary: static $$var; // not work Status: Open Type: Feature/Change Request Package: Unknown/Other Function -Operating System: +Operating System: Linux PHP Version: 7.0.2 Block user comment: N Private report: N New Comment: This functionality is necessary for me. Previous Comments: ------------------------------------------------------------------------ [2016-08-10 13:02:16] bear8811 at mail dot com OMG, it is BUG! ------------------------------------------------------------------------ [2016-08-10 12:06:00] nikic@php.net To clarify, this has never worked, so marking it as a feature request. I don't think this will be implemented, as it does not seem like a particularly useful feature and it will only complicate implementation. ------------------------------------------------------------------------ [2016-08-10 11:44:18] deon at keemail dot me php 7.0.2 ------------------------------------------------------------------------ [2016-08-10 11:31:50] bear8811 at mail dot com Description: ------------ function fnc($var) { static $$var; } // Parse error: syntax error, unexpected '$', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in /var/www/ex/data/www/ex.com/system/core.php on line 2 Actual result: -------------- // Parse error: syntax error, unexpected '$', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in /var/www/ex/data/www/ex.com/system/core.php on line 2 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72802&edit=1

« previous php.bugs (#203157) next »