diff options
| author | Rasmus Lerdorf <rasmus@php.net> | 2000-07-14 22:07:57 +0000 |
|---|---|---|
| committer | Rasmus Lerdorf <rasmus@php.net> | 2000-07-14 22:07:57 +0000 |
| commit | 3c10e038e211c9d067829e8abbbeac72e326958d (patch) | |
| tree | 87c23e3a5322ec57f5d507b25e568973aa1fd17e /ext/gd | |
| parent | 2f960d70b92e49daf5111ab0d8abacab41d592be (diff) | |
| download | php-git-3c10e038e211c9d067829e8abbbeac72e326958d.tar.gz | |
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)
Diffstat (limited to 'ext/gd')
| -rw-r--r-- | ext/gd/gd.c | 5 |
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; } |
