Lines Matching refs:finfo

69 #define FILEINFO_FROM_OBJECT(finfo, object) \  argument
72 finfo = obj->ptr; \
73 if (!finfo) { \
125 ZEND_ARG_INFO(0, finfo)
129 ZEND_ARG_INFO(0, finfo)
138 ZEND_ARG_INFO(0, finfo)
151 ZEND_ARG_INFO(0, finfo)
171 ZEND_ME_MAPPING(finfo, finfo_open, arginfo_finfo_open, ZEND_ACC_PUBLIC)
193 struct php_fileinfo *finfo = (struct php_fileinfo *) rsrc->ptr; in finfo_resource_destructor() local
194 magic_close(finfo->magic); in finfo_resource_destructor()
217 PHP_MINIT_FUNCTION(finfo) in PHP_MINIT_FUNCTION() argument
254 PHP_MINIT(finfo),
301 struct php_fileinfo *finfo; in PHP_FUNCTION() local
335 finfo = emalloc(sizeof(struct php_fileinfo)); in PHP_FUNCTION()
337 finfo->options = options; in PHP_FUNCTION()
338 finfo->magic = magic_open(options); in PHP_FUNCTION()
340 if (finfo->magic == NULL) { in PHP_FUNCTION()
341 efree(finfo); in PHP_FUNCTION()
347 if (magic_load(finfo->magic, file) == -1) { in PHP_FUNCTION()
349 magic_close(finfo->magic); in PHP_FUNCTION()
350 efree(finfo); in PHP_FUNCTION()
356 FILEINFO_REGISTER_OBJECT(object, finfo); in PHP_FUNCTION()
358 ZEND_REGISTER_RESOURCE(return_value, finfo, le_fileinfo); in PHP_FUNCTION()
367 struct php_fileinfo *finfo; in PHP_FUNCTION() local
373 ZEND_FETCH_RESOURCE(finfo, struct php_fileinfo *, &zfinfo, -1, "file_info", le_fileinfo); in PHP_FUNCTION()
386 struct php_fileinfo *finfo; in PHP_FUNCTION() local
394 FILEINFO_FROM_OBJECT(finfo, object); in PHP_FUNCTION()
399 ZEND_FETCH_RESOURCE(finfo, struct php_fileinfo *, &zfinfo, -1, "file_info", le_fileinfo); in PHP_FUNCTION()
402 FINFO_SET_OPTION(finfo->magic, options) in PHP_FUNCTION()
403 finfo->options = options; in PHP_FUNCTION()
418 struct php_fileinfo *finfo = NULL; in _php_finfo_get_type() local
458 FILEINFO_FROM_OBJECT(finfo, object); in _php_finfo_get_type()
459 magic = finfo->magic; in _php_finfo_get_type()
464 ZEND_FETCH_RESOURCE(finfo, struct php_fileinfo *, &zfinfo, -1, "file_info", le_fileinfo); in _php_finfo_get_type()
465 magic = finfo->magic; in _php_finfo_get_type()
575 FINFO_SET_OPTION(magic, finfo->options) in _php_finfo_get_type()