#27602 [Opn->WFx]: register(ticks=1) breaks class inheritence

From: Date: Mon, 15 Mar 2004 12:36:16 +0000
Subject: #27602 [Opn->WFx]: register(ticks=1) breaks class inheritence
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56461@lists.php.net to get a copy of this message
ID: 27602 Updated by: sniper@php.net Reported By: csmall at enc dot com dot au -Status: Open +Status: Wont fix Bug Type: Scripting Engine problem Operating System: Debian Linux PHP Version: 4.3.4 New Comment: In PHP 5 you have to do this anyway -> wont fix. Previous Comments: ------------------------------------------------------------------------ [2004-03-15 05:59:04] csmall at enc dot com dot au 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27602&edit=1

« previous php.bugs (#56461) next »