|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15401 include of parent class
Submitted: 2002-02-06 06:02 UTC Modified: 2002-02-06 06:48 UTC
From: av at brainbits dot de Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 4.1.1 OS: SuSE 7.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
40 - 2 = ?
Subscribe to this entry?

 [2002-02-06 06:02 UTC] av at brainbits dot de
Hi , 
i have a problem with follwing code :

1. File "A.php"
class A {
	function A(){
		echo "jo";

2. File "B.php"
class B extends A {
	function B(){
		echo "jojo";

3. File
$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 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-06 06:48 UTC]
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 26 22:03:33 2021 UTC