com php-src: catch up with new finfo constant: ext/fileinfo/fileinfo.c
| From: | Anatol Belski | Date: | Thu, 24 Nov 2016 15:23:35 +0000 |
| Subject: | com php-src: catch up with new finfo constant: ext/fileinfo/fileinfo.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96027@lists.php.net to get a copy of this message | ||
Commit: 6b14989001145b91f01c152e419bfcd33bf7ac4b
Author: Anatol Belski <ab@php.net> Thu, 24 Nov 2016 16:23:35 +0100
Parents: 020b87a40d2babf2f3ba40d5a15e81056112d6d6
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6b14989001145b91f01c152e419bfcd33bf7ac4b
Log:
catch up with new finfo constant
Changed paths:
M ext/fileinfo/fileinfo.c
Diff:
diff --git a/ext/fileinfo/fileinfo.c b/ext/fileinfo/fileinfo.c
index d2455b4..3da2bf9 100644
--- a/ext/fileinfo/fileinfo.c
+++ b/ext/fileinfo/fileinfo.c
@@ -237,6 +237,11 @@ PHP_MINIT_FUNCTION(finfo)
#ifdef MAGIC_RAW
REGISTER_LONG_CONSTANT("FILEINFO_RAW", MAGIC_RAW, CONST_CS|CONST_PERSISTENT);
#endif
+#if 0
+ /* seems not usable yet. */
+ REGISTER_LONG_CONSTANT("FILEINFO_APPLE", MAGIC_APPLE, CONST_CS|CONST_PERSISTENT);
+#endif
+ REGISTER_LONG_CONSTANT("FILEINFO_EXTENSION", MAGIC_EXTENSION,
CONST_CS|CONST_PERSISTENT);
return SUCCESS;
}