diff options
| author | Martin Jansen <mj@php.net> | 2010-12-11 20:09:39 +0000 |
|---|---|---|
| committer | Martin Jansen <mj@php.net> | 2010-12-11 20:09:39 +0000 |
| commit | 02ff4766c942985b73aa8932301fe7478a58c0ac (patch) | |
| tree | d06c62f2874e970e239c5dcd5dce9e87a02530b7 /ext/gd/gd.c | |
| parent | d94744649fd1b886eec210055d64f52b220d39cb (diff) | |
| download | php-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.c | 4 |
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; } |
