|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-02-06 06:48 UTC] yohgaki@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 17:00:01 2025 UTC |
Hi , i have a problem with follwing code : 1. File "A.php" <?php class A { function A(){ echo "jo"; } } ?> 2. File "B.php" <?php require_once("A.php"); class B extends A { function B(){ echo "jojo"; } } ?> 3. File <?php require_once("B.php"); $b=new B; Error is : Fatal error : cannot redeclare class A:B on line 2 in B.php include_path is ok , what is a problem ? best regards Alexander Vasiliev