From: Colin Viebrock Date: Wed, 5 Apr 2000 20:29:20 +0000 (+0000) Subject: fixed the segfault problem (probably not the prettiest way, but) X-Git-Tag: php-4.0RC2~478 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e296bfe976618472899f4745c6329badc57193d;p=php fixed the segfault problem (probably not the prettiest way, but) --- diff --git a/ext/standard/info.c b/ext/standard/info.c index 8ced2aefbb..674f65cfa9 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -122,6 +122,7 @@ PHPAPI void php_print_info(int flag) char **env,*tmp1,*tmp2; char *php_uname; int expose_php = INI_INT("expose_php"); + int tmp_zend_debug; #ifdef PHP_WIN32 char php_windows_uname[256]; @@ -168,9 +169,10 @@ PHPAPI void php_print_info(int flag) php_info_print_table_row(2, "Configure Command", CONFIGURE_COMMAND ); #endif php_info_print_table_row(2, "php.ini Path", CONFIGURATION_FILE_PATH ); -/* why does this cause seg faults? - php_info_print_table_row(2, "ZEND_DEBUG", ZEND_DEBUG ); -*/ + + sprintf(tmp_zend_debug, "%d", ZEND_DEBUG); + php_info_print_table_row(2, "ZEND_DEBUG", tmp_zend_debug ); + if (sapi_module.name) php_info_print_table_row(2, "SAPI", sapi_module.name ); #ifdef ZTS