php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70883 Production php.ini Example doesn't enable ext folder by default
Submitted: 2015-11-09 16:31 UTC Modified: 2015-11-09 18:16 UTC
From: james2432 at gmail dot com Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 7.0.0RC6 OS: Windows Server 2012 R2
Private report: No CVE-ID: None
 [2015-11-09 16:31 UTC] james2432 at gmail dot com
Description:
------------
The example production php.ini has extension_dir commented out by default.
This causes php to look in C:\php for extensions (despite being installed else where, in this case: C:\php7\)(see apache log below)

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\php_bz2.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\php_curl.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\php_gd2.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\php_ldap.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\php_exif.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\php_mysqli.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\php_openssl.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\php_pdo_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-11-09 18:16 UTC] ab@php.net
-Status: Open +Status: Not a bug
 [2015-11-09 18:16 UTC] ab@php.net
Thanks for the report. Yes, you need to set the suitable paths and other options in your php.ini file, otherwise the hardcoded default paths will be used. This is the exected behavior.

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC