|  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
 [2012-06-09 19:22 UTC] michael dot stering at gmx dot net
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!


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-10 02:36 UTC]
-Status: Open +Status: Feedback
 [2012-06-10 02:36 UTC]
Please try using this snapshot:
For Windows:

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]
-Status: Open +Status: Closed -Assigned To: +Assigned To: laruence
 [2012-06-10 12:04 UTC]
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 17:01:32 2024 UTC