Req #32951 [Opn->Csd]: Need to specify php.ini path to ISAPI .dll

From: Date: Sun, 23 May 2021 04:34:09 +0000
Subject: Req #32951 [Opn->Csd]: Need to specify php.ini path to ISAPI .dll
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233988@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=32951&edit=1 ID: 32951 Updated by: krakjoe@php.net Reported by: hgrunw at gmail dot com Summary: Need to specify php.ini path to ISAPI .dll -Status: Open +Status: Closed Type: Feature/Change Request Package: *Configuration Issues Operating System: Windows (any) PHP Version: 5.0.4 -Assigned To: +Assigned To: krakjoe Block user comment: N Private report: N New Comment: ISAPI is no longer distributed with PHP. Previous Comments: ------------------------------------------------------------------------ [2020-12-30 12:47:32] nikic@php.net Automatic comment on behalf of irker Revision: http://git.php.net/?p=doc/ru.git;a=commit;h=de6872bcf802def8efca3540ed24457c0b628d5e Log: Fix bug #66883 ---- Thx to Schamil Targiev #32951 ------------------------------------------------------------------------ [2014-12-26 18:43:52] irker@php.net Automatic comment from SVN on behalf of irker Revision: http://svn.php.net/viewvc/?view=revision&revision=335381 Log: Fix bug #66883 ---- Thx to Schamil Targiev #32951 ------------------------------------------------------------------------ [2005-05-05 10:42:59] hgrunw at gmail dot com I propose the following patches to PHP5 to resolve the problem: 1) Registry based fix: diff -Nurp win32.orig\registry.c win32\registry.c --- win32.orig\registry.c Mon Mar 14 18:12:56 2005 +++ win32\registry.c Thu May 05 13:47:40 2005 @@ -1,7 +1,7 @@ #include "php.h" #include "php_ini.h" -#define PHP_REGISTRY_KEY "SOFTWARE\\PHP" +#define PHP_REGISTRY_KEY "SOFTWARE\\PHP5" void UpdateIniFromRegistry(char *path TSRMLS_DC) { 2) PHPRC / PHP5RC env. variable diff -Nurp main.orig\php_ini.c main\php_ini.c --- main.orig\php_ini.c Fri Sep 17 08:18:48 2004 +++ main\php_ini.c Thu May 05 13:56:32 2005 @@ -290,9 +290,11 @@ int php_init_config() safe_mode_state = PG(safe_mode); open_basedir = PG(open_basedir); - env_location = getenv("PHPRC"); + env_location = getenv("PHP5RC"); if (!env_location) { - env_location = ""; + env_location = getenv("PHPRC"); + if (!env_location) + env_location = ""; } if (sapi_module.php_ini_path_override) { php_ini_search_path = sapi_module.php_ini_path_override; They both could be incorporated? ------------------------------------------------------------------------ [2005-05-05 09:51:48] hgrunw at gmail dot com Description: ------------ Problem: when using PHP4 ISAPI .dll for a virtual directory XXX and PHP5 ISAPI .dll for a virtual directory YYY in IIS, it is impossible to specify different php.ini-s for the .dll-s. PHPRC won't obviously work. Proposal: search for php.ini in the following order in PHP5: 1) PHP5RC env. variable, 2) PHPRC env. variable, 3) (other options). Alternative: find a way of using the php.ini from the ISAPI .dll load directory (seems more complicated to implement). ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=32951&edit=1

« previous php.bugs (#233988) next »