|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-24 12:31 UTC] jani@php.net
[2007-12-07 17:19 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 22:00:01 2025 UTC |
Description: ------------ See the code below. Reproduce code: --------------- <?php namespace foobar; class foo { } //var_dump(namespace::); // Parse error: syntax error, unexpected ')', expecting T_STRING or T_VARIABLE or '$' // Ok! $foo = 'foo'; var_dump(new namespace::$foo); // Fatal error: Class 'foobar' not found // var_dump(new namespace::foo); # Ok! Expected result: ---------------- var_dump(namespace::); Parse error: syntax error, unexpected ')', expecting T_STRING or Support the variable referencing class name. Actual result: -------------- Fatal error: Class 'foobar' not found