cvs: php4 /ext/gd gd.c

From: Date: Thu, 25 Jan 2001 14:35:36 +0000
Subject: cvs: php4 /ext/gd gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3763@lists.php.net to get a copy of this message
stas Thu Jan 25 06:35:36 2001 EDT Modified files: /php4/ext/gd gd.c Log: Fix crash in stdout image output # Basically, this code sucks. It should use GD contexts, not temp files Index: php4/ext/gd/gd.c diff -u php4/ext/gd/gd.c:1.108 php4/ext/gd/gd.c:1.109 --- php4/ext/gd/gd.c:1.108 Wed Jan 24 01:42:17 2001 +++ php4/ext/gd/gd.c Thu Jan 25 06:35:36 2001 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.108 2001/01/24 09:42:17 eschmid Exp $ */ +/* $Id: gd.c,v 1.109 2001/01/25 14:35:36 stas Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -860,10 +860,10 @@ if(q<0||q>255) { php_error(E_WARNING, "%s: invalid threshold value '%d'. It must be between 0 and 255",get_active_function_name(), q); } - (*func_p)(im, q, fp); + (*func_p)(im, q, tmp); break; default: - (*func_p)(im, fp); + (*func_p)(im, tmp); break; }

« previous php.cvs (#3763) next »