php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ron at ttvavanti dot nl
New email:
PHP Version: OS:

 

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

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

Fails:
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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-23 18:54 UTC] pollita@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pollita
 [2013-02-23 18:54 UTC] pollita@php.net
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
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

https://github.com/php/pecl-php-
runkit/commit/9a921c828352fdf52c5dc74c9596915386cdf9e5
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 14 11:01:27 2024 UTC