From 70432e3befe4af2005757e59fb6c2a84395f7529 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Fri, 28 Feb 2003 20:44:47 +0000 Subject: @- Crash bug fix. If config-file-scan-dir is set and contains .ini files but there is no top php.ini file, we would get a segfault. (Rasmus) --- main/php_ini.c | 1 + 1 file changed, 1 insertion(+) (limited to 'main/php_ini.c') diff --git a/main/php_ini.c b/main/php_ini.c index 84751b3a68..309a0e6c92 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -415,6 +415,7 @@ int php_init_config() if (S_ISREG(sb.st_mode)) { if ((fh.handle.fp = VCWD_FOPEN(ini_file, "r"))) { fh.filename = ini_file; + fh.type = ZEND_HANDLE_FP; zend_parse_ini_file(&fh, 1, php_config_ini_parser_cb, &extension_lists); /* Here, add it to the list of ini files read */ l = strlen(ini_file); -- cgit v1.2.1