1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 02:33:17 +02:00

Applied imagedeallocate() fix

This commit is contained in:
Rasmus Lerdorf
2002-11-22 23:25:14 +00:00
parent 962e4864a1
commit 761bcbd751
+7
View File
@@ -1867,6 +1867,13 @@ PHP_FUNCTION(imagecolordeallocate)
ZEND_FETCH_RESOURCE(im, gdImagePtr, IM, -1, "Image", le_gd);
#if HAVE_LIBGD20
/* We can return right away for a truecolor image as deallocating colours is meaningless here */
if (gdImageTrueColor(im)) {
RETURN_TRUE;
}
#endif
convert_to_long_ex(index);
col = Z_LVAL_PP(index);