diff options
| author | Colin Viebrock <cmv@php.net> | 2000-04-05 20:29:20 +0000 |
|---|---|---|
| committer | Colin Viebrock <cmv@php.net> | 2000-04-05 20:29:20 +0000 |
| commit | 5e296bfe976618472899f4745c6329badc57193d (patch) | |
| tree | 35538b24160e1d7116e2a6f1b16ab07390105f8c /ext | |
| parent | 6882044a468a5d079e08588817632df6de20d7af (diff) | |
| download | php-git-5e296bfe976618472899f4745c6329badc57193d.tar.gz | |
fixed the segfault problem (probably not the prettiest way, but)
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/standard/info.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 |
