|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-19 13:02 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 11:00:01 2025 UTC |
Description: ------------ Extensions cannot have uppercase characters in their names. extension_loaded return true, get_extension_functions return declared functions but using functions return undeclared function error and function_exists return false. If extension name is only lowercase, everything will work fine (eg. "myOwnExtension" named as "myownextension" or "my_own_extension"). Reproduce code: --------------- <?php $ext = "myOwnExtension"; echo "{$ext} test\n\n"; echo "{$ext} is loaded: " . var_export(extension_loaded($ext), TRUE) . "\n\n"; echo "Extension functions:\n\n"; $funcs = get_extension_funcs($ext); foreach ($funcs as $f) { echo "{$f} " . var_export(function_exists($f), TRUE) . "\n"; } Expected result: ---------------- MyOwnExtension test MyOwnExtension is loaded: true Extension functions: MyOwnFunction true Actual result: -------------- MyOwnExtension test MyOwnExtension is loaded: true Extension functions: MyOwnFunction false