php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62281 crash when method in extending class has different params than parent class
Submitted: 2012-06-09 19:22 UTC Modified: 2012-06-10 12:04 UTC
From: michael dot stering at gmx dot net Assigned: laruence (profile)
Status: Closed Package: Class/Object related
PHP Version: 5.4.3 OS: Windows 7 Ultimate
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: michael dot stering at gmx dot net
New email:
PHP Version: OS:

 

 [2012-06-09 19:22 UTC] michael dot stering at gmx dot net
Description:
------------
When a method of a class which extends another class has the same name, but a different amount of parameters than the parent class, php seems to crash. Every browser tells that the website is not reachable.  
Wasn't able to get useful info from the logfiles. 

Test script:
---------------
class basicUser {
	private function methodA() {
	echo "hello";
	}
}

...

class extendedUser extends basicUser {	
	private function methodA($var1) {
		echo "bye!";
	}
} 


Expected result:
----------------
overloading methods with the same name, but different params shouldn't be that kind of problem!


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-10 02:36 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2012-06-10 02:36 UTC] laruence@php.net
Please try using this snapshot:

  http://snaps.php.net/php-trunk-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

a knew issue has been fixed
 [2012-06-10 08:08 UTC] michael dot stering at gmx dot net
Tried the r324251 for windows; works.
 [2012-06-10 08:08 UTC] michael dot stering at gmx dot net
-Status: Feedback +Status: Open
 [2012-06-10 12:04 UTC] laruence@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: laruence
 [2012-06-10 12:04 UTC] laruence@php.net
closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 16:01:36 2024 UTC