note 81921 added to function.function-exists
| From: | php at fluidthoughts dot com | Date: | Wed, 19 Mar 2008 18:18:33 +0000 |
| Subject: | note 81921 added to function.function-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137202@lists.php.net to get a copy of this message | ||
function_exists returns false on NULL and empty string:
<?php
if (function_exists('')) {
echo "empty string function exists\n";
}
if (function_exists(NULL)) {
echo "NULL function exists\n";
}
?>
Neither of the echo statements happen when I run this.
----
Server IP: 209.41.74.194
Probable Submitter: 152.160.38.65
----
Manual Page -- http://www.php.net/manual/en/function.function-exists.php
Edit -- https://master.php.net/note/edit/81921
Del: integrated -- https://master.php.net/note/delete/81921/integrated
Del: useless -- https://master.php.net/note/delete/81921/useless
Del: bad code -- https://master.php.net/note/delete/81921/bad+code
Del: spam -- https://master.php.net/note/delete/81921/spam
Del: non-english -- https://master.php.net/note/delete/81921/non-english
Del: in docs -- https://master.php.net/note/delete/81921/in+docs
Del: other reasons-- https://master.php.net/note/delete/81921
Reject -- https://master.php.net/note/reject/81921
Search -- https://master.php.net/manage/user-notes.php