Skip to content

Commit 7674a54

Browse files
committed
Remove commented zend_ini_displayer_cb
1 parent 3b70dc0 commit 7674a54

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

Zend/zend_ini.c

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -515,46 +515,6 @@ ZEND_API zend_bool zend_ini_parse_bool(zend_string *str)
515515
}
516516
}
517517

518-
#if TONY_20070307
519-
static void zend_ini_displayer_cb(zend_ini_entry *ini_entry, int type) /* {{{ */
520-
{
521-
if (ini_entry->displayer) {
522-
ini_entry->displayer(ini_entry, type);
523-
} else {
524-
char *display_string;
525-
uint32_t display_string_length;
526-
527-
if (type == ZEND_INI_DISPLAY_ORIG && ini_entry->modified) {
528-
if (ini_entry->orig_value) {
529-
display_string = ini_entry->orig_value;
530-
display_string_length = ini_entry->orig_value_length;
531-
} else {
532-
if (zend_uv.html_errors) {
533-
display_string = NO_VALUE_HTML;
534-
display_string_length = sizeof(NO_VALUE_HTML) - 1;
535-
} else {
536-
display_string = NO_VALUE_PLAINTEXT;
537-
display_string_length = sizeof(NO_VALUE_PLAINTEXT) - 1;
538-
}
539-
}
540-
} else if (ini_entry->value && ini_entry->value[0]) {
541-
display_string = ini_entry->value;
542-
display_string_length = ini_entry->value_length;
543-
} else {
544-
if (zend_uv.html_errors) {
545-
display_string = NO_VALUE_HTML;
546-
display_string_length = sizeof(NO_VALUE_HTML) - 1;
547-
} else {
548-
display_string = NO_VALUE_PLAINTEXT;
549-
display_string_length = sizeof(NO_VALUE_PLAINTEXT) - 1;
550-
}
551-
}
552-
ZEND_WRITE(display_string, display_string_length);
553-
}
554-
}
555-
/* }}} */
556-
#endif
557-
558518
ZEND_INI_DISP(zend_ini_boolean_displayer_cb) /* {{{ */
559519
{
560520
int value;

0 commit comments

Comments
 (0)