Bug #80969 [Opn]: not harmful but could be better

From: Date: Mon, 19 Apr 2021 11:04:52 +0000
Subject: Bug #80969 [Opn]: not harmful but could be better
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233501@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 php.ini value for extension_dir doesn't work
                     in Windows
+Summary:            not harmful but could be better
 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:

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>


Previous Comments:
------------------------------------------------------------------------
[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 (#233501) next »