note 30768 added to function.get-defined-functions

From: Date: Thu, 27 Mar 2003 22:30:16 +0000
Subject: note 30768 added to function.get-defined-functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-45931@lists.php.net to get a copy of this message
I've written simple XML-RPC server which automatically registers all defined functions starting with "RPC_" prefix and found, that with PHP 2.4.3 on Win32 and Linux platforms function names are in lowercase so the xmlrpc_server_call_method() is case sensitive which is correct with XML, but not with PHP and get_functions_defined() I also suggest changing the function to have flags/options to return internal, user or both functions only and starting with prefix such as: --- // constants define( 'xxx_INTERNAL', 0x1 ); define( 'xxx_USER', 0x2 ); define( 'xxx_BOTH', 0x3 ); // declaration array get_functions_defined( int options, string prefix ); --- with both arguments optional. Johnnie -- http://www.php.net/manual/en/function.get-defined-functions.php http://master.php.net/manage/user-notes.php?action=edit+30768 http://master.php.net/manage/user-notes.php?action=delete+30768 http://master.php.net/manage/user-notes.php?action=reject+30768

« previous php.notes (#45931) next »