Lines Matching refs:finfo
59 #define FILEINFO_FROM_OBJECT(finfo, object) \ argument
62 finfo = obj->ptr; \
63 if (!finfo) { \
107 PHP_MINIT_FUNCTION(finfo) in PHP_MINIT_FUNCTION() argument
129 PHP_MINIT(finfo),
164 php_fileinfo *finfo; in PHP_FUNCTION() local
210 finfo = emalloc(sizeof(php_fileinfo)); in PHP_FUNCTION()
212 finfo->options = options; in PHP_FUNCTION()
213 finfo->magic = magic_open(options); in PHP_FUNCTION()
215 if (finfo->magic == NULL) { in PHP_FUNCTION()
216 efree(finfo); in PHP_FUNCTION()
227 if (magic_load(finfo->magic, file) == -1) { in PHP_FUNCTION()
229 magic_close(finfo->magic); in PHP_FUNCTION()
230 efree(finfo); in PHP_FUNCTION()
244 obj->ptr = finfo; in PHP_FUNCTION()
248 obj->ptr = finfo; in PHP_FUNCTION()
271 php_fileinfo *finfo; in PHP_FUNCTION() local
277 FILEINFO_FROM_OBJECT(finfo, self); in PHP_FUNCTION()
279 FINFO_SET_OPTION(finfo->magic, options) in PHP_FUNCTION()
280 finfo->options = options; in PHP_FUNCTION()
295 php_fileinfo *finfo = NULL; in _php_finfo_get_type() local
334 FILEINFO_FROM_OBJECT(finfo, self); in _php_finfo_get_type()
335 magic = finfo->magic; in _php_finfo_get_type()
439 FINFO_SET_OPTION(magic, finfo->options) in _php_finfo_get_type()