summaryrefslogtreecommitdiff
path: root/ext/gd/gd.c
diff options
context:
space:
mode:
authorMartin Jansen <mj@php.net>2010-12-11 20:09:39 +0000
committerMartin Jansen <mj@php.net>2010-12-11 20:09:39 +0000
commit02ff4766c942985b73aa8932301fe7478a58c0ac (patch)
treed06c62f2874e970e239c5dcd5dce9e87a02530b7 /ext/gd/gd.c
parentd94744649fd1b886eec210055d64f52b220d39cb (diff)
downloadphp-git-02ff4766c942985b73aa8932301fe7478a58c0ac.tar.gz
* Fixed parameter check introduced with the recent fix for bug #53492.
* Improved the error message along the way.
Diffstat (limited to 'ext/gd/gd.c')
-rw-r--r--ext/gd/gd.c4
1 files changed, 2 insertions, 2 deletions
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;
}