cvs: php4 /ext/gd gd.c

From: Date: Thu, 03 Apr 2003 23:10:08 +0000
Subject: cvs: php4 /ext/gd gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20054@lists.php.net to get a copy of this message
sniper Thu Apr 3 18:10:08 2003 EDT Modified files: /php4/ext/gd gd.c Log: Use php_error_docref. Index: php4/ext/gd/gd.c diff -u php4/ext/gd/gd.c:1.262 php4/ext/gd/gd.c:1.263 --- php4/ext/gd/gd.c:1.262 Thu Apr 3 14:18:57 2003 +++ php4/ext/gd/gd.c Thu Apr 3 18:10:08 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.262 2003/04/03 19:18:57 sas Exp $ */ +/* $Id: gd.c,v 1.263 2003/04/03 23:10:08 sniper Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -800,9 +800,8 @@ 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; } @@ -1249,9 +1248,8 @@ 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; }

« previous php.cvs (#20054) next »