From: Stanislav Malyshev Date: Thu, 25 Jan 2001 14:35:36 +0000 (+0000) Subject: Fix crash in stdout image output X-Git-Tag: php-4.0.5RC1~469 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=773b582b1af90cca55529f7f5927b5e0d4971347;p=php Fix crash in stdout image output # Basically, this code sucks. It should use GD contexts, not temp files --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 45a4c5b099..2482d5ad31 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -860,10 +860,10 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char 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; }