Bug #17798: OS Independat Extension Loading dl()
| From: | cox at idecnet dot com | Date: | Mon, 17 Jun 2002 11:07:47 +0000 |
| Subject: | Bug #17798: OS Independat Extension Loading dl() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-10840@lists.php.net to get a copy of this message | ||
From: cox@idecnet.com
Operating system: All
PHP version: 4.2.1
PHP Bug Type: Feature/Change Request
Bug description: OS Independat Extension Loading dl()
Change the actual behaviour of dl() to be OS independant, avoiding the
actual workarround:
+ if (!extension_loaded($ext)) {
+ if (OS_WINDOWS) {
+ return @dl("php_$ext.dll");
+ } elseif (PHP_OS == 'HP-UX') {
+ return @dl("$ext.sl");
+ } elseif (PHP_OS == 'AIX') {
+ return @dl("$ext.a");
+ } else {
+ return @dl("$ext.so");
+ }
+ }
+ return true;
-- Tomas V.V.Cox
--
Edit bug report at http://bugs.php.net/?id=17798&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17798&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17798&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17798&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17798&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17798&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17798&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17798&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17798&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17798&r=globals