note 61512 added to function.runkit-method-add

From: Date: Mon, 06 Feb 2006 04:32:43 +0000
Subject: note 61512 added to function.runkit-method-add
Groups: php.notes 
Request: Send a blank email to php-notes+get-103063@lists.php.net to get a copy of this message
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 ---- Server IP: 203.16.234.19 Probable Submitter: 203.63.126.9 ---- Manual Page -- http://www.php.net/manual/en/function.runkit-method-add.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61512 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61512&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61512&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61512&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61512&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61512&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61512&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61512&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61512&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#103063) next »