From: jtyocum at publicmx dot com Operating system: RH Linux 9.0/Virtuozzo 2.6 PHP version: 4.3.9RC1 PHP Bug Type: Dynamic loading Bug description: PHP attempts to load all extensions via relative path
Description: ------------ When running PHP via commandline, it'll complain the paths for the modules are invalid. It appears to be trying to load the modules via a relative path, e.g. prepending ./ to the path. However, the zend_extension seems to be fine, as it loads the module. <snip php.ini> ;Enable MySQL extension="/usr/lib/extensions/no-debug-non-zts-20020429/mysql.so" ;Enable SNMP extension="/usr/lib/extensions/no-debug-non-zts-20020429/snmp.so" ;Turck MMCache zend_extension="/usr/lib/extensions/no-debug-non-zts-20020429/mmcache.so" </snip php.ini> Expected result: ---------------- This what I would expect to get from PHP. In fact, if I am at the root of the file system /, it works fine. [EMAIL PROTECTED] /]# php -v PHP 4.3.9RC1 (cli) (built: Aug 28 2004 11:05:56) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Turck MMCache v2.4.6, Copyright (c) 2002-2003 TurckSoft, St. Petersburg, by Dmitry Stogov Actual result: -------------- In this case, i'm in /usr and PHP generates the error. However, as you can see the zend_extension Turck MMCache doesn't have this problem. [EMAIL PROTECTED] usr]# php -v PHP Warning: Unknown(): Unable to load dynamic library './/usr/lib/extensions/no-debug-non-zts-20020429/mysql.so' - .//usr/lib/extensions/no-debug-non-zts-20020429/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library './/usr/lib/extensions/no-debug-non-zts-20020429/snmp.so' - .//usr/lib/extensions/no-debug-non-zts-20020429/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP 4.3.9RC1 (cli) (built: Aug 28 2004 11:05:56) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Turck MMCache v2.4.6, Copyright (c) 2002-2003 TurckSoft, St. Petersburg, by Dmitry Stogov -- Edit bug report at http://bugs.php.net/?id=29891&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29891&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29891&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29891&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=29891&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29891&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29891&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29891&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29891&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29891&r=support Expected behavior: http://bugs.php.net/fix.php?id=29891&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29891&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29891&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29891&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29891&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29891&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29891&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29891&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29891&r=float