summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/gd/gd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index d0bc3408aa..70f06af445 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -215,6 +215,11 @@ PHP_MINIT_FUNCTION(gd)
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;
}