note 68186 added to function.function-exists
| From: | Dan at osu1 dot php dot net | Date: | Mon, 17 Jul 2006 15:49:11 +0000 |
| Subject: | note 68186 added to function.function-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-114850@lists.php.net to get a copy of this message | ||
I would like to comment on the following post:
A note of caution: function_exists() appears to be case-insensitive (at least as of PHP 4.3.8).
e.g.:
<?php
function MyCasedFunction() {
return true;
}
// Will return true, even though casing is "wrong"
if (function_exists("mYcAsEdFuNcTiOn"))
echo "I see it!";
?>
I believe that function calls itself are case insensitve, so this function is returning a valid
truth. PHP doesn't care about cases.
----
Server IP: 64.71.164.2
Probable Submitter: 65.213.231.9
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.function-exists.php
Edit -- http://master.php.net/note/edit/68186
Del: integrated -- http://master.php.net/note/delete/68186/integrated
Del: useless -- http://master.php.net/note/delete/68186/useless
Del: bad code -- http://master.php.net/note/delete/68186/bad+code
Del: spam -- http://master.php.net/note/delete/68186/spam
Del: non-english -- http://master.php.net/note/delete/68186/non-english
Del: in docs -- http://master.php.net/note/delete/68186/in+docs
Del: other reasons-- http://master.php.net/note/delete/68186
Reject -- http://master.php.net/note/reject/68186
Search -- http://master.php.net/manage/user-notes.php