]> granicus.if.org Git - php/commitdiff
* Fixed parameter check introduced with the recent fix for bug #53492.
authorMartin Jansen <mj@php.net>
Sat, 11 Dec 2010 20:09:39 +0000 (20:09 +0000)
committerMartin Jansen <mj@php.net>
Sat, 11 Dec 2010 20:09:39 +0000 (20:09 +0000)
* Improved the error message along the way.

ext/gd/gd.c

index 8c7e6b116486c2f593f768ad90c51eed101a3400..411d14657c354447f822d55d3c65f337166e3277 100644 (file)
@@ -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;
        }