Bug #80969 [Opn]: Default value for extension_dir setting doesn't work in Windows
Edit report at https://bugs.php.net/bug.php?id=80969&edit=1
ID: 80969
Updated by: imsop@php.net
Reported by: marioneumann at gmail dot com
-Summary: not harmful but could be better
+Summary: Default value for extension_dir setting doesn't work
in Windows
Status: Open
Type: Bug
Package: PHP options/info functions
Operating System: Windows 10
PHP Version: 7.4.16
Block user comment: N
Private report: N
New Comment:
Looks like we both hit edit at the same time :)
Previous Comments:
------------------------------------------------------------------------
[2021-04-19 11:04:52] cmb@php.net
On Windows, the default value is actually the value of
PHP_EXTENSION_DIR (which is basically undocumented[1]). That value
is actually PHP_PREFIX."\\ext", and the prefix can be configured
(--with-prefix) during build time. The official binaries use the
default (C:\php for non debug builds).
I think this is basically the same on other operating systems.
Not sure what to do about php.ini.
[1] <https://www.php.net/manual/en/reserved.constants.php>
------------------------------------------------------------------------
[2021-04-19 10:25:51] marioneumann at gmail dot com
Description:
------------
php.ini on Windows (default, production):
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
;extension_dir = "./"
; On windows:
;extension_dir = "ext"
The issue is that default doesnt work on Windows. You have to uncomment extension_dir =
"ext", otherwise PHP wont run if you uncomment extensions.
Expected result:
----------------
Windows extensions work right away
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80969&edit=1
Thread (6 messages)