|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-19 11:21 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 12:00:01 2025 UTC |
Description: ------------ The README.namespace said "Note that using "new A" in namespace you can only create class from this namespace or internal PHP class, however using "new ::A" you are able to create any class from the global namespace." But, the class defined in global scope isn't found. Reproduce code: --------------- <?php namespace A; class foobar { public function test() { } } new ::foobar(); Expected result: ---------------- No error. Actual result: -------------- Fatal error: Class 'foobar' not found