From: foobar Date: Thu, 3 Apr 2003 23:10:17 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.2RC2~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce99003ae13afd342843f6b98a9c4f9ce422a945;p=php MFH --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index c11ce2979f..35624f3dd0 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -729,9 +729,8 @@ PHP_FUNCTION(imagecreatetruecolor) convert_to_long_ex(x_size); convert_to_long_ex(y_size); - if (Z_LVAL_PP(x_size) <= 0 - || Z_LVAL_PP(y_size) <= 0) { - php_error(E_WARNING, "invalid image dimensions"); + if (Z_LVAL_PP(x_size) <= 0 || Z_LVAL_PP(y_size) <= 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid image dimensions"); RETURN_FALSE; } @@ -1174,9 +1173,8 @@ PHP_FUNCTION(imagecreate) convert_to_long_ex(x_size); convert_to_long_ex(y_size); - if (Z_LVAL_PP(x_size) <= 0 - || Z_LVAL_PP(y_size) <= 0) { - php_error(E_WARNING, "invalid image dimensions"); + if (Z_LVAL_PP(x_size) <= 0 || Z_LVAL_PP(y_size) <= 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid image dimensions"); RETURN_FALSE; }