note 61512 deleted from function.runkit-method-add by nlopess

From: Date: Mon, 06 Feb 2006 12:17:52 +0000
Subject: note 61512 deleted from function.runkit-method-add by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-103072@lists.php.net to get a copy of this message
Note Submitter: daniel dot oconnor at gmail dot com ---- As of PHP 5.0.5 (at least), runkit_method_add() behaves in a strange manner. If you try to add a method name with a capital letter in it - runkit_method_add('Class', 'myFoo','',''); for instance, you will get Fatal error: Call to undefined method errors. For some reason, the camel case in the function name causes things not to work! The workaround is to use 'myfoo' - all lower case, which will work fine. See http://pecl.php.net/bugs/bug.php?id=6019

« previous php.notes (#103072) next »