mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
Use MIN/MAX when dumping RANGE[]
It's very common that one of the bounds is LONG_MIN or LONG_MAX. Dump them as MIN/MAX instead of the int representation in that case, as it makes the dump less noisy.
This commit is contained in:
parent
c0d1dbcb43
commit
fa67864c13
1 changed files with 4 additions and 0 deletions
|
@ -154,11 +154,15 @@ static void zend_dump_range(const zend_ssa_range *r)
|
|||
fprintf(stderr, " RANGE[");
|
||||
if (r->underflow) {
|
||||
fprintf(stderr, "--..");
|
||||
} else if (r->min == ZEND_LONG_MIN) {
|
||||
fprintf(stderr, "MIN..");
|
||||
} else {
|
||||
fprintf(stderr, ZEND_LONG_FMT "..", r->min);
|
||||
}
|
||||
if (r->overflow) {
|
||||
fprintf(stderr, "++]");
|
||||
} else if (r->max == ZEND_LONG_MAX) {
|
||||
fprintf(stderr, "MAX]");
|
||||
} else {
|
||||
fprintf(stderr, ZEND_LONG_FMT "]", r->max);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue