|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-01 19:10 UTC] johannes@php.net
[2007-10-02 08:55 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 23:00:02 2025 UTC |
Description: ------------ PHP searches for a class named foo when accessing "self::", without the E_NOTICE this script works as expected Reproduce code: --------------- <?php namespace foo; class Bar { static protected $foo = array( E_NOTICE => 'foo' ), $bang = 'bang'; static public function baz() { echo self::$bang; } } foo::Bar::baz(); Expected result: ---------------- bang Actual result: -------------- Fatal error: Class 'foo' not found in ... on line 12