From: [EMAIL PROTECTED] Operating system: SuSE 7.2 PHP version: 4.1.1 PHP Bug Type: Class/Object related Bug description: include of parent class
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 -- Edit bug report at http://bugs.php.net/?id=15402&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15402&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15402&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15402&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15402&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15402&r=support Expected behavior: http://bugs.php.net/fix.php?id=15402&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15402&r=notenoughinfo -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php