|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-15 07:36 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 02:00:01 2025 UTC |
Description: ------------ Classes must be declared in order when you have declare(ticks=1) in the file (or any file that includes it). They do not have to be if the declaration is not used. Reproduce code: --------------- <?php declare(ticks=1); class foo2 extends foo1 { var $value; } class foo1 { var $myvalue; } ?> Expected result: ---------------- See nothing, no error importantly. Actual result: -------------- Fatal error: Class foo2: Cannot inherit from undefined class foo1 in /home/csmall/test.php on line 3