mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fix unsigned check
This commit is contained in:
parent
544a2c4792
commit
7c5ae9a1cf
1 changed files with 6 additions and 2 deletions
|
@ -388,8 +388,12 @@ PHP_MINFO_FUNCTION(apache)
|
||||||
}
|
}
|
||||||
smart_str_appendc(&tmp1, ' ');
|
smart_str_appendc(&tmp1, ' ');
|
||||||
}
|
}
|
||||||
if (tmp1.s && (tmp1.s->len - 1) >= 0) {
|
if (tmp1.s) {
|
||||||
|
if (tmp1.s->len > 0) {
|
||||||
tmp1.s->val[tmp1.s->len - 1] = '\0';
|
tmp1.s->val[tmp1.s->len - 1] = '\0';
|
||||||
|
} else {
|
||||||
|
tmp1.s->val[0] = '\0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
php_info_print_table_start();
|
php_info_print_table_start();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue