|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57658 runkit_class_adopt fails on method names with capitals
Submitted: 2007-05-09 09:19 UTC Modified: 2013-02-23 18:54 UTC
From: ron at ttvavanti dot nl Assigned: pollita (profile)
Status: Closed Package: runkit (PECL)
PHP Version: 5.2.1 OS: Linux
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.
Block user comment
Status: Assign to:
Bug Type:
From: ron at ttvavanti dot nl
New email:
PHP Version: OS:


 [2007-05-09 09:19 UTC] ron at ttvavanti dot nl
Trying to adopt classes fails when there are capitals in the code.

Reproduce code:
class A { function ab() { print "a";} }
class B { function ab() { print "b";} }
runkit_class_adopt("B", "A");

class A { function aB() { print "a";} }
class B { function aB() { print "b";} }
runkit_class_adopt("B", "A");

WIth: Error inheriting parent method: aB();

Commenting line 86 in runkit_class.c seems to fix this.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-23 18:54 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: pollita
 [2013-02-23 18:54 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Oct 04 23:01:25 2023 UTC