|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56567 runkit_method_add changes value of its argument
Submitted: 2005-09-30 03:27 UTC Modified: 2005-10-31 16:46 UTC
From: skissane at gmail dot com Assigned: pollita (profile)
Status: Closed Package: runkit (PECL)
PHP Version: 5.0.3 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: skissane at gmail dot com
New email:
PHP Version: OS:


 [2005-09-30 03:27 UTC] skissane at gmail dot com
(Version is actually 5.0.5 but it doesn't give me that option...) Using latest runkit.

runkit_method_add changes the case of its class argument to all lowercase, even though it is not documented as being passed by reference.

Somewhat bizarely, if you assign the same string to a different variable (normal assignment, not assignment by reference), it changes both strings!!!!!

Reproduce code:
class TestClass {

$TARGET1 = "TestClass";
runkit_method_add($TARGET1,"foo",'$a','echo "Hello:$a\n";');

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-31 16:46 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

Fixed in Release 0.7
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue May 11 13:01:24 2021 UTC