diff options
author | Markus Fischer <mfischer@php.net> | 2002-06-15 18:14:19 +0000 |
---|---|---|
committer | Markus Fischer <mfischer@php.net> | 2002-06-15 18:14:19 +0000 |
commit | 1aac85becdbe45be1a937ee7e56cbedf945b913c (patch) | |
tree | 8916e82b9ffea3f6de92b1c94e7fc1fac3014da2 | |
parent | 9fea4c1f5f7102a9627d5e0834078fbfa865f461 (diff) | |
download | php-git-1aac85becdbe45be1a937ee7e56cbedf945b913c.tar.gz |
- Be more verbose which index causes the warning.
-rw-r--r-- | ext/gd/gd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 0c24d172e5..8e5b0a371b 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -1714,7 +1714,8 @@ PHP_FUNCTION(imagecolordeallocate) gdImageColorDeallocate(im, col); RETURN_TRUE; } 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; } } @@ -1830,7 +1831,8 @@ PHP_FUNCTION(imagecolorsforindex) } #endif 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; } } |