Skip to content

Commit

Permalink
Merge from trunk:
Browse files Browse the repository at this point in the history
* Fixed parameter check introduced with the recent fix for bug #53492.

* Improved the error message along the way.
  • Loading branch information
mj committed Dec 11, 2010
1 parent 67db416 commit cedbc50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/gd/gd.c
Original file line number Diff line number Diff line change
Expand Up @@ -4593,8 +4593,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;
}

Expand Down

0 comments on commit cedbc50

Please sign in to comment.