We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fea4c1 commit 1aac85bCopy full SHA for 1aac85b
ext/gd/gd.c
@@ -1714,7 +1714,8 @@ PHP_FUNCTION(imagecolordeallocate)
1714
gdImageColorDeallocate(im, col);
1715
RETURN_TRUE;
1716
} else {
1717
- php_error(E_WARNING, "Color index out of range");
+ php_error(E_WARNING, "%s() color index %d out of range",
1718
+ get_active_function_name(TSRMLS_C), col);
1719
RETURN_FALSE;
1720
}
1721
@@ -1830,7 +1831,8 @@ PHP_FUNCTION(imagecolorsforindex)
1830
1831
1832
#endif
1833
else {
1834
1835
1836
1837
1838
0 commit comments