ID:               27602
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to