|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-03 10:38 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Feb 11 08:00:01 2026 UTC |
Description: ------------ i don't know if it's right to expect a class named foo here, but anyway it should be possible to check for a constant within a namespace Reproduce code: --------------- <?php namespace foo; var_dump(defined("foo::BAR")); Expected result: ---------------- false Actual result: -------------- Fatal error: Class 'foo' not found in ... on line 3