note 17244 deleted from function.get-defined-functions by didou
| From: | didou@php.net | Date: | Thu, 29 May 2003 22:51:49 +0000 |
| Subject: | note 17244 deleted from function.get-defined-functions by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49376@lists.php.net to get a copy of this message | ||
Note Submitter: dave@ovumdesign.com
----
[Ed. note: it might be easier to use the function function_exists() instead]
The whitespace is actually a null, not a space. To see if a user function is defined, try the
following:
if (in_array($func, $funcs['user']) or in_array("$func\0",
$funcs['user'])) ...
(I'm testing for both, since I'm guessing this bug will go away in a future version, if it
hasn't already.)