|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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-2023 The PHP Group
All rights reserved.
Last updated: Wed Sep 27 06:01:24 2023 UTC