cvs: php-src /ext/gd gd.c gd_ctx.c

From: Date: Tue, 01 Aug 2006 22:41:33 +0000
Subject: cvs: php-src /ext/gd gd.c gd_ctx.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-39713@lists.php.net to get a copy of this message
tony2001 Tue Aug 1 22:41:33 2006 UTC Modified files: /php-src/ext/gd gd.c gd_ctx.c Log: implement my own FR #36995 nuke unused variable http://cvs.php.net/viewvc.cgi/php-src/ext/gd/gd.c?r1=1.353&r2=1.354&diff_format=u Index: php-src/ext/gd/gd.c diff -u php-src/ext/gd/gd.c:1.353 php-src/ext/gd/gd.c:1.354 --- php-src/ext/gd/gd.c:1.353 Sun Jul 2 00:10:36 2006 +++ php-src/ext/gd/gd.c Tue Aug 1 22:41:33 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.353 2006/07/02 00:10:36 bjori Exp $ */ +/* $Id: gd.c,v 1.354 2006/08/01 22:41:33 tony2001 Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -2167,7 +2167,9 @@ php_stream *stream; FILE * fp = NULL; int argc=ZEND_NUM_ARGS(); +#ifdef HAVE_GD_JPG long ignore_warning; +#endif if ((image_type == PHP_GDIMG_TYPE_GD2PART && argc != 5) || (image_type != PHP_GDIMG_TYPE_GD2PART && argc != 1) || @@ -4375,7 +4377,9 @@ int int_threshold; int x, y; float x_ratio, y_ratio; +#ifdef HAVE_GD_JPG long ignore_warning; +#endif if (argc != 5 || zend_get_parameters_ex(argc, &f_org, &f_dest, &height, &width, &threshold) == FAILURE) { ZEND_WRONG_PARAM_COUNT(); http://cvs.php.net/viewvc.cgi/php-src/ext/gd/gd_ctx.c?r1=1.29&r2=1.30&diff_format=u Index: php-src/ext/gd/gd_ctx.c diff -u php-src/ext/gd/gd_ctx.c:1.29 php-src/ext/gd/gd_ctx.c:1.30 --- php-src/ext/gd/gd_ctx.c:1.29 Fri Jan 27 01:59:26 2006 +++ php-src/ext/gd/gd_ctx.c Tue Aug 1 22:41:33 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd_ctx.c,v 1.29 2006/01/27 01:59:26 pajoye Exp $ */ +/* $Id: gd_ctx.c,v 1.30 2006/08/01 22:41:33 tony2001 Exp $ */ #include "php_gd.h" @@ -92,7 +92,7 @@ fp = VCWD_FOPEN(fn, "wb"); if (!fp) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to open '%s' for writing", fn); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to open '%s' for writing: %s", fn, strerror(errno)); RETURN_FALSE; }

« previous php.cvs (#39713) next »