diff options
Diffstat (limited to 'ext/gd/gd.c')
-rw-r--r-- | ext/gd/gd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index b0215386d9..608f350c2f 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -829,12 +829,12 @@ PHP_FUNCTION(imagecreatetruecolor) } if (x_size <= 0 || x_size >= INT_MAX) { - zend_throw_error(NULL, "Invalid width (x_size)"); + zend_value_error("Invalid width (x_size)"); return; } if (y_size <= 0 || y_size >= INT_MAX) { - zend_throw_error(NULL, "Invalid height (y_size)"); + zend_value_error("Invalid height (y_size)"); return; } @@ -1473,12 +1473,12 @@ PHP_FUNCTION(imagecreate) } if (x_size <= 0 || x_size >= INT_MAX) { - zend_throw_error(NULL, "Invalid width (x_size)"); + zend_value_error("Invalid width (x_size)"); return; } if (y_size <= 0 || y_size >= INT_MAX) { - zend_throw_error(NULL, "Invalid height (y_size)"); + zend_value_error("Invalid height (y_size)"); return; } |