]> granicus.if.org Git - php/commitdiff
- Be more verbose which index causes the warning.
authorMarkus Fischer <mfischer@php.net>
Sat, 15 Jun 2002 18:14:19 +0000 (18:14 +0000)
committerMarkus Fischer <mfischer@php.net>
Sat, 15 Jun 2002 18:14:19 +0000 (18:14 +0000)
ext/gd/gd.c

index 0c24d172e5db3c6f3b4644a0752dcdd20279d063..8e5b0a371be39e3baf7265eab08bb4e290bdd145 100644 (file)
@@ -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;
        }
 }