Bug #15401: include of parent class

From: Date: Wed, 06 Feb 2002 11:02:52 +0000
Subject: Bug #15401: include of parent class
Groups: php.dev 
Request: Send a blank email to php-dev+get-79334@lists.php.net to get a copy of this message
From: av@brainbits.de 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=15401&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15401&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15401&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15401&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15401&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15401&r=support Expected behavior: http://bugs.php.net/fix.php?id=15401&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15401&r=notenoughinfo

« previous php.dev (#79334) next »