Re: cvs: php4 /ext/gd gd.c
| From: | Derick Rethans | Date: | Thu, 03 Apr 2003 19:26:00 +0000 |
| Subject: | Re: cvs: php4 /ext/gd gd.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-20045@lists.php.net to get a copy of this message | ||
On Thu, 3 Apr 2003, Sascha Schumann wrote:
> sas Thu Apr 3 14:18:58 2003 EDT
>
> Modified files:
> /php4/ext/gd gd.c
> Log:
> Fix segfaults in imagecreate/imagecreatetruecolor
Can we please stick to using php_error_docref and try to keep the
descriptions in the same format (ie. with a capital and a point)?
> + if (Z_LVAL_PP(x_size) <= 0
> + || Z_LVAL_PP(y_size) <= 0) {
> + php_error(E_WARNING, "invalid image dimensions");
> + RETURN_FALSE;
> + }
> +
Derick
--
"my other box is your windows PC"
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------