#29891 [Opn->Bgs]: PHP attempts to load all extensions via relative path

From: Date: Mon, 30 Aug 2004 08:21:11 +0000
Subject: #29891 [Opn->Bgs]: PHP attempts to load all extensions via relative path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65443@lists.php.net to get a copy of this message
ID: 29891 Updated by: edink@php.net Reported By: jtyocum at publicmx dot com -Status: Open +Status: Bogus Bug Type: Dynamic loading Operating System: RH Linux 9.0/Virtuozzo 2.6 PHP Version: 4.3.9RC1 New Comment: You cannot specify path in extension= line in php.ini. Use extension_dir and try reading the instructions the next time. Previous Comments: ------------------------------------------------------------------------ [2004-08-30 09:32:07] jtyocum at publicmx dot com 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29891&edit=1

« previous php.bugs (#65443) next »