From: Martin Jansen Date: Sat, 11 Dec 2010 20:09:39 +0000 (+0000) Subject: * Fixed parameter check introduced with the recent fix for bug #53492. X-Git-Tag: php-5.4.0alpha1~191^2~529 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02ff4766c942985b73aa8932301fe7478a58c0ac;p=php * Fixed parameter check introduced with the recent fix for bug #53492. * Improved the error message along the way. --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 8c7e6b1164..411d14657c 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -4290,8 +4290,8 @@ PHP_FUNCTION(imagepstext) return; } - if (aa_steps != 4 || aa_steps != 16) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "AA steps must be 4 or 16"); + if (aa_steps != 4 && aa_steps != 16) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Antialias steps must be 4 or 16"); RETURN_FALSE; }