cvs: php4 /ext/gd gd.c

From: Date: Fri, 14 Jul 2000 22:07:58 +0000
Subject: cvs: php4 /ext/gd gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-759@lists.php.net to get a copy of this message
rasmus Fri Jul 14 15:07:58 2000 EDT Modified files: /php4/ext/gd gd.c Log: Add IMG_GIF, IMG_JPG, IMG_JPEG, IMG_PNG and IMG_WBMP constants for imagetypes() function @ Add IMG_GIF, IMG_JPG, IMG_JPEG, IMG_PNG and IMG_WBMP constants for @ imagetypes() function (Rasmus) Index: php4/ext/gd/gd.c diff -u php4/ext/gd/gd.c:1.82 php4/ext/gd/gd.c:1.83 --- php4/ext/gd/gd.c:1.82 Fri Jul 14 14:51:31 2000 +++ php4/ext/gd/gd.c Fri Jul 14 15:07:57 2000 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.82 2000/07/14 21:51:31 rasmus Exp $ */ +/* $Id: gd.c,v 1.83 2000/07/14 22:07:57 rasmus Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -215,6 +215,11 @@ GDG(le_ps_font) = register_list_destructors(php_free_ps_font, NULL); GDG(le_ps_enc) = register_list_destructors(php_free_ps_enc, NULL); #endif + REGISTER_LONG_CONSTANT("IMG_GIF", 1, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("IMG_JPG", 2, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("IMG_JPEG", 2, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("IMG_PNG", 4, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("IMG_WBMP", 8, CONST_CS | CONST_PERSISTENT); return SUCCESS; }

« previous php.cvs (#759) next »