Bug #80969 [Opn->Wfx]: Default value for extension_dir setting doesn't work in Windows

From: Date: Wed, 05 May 2021 16:26:14 +0000
Subject: Bug #80969 [Opn->Wfx]: Default value for extension_dir setting doesn't work in Windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233700@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80969&edit=1

 ID:                 80969
 Updated by:         cmb@php.net
 Reported by:        marioneumann at gmail dot com
 Summary:            Default value for extension_dir setting doesn't work
                     in Windows
-Status:             Open
+Status:             Wont fix
 Type:               Bug
 Package:            PHP options/info functions
 Operating System:   Windows 10
 PHP Version:        7.4.16
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

PHP_EXTENSION_DIR is now documented[1].  I think we should leave
php.ini alone.

[1] <https://github.com/php/doc-en/commit/304f2b04c9b66ad3cea00b0e6aa97322b7de9935>


Previous Comments:
------------------------------------------------------------------------
[2021-04-19 13:24:31] cmb@php.net

The relative path ext doesn't work for all SAPIs, e.g.
Apache2Handler needs an absolute path.

------------------------------------------------------------------------
[2021-04-19 12:23:36] marioneumann at gmail dot com

I had to uncomment it first to reach that extensions work at all and its always in ext folder on
windows anyway. So I'd say its a bug and default value should be "ext" and not
whatever it is.

------------------------------------------------------------------------
[2021-04-19 11:15:43] imsop@php.net

Looks like we both hit edit at the same time :)

------------------------------------------------------------------------
[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)

« previous php.bugs (#233700) next »