|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mastamind at users dot sourceforge dot net
New email:
PHP Version: OS:


 [2007-05-07 00:44 UTC] mastamind at users dot sourceforge dot net

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

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

extension = /usr/local/lib/

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-03 17:17 UTC]
-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]
See also bug #9095
 [2010-12-29 11:46 UTC]
-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/
correctly loads the pdo extension from the absolute path.

 [2011-04-18 22:11 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: johannes
 [2011-04-18 22:11 UTC]
That was fixed with PHP 5.3.0
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Sep 18 18:03:39 2021 UTC