php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #41310 make extension_dir optional and use absolute paths in "extension = ..."
Submitted: 2007-05-07 00:44 UTC Modified: 2011-04-18 22:11 UTC
From: mastamind at users dot sourceforge dot net Assigned: johannes (profile)
Status: Closed Package: PHP options/info functions
PHP Version: * OS: *
Private report: No CVE-ID: None
 [2007-05-07 00:44 UTC] mastamind at users dot sourceforge dot net
Description:
------------
using

extension_dir = "/usr/local/lib/php"
extension = "../pgsql.so"

makes php search for pgsql.so in /usr/local/lib. It would be nice if 
php allows absolute paths for extension loading:

extension = /usr/local/lib/pgsql.so

as specifing it relative to the extension_dir is quite strange and 
probably makes extension_dir useless. specifing absolute paths with 
dl() may result in a security problem, but using it in php.ini may 
be ok.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-03 17:17 UTC] jani@php.net
-Package: Feature/Change Request +Package: PHP options/info functions -Operating System: Linux +Operating System: -PHP Version: 5.2.2 +PHP Version: *
 [2010-12-29 11:45 UTC] jani@php.net
See also bug #9095
 [2010-12-29 11:46 UTC] jani@php.net
-Operating System: +Operating System: *
 [2011-04-18 16:46 UTC] tyra3l at gmail dot com
it works for me with 5.3.6:
extension /usr/lib/php5/20090626/pdo.so
correctly loads the pdo extension from the absolute path.

Tyrael
 [2011-04-18 22:11 UTC] johannes@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: johannes
 [2011-04-18 22:11 UTC] johannes@php.net
That was fixed with PHP 5.3.0
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jul 13 06:01:26 2020 UTC