#36082 [Opn->Bgs]: Uppercase extension name
| From: | tony2001@php.net | Date: | Thu, 19 Jan 2006 12:02:43 +0000 |
| Subject: | #36082 [Opn->Bgs]: Uppercase extension name | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92186@lists.php.net to get a copy of this message | ||
ID: 36082
Updated by: tony2001@php.net
Reported By: agony at drinkki dot com
-Status: Open
+Status: Bogus
Bug Type: Dynamic loading
Operating System: Windows XP
PHP Version: 4.4.2
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2006-01-19 12:40:59] agony at drinkki dot com
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36082&edit=1