1 see also http://bugs.php.net/bug.php?id=34793
2 --- php-4.4.2/main/php_ini.c~ 2006-01-17 19:02:09.000000000 +0200
3 +++ php-4.4.2/main/php_ini.c 2006-01-17 19:26:46.000000000 +0200
7 /* Check CWD for php.ini */
12 #include "ext/standard/info.h"
14 efree(binary_location);
15 binary_location = NULL;
19 if (sapi_module.executable_location) {
20 binary_location = estrdup(sapi_module.executable_location);
22 binary_location = NULL;
26 if (binary_location) {
27 char *separator_location = strrchr(binary_location, DEFAULT_SLASH);
32 /* Add default location */
34 default_location = (char *) emalloc(MAXPATHLEN + 1);
36 if (0 < GetWindowsDirectory(default_location, MAXPATHLEN)) {