|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-08 21:26 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 19:00:02 2025 UTC |
Description: ------------ When a Class implements an interface, the class may not be initialized before the declaration of this class. Reproduce code: --------------- $test = new Test; echo $test; interface Something { function increment (); } class Test implements Something { public $value = 0; function increment () { $this->value++; return $this->value; } } Expected result: ---------------- Object id #1 Actual result: -------------- Fatal error: Class 'Test' not found in *path*/testcast.php on line 3