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

From: Date: Mon, 19 Apr 2021 13:24:31 +0000
Subject: Bug #80969 [Opn]: 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-233509@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 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: The relative path ext doesn't work for all SAPIs, e.g. Apache2Handler needs an absolute path. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#233509) next »