php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64151 Invalid include extension_dir
Submitted: 2013-02-05 10:26 UTC Modified: 2023-09-17 16:54 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: qqqroc at gmail dot com Assigned: bukka (profile)
Status: Not a bug Package: FPM related
PHP Version: 5.3Git-2013-02-05 (Git) OS: CentOs 5
Private report: No CVE-ID: None
 [2013-02-05 10:26 UTC] qqqroc at gmail dot com
Description:
------------
php install in /usr/local/lib/php
php ext in /usr/local/lib/php/ext

Have host catalog:
/home/myhost/{www,ext,log}, where "ext" its clone "/usr/local/lib/php/ext"

include ext in php.ini:
> extension_dir = /usr/local/lib/php/ext
> extension = apc.so
Result: extension loaded

set chroot in config php-fpm:
> chroot = /home/myhost
> chdir = /www
Result: extension loaded

delete string "extension = apc.so" in php.ini, and add in config php-fpm:
> php_admin_value[extension] = apc.so
Result: extension not loaded

Add extension_dir in php-fpm config:
> php_admin_value[extension_dir] = /ext
> php_admin_value[extension] = apc.so
Result: extension not loaded


Change extension_dir in php.ini:
> extension_dir = /ext
And include ext in config php-fpm:
> php_admin_value[extension] = apc.so
Result: extension loaded


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-24 09:39 UTC] cmb@php.net
-Package: Dynamic loading +Package: FPM related
 [2023-09-17 16:53 UTC] bukka@php.net
I have just tested this with 8.3 and it is no longer an issue. I actually found another bug ( https://github.com/php/php-src/issues/12232 ) when testing this initially. Once fixed or with opache enabled I was not able to re-create this. The php_admin_value[extension_dir], php_admin_value[extension], chroot, chdir as wel as trying some combination of that and all works just fine for me. As this is very old and it could have been potentially fixed by some other fix, I will close this. If you still experience the issue, please comment here or preferrably open a new GitHub issue.
 [2023-09-17 16:54 UTC] bukka@php.net
-Status: Assigned +Status: Not a bug
 [2023-09-17 16:54 UTC] bukka@php.net
Changing to not a bug even though it could have been a bug in the future (the status does not really matter though).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 06:01:31 2024 UTC