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

From: Date: Wed, 10 Aug 2016 11:44:18 +0000
Subject: Bug #72802 [Opn]: static $$var; // not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203151@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:    deon at keemail dot me
 Reported by:        deon at keemail dot me
 Summary:            static $$var; // not work
 Status:             Open
 Type:               Bug
 Package:            Unknown/Other Function
-PHP Version:        7.0.9
+PHP Version:        7.0.2
 Block user comment: N
 Private report:     N

 New Comment:

php 7.0.2


Previous Comments:
------------------------------------------------------------------------
[2016-08-10 11:31:50] deon at keemail dot me

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


Thread (8 messages)

« previous php.bugs (#203151) next »