#33899 [NEW]: setting both extension_dir and extension= on command line doesn't work
| From: | hartmut@php.net | Date: | Thu, 28 Jul 2005 10:30:52 +0000 |
| Subject: | #33899 [NEW]: setting both extension_dir and extension= on command line doesn't work | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-82580@lists.php.net to get a copy of this message | ||
From: hartmut@php.net
Operating system: linux
PHP version: 5CVS-2005-07-28 (dev)
PHP Bug Type: Dynamic loading
Bug description: setting both extension_dir and extension= on command line doesn't work
Description:
------------
I try to test a newly created PECL extension, the extension shared object
file has been created in ./modules/myext.so
when i do a "make install" to copy the myext.so to the default extension
directory first i can load it just fine using either "php -d
'extension=myext.so'"
or using dl("myext.so"); within my code
when i start php with "php -d 'extension_dir=./modules'" i can use
dl("myext.so"); within my code just fine, too. the extension is loaded
from ./modules as expected
but when i try to use both commandline options
php -d 'extension_dir=./modules' -d 'extension=myext.so'
myext.so is either loaded from the default extension_dir,
not ./modules, or it is not loaded at all if not present in the
default extension dir
Expected result:
----------------
-d 'extension_dir=...' should take effect right away if given on the
command line, even for following -d 'extension=...' options
--
Edit bug report at http://bugs.php.net/?id=33899&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33899&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33899&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33899&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33899&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33899&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33899&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33899&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33899&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33899&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33899&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33899&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33899&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33899&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33899&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33899&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33899&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33899&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33899&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33899&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33899&r=mysqlcfg