1 see also http://bugs.php.net/bug.php?id=34793
2 --- php-5.1.2/main/php_ini.c~ 2006-01-12 23:46:12.000000000 +0200
3 +++ php-5.1.2/main/php_ini.c 2006-01-17 17:01:16.000000000 +0200
5 strcat(php_ini_search_path, env_location);
9 /* Add cwd (only with CLI) */
10 if (strcmp(sapi_module.name, "cli") == 0) {
11 if (*php_ini_search_path) {
15 /* Add binary directory */
17 binary_location = (char *) emalloc(MAXPATHLEN);
18 if (GetModuleFileName(0, binary_location, MAXPATHLEN) == 0) {
19 efree(binary_location);
21 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)) {