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;
                        }
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to