summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2013-03-27 05:13:30 +0100
committerPierre Joye <pierre.php@gmail.com>2013-03-27 05:13:30 +0100
commitf3ebb40ad6041e9c29e165f9d7017fb50063129f (patch)
tree9ba18e2efc8d023ad29c3e34683f807a83d17e2b
parent4d73bb070ee90336984f275eb24f7d1ca1cff1ea (diff)
downloadphp-git-f3ebb40ad6041e9c29e165f9d7017fb50063129f.tar.gz
FALSE on error
-rw-r--r--ext/gd/gd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 23a6ec9143..3ce1a2cf23 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -1814,7 +1814,7 @@ PHP_FUNCTION(imagepalettetotruecolor)
ZEND_FETCH_RESOURCE(im, gdImagePtr, &IM, -1, "Image", le_gd);
if (gdImagePaletteToTrueColor(im) == 0) {
- RETURN_TRUE;
+ RETURN_FALSE;
}
RETURN_TRUE;