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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 17:01:28 2025 UTC