#20204 [Opn]: $var_classname::function(); returns a parse error. You need to use eval().
| From: | nih at phlux dot co dot uk | Date: | Thu, 31 Oct 2002 21:37:27 +0000 |
| Subject: | #20204 [Opn]: $var_classname::function(); returns a parse error. You need to use eval(). | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23852@lists.php.net to get a copy of this message | ||
ID: 20204
User updated by: nih@phlux.co.uk
Reported By: nih@phlux.co.uk
Status: Open
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.2.3
New Comment:
The comma `:' in the first line of code is supposed to be a double
comma `::'
Previous Comments:
------------------------------------------------------------------------
[2002-10-31 15:34:41] nih@phlux.co.uk
Using
$var_classname:function();
throws up a parse error. This was probably not a feature intended to be
included rather than a bug. Currently I have a workaround using this:
print eval("return ".$var_classname."::function();");
Would like to see it implemented in a future version if possible :)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20204&edit=1