ID:               29891
 Updated by:       [EMAIL PROTECTED]
 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.

[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 this bug report at http://bugs.php.net/?id=29891&edit=1

Reply via email to