#36082 [NEW]: Uppercase extension name
| From: | agony at drinkki dot com | Date: | Thu, 19 Jan 2006 11:40:59 +0000 |
| Subject: | #36082 [NEW]: Uppercase extension name | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-92185@lists.php.net to get a copy of this message | ||
From: agony at drinkki dot com
Operating system: Windows XP
PHP version: 4.4.2
PHP Bug Type: Dynamic loading
Bug description: Uppercase extension name
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 bug report at http://bugs.php.net/?id=36082&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36082&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36082&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36082&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36082&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36082&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36082&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36082&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36082&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36082&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36082&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36082&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36082&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36082&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36082&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36082&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36082&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36082&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36082&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36082&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36082&r=mysqlcfg