cvs: /php4/ext/standard info.c

From: Date: Wed, 05 Apr 2000 20:29:50 +0000
Subject: cvs: /php4/ext/standard info.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-13182@lists.php.net to get a copy of this message
cmv Wed Apr 5 13:29:50 2000 EDT Modified files: /php4/ext/standard info.c Log: fixed the segfault problem (probably not the prettiest way, but) Index: php4/ext/standard/info.c diff -u php4/ext/standard/info.c:1.71 php4/ext/standard/info.c:1.72 --- php4/ext/standard/info.c:1.71 Wed Apr 5 13:17:02 2000 +++ php4/ext/standard/info.c Wed Apr 5 13:29:20 2000 @@ -122,6 +122,7 @@ 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 @@ 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

« previous php.version4 (#13182) next »