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: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: qqqroc at gmail dot com Assigned:
Status: Open Package: Dynamic loading
PHP Version: 5.3Git-2013-02-05 (Git) OS: CentOs 5
Private report: No CVE-ID:
Password:
Status:
Package:
Bug Type:
Summary:
From: qqqroc at gmail dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sat May 27 02:01:36 2017 UTC