Skip to content

Commit ae36c08

Browse files
committed
Fix Win32 build as PHP_CONFIG_FILE_SCAN_DIR is not #defined.
1 parent 077fe52 commit ae36c08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/standard/info.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,14 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
380380

381381
php_info_print_table_row(2, "Configuration File (php.ini) Path", php_ini_opened_path?php_ini_opened_path:PHP_CONFIG_FILE_PATH);
382382

383+
#ifdef PHP_CONFIG_FILE_SCAN_DIR
383384
if(strlen(PHP_CONFIG_FILE_SCAN_DIR)) {
384385
php_info_print_table_row(2, "Scan this dir for additional .ini files", PHP_CONFIG_FILE_SCAN_DIR);
385386
if(php_ini_scanned_files) {
386387
php_info_print_table_row(2, "additional .ini files parsed", php_ini_scanned_files);
387388
}
388389
}
390+
#endif
389391

390392
snprintf(temp_api, sizeof(temp_api), "%d", PHP_API_VERSION);
391393
php_info_print_table_row(2, "PHP API", temp_api);

0 commit comments

Comments
 (0)