mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
- Be more verbose which index causes the warning.
This commit is contained in:
parent
9fea4c1f5f
commit
1aac85becd
1 changed files with 4 additions and 2 deletions
|
@ -1714,7 +1714,8 @@ PHP_FUNCTION(imagecolordeallocate)
|
||||||
gdImageColorDeallocate(im, col);
|
gdImageColorDeallocate(im, col);
|
||||||
RETURN_TRUE;
|
RETURN_TRUE;
|
||||||
} else {
|
} else {
|
||||||
php_error(E_WARNING, "Color index out of range");
|
php_error(E_WARNING, "%s() color index %d out of range",
|
||||||
|
get_active_function_name(TSRMLS_C), col);
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1830,7 +1831,8 @@ PHP_FUNCTION(imagecolorsforindex)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else {
|
else {
|
||||||
php_error(E_WARNING, "Color index out of range");
|
php_error(E_WARNING, "%s() color index %d out of range",
|
||||||
|
get_active_function_name(TSRMLS_C), col);
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue