Lines Matching refs:finfo
69 #define FILEINFO_FROM_OBJECT(finfo, object) \ argument
72 finfo = obj->ptr; \
73 if (!finfo) { \
126 ZEND_ARG_INFO(0, finfo)
130 ZEND_ARG_INFO(0, finfo)
139 ZEND_ARG_INFO(0, finfo)
152 ZEND_ARG_INFO(0, finfo)
172 ZEND_ME_MAPPING(finfo, finfo_open, arginfo_finfo_open, ZEND_ACC_PUBLIC)
194 struct php_fileinfo *finfo = (struct php_fileinfo *) rsrc->ptr; in finfo_resource_destructor() local
195 magic_close(finfo->magic); in finfo_resource_destructor()
218 PHP_MINIT_FUNCTION(finfo) in PHP_MINIT_FUNCTION() argument
255 PHP_MINIT(finfo),
296 struct php_fileinfo *finfo; local
338 finfo = emalloc(sizeof(struct php_fileinfo));
340 finfo->options = options;
341 finfo->magic = magic_open(options);
343 if (finfo->magic == NULL) {
344 efree(finfo);
350 if (magic_load(finfo->magic, file) == -1) {
352 magic_close(finfo->magic);
353 efree(finfo);
359 FILEINFO_REGISTER_OBJECT(object, finfo);
361 ZEND_REGISTER_RESOURCE(return_value, finfo, le_fileinfo);
370 struct php_fileinfo *finfo; local
376 ZEND_FETCH_RESOURCE(finfo, struct php_fileinfo *, &zfinfo, -1, "file_info", le_fileinfo);
389 struct php_fileinfo *finfo; local
397 FILEINFO_FROM_OBJECT(finfo, object);
402 ZEND_FETCH_RESOURCE(finfo, struct php_fileinfo *, &zfinfo, -1, "file_info", le_fileinfo);
405 FINFO_SET_OPTION(finfo->magic, options)
406 finfo->options = options;
421 struct php_fileinfo *finfo = NULL; local
461 FILEINFO_FROM_OBJECT(finfo, object);
462 magic = finfo->magic;
467 ZEND_FETCH_RESOURCE(finfo, struct php_fileinfo *, &zfinfo, -1, "file_info", le_fileinfo);
468 magic = finfo->magic;
573 FINFO_SET_OPTION(magic, finfo->options)