This patch fixes small phpinfo() problem.
Current phpinfo() does not display values properly, if
- value is string AND
- value is not set in php.ini AND
- value is modified by other places such as .htaccess,
httpd.conf, etc.
(It supposed to print "no value", but it doesn't. With mozilla,
orig_value cell is rendered as black box.)
--
Yasuo Ohgaki
Index: php_ini.c
===================================================================
RCS file: /repository/php4/main/php_ini.c,v
retrieving revision 1.74
diff -u -r1.74 php_ini.c
--- php_ini.c 6 Oct 2001 20:13:38 -0000 1.74
+++ php_ini.c 30 Oct 2001 08:34:31 -0000
@@ -50,7 +50,7 @@
uint display_string_length, esc_html=0;
if (type==ZEND_INI_DISPLAY_ORIG && ini_entry->modified) {
- if (ini_entry->orig_value) {
+ if (ini_entry->orig_value && ini_entry->orig_value[0]) {
display_string = ini_entry->orig_value;
display_string_length = ini_entry->orig_value_length;
esc_html=1;
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]