|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-08-30 10:21 UTC] edink@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 09:00:01 2025 UTC |
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. [root@kangaroo /]# 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. [root@kangaroo 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