|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-09-20 12:07 UTC] pollita@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 09:00:02 2025 UTC |
Description: ------------ runkit_method_add() The name of the method to add must be lower Reproduce code: --------------- <?php class Example { public function fooBar() { echo "foo"; } } runkit_method_add('Example','fooBar3','','echo "bar";'); $object=new Example(); $object->fooBar3(); ?> Expected result: ---------------- Fatal error: Call to undefined method Example::fooBar3() in /var/www/html/test.php on line 57 Actual result: -------------- echo "bar"