Lines Matching refs:options
41 zend_long options; member
98 #define FINFO_SET_OPTION(magic, options) \ argument
99 if (magic_setflags(magic, options) == -1) { \
101 options, magic_errno(magic), magic_error(magic)); \
179 zend_long options = MAGIC_NONE; in PHP_FUNCTION() local
187 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|lp!", &options, &file, &file_len) == FAILURE) { in PHP_FUNCTION()
230 finfo->options = options; in PHP_FUNCTION()
231 finfo->magic = magic_open(options); in PHP_FUNCTION()
235 php_error_docref(NULL, E_WARNING, "Invalid mode '" ZEND_LONG_FMT "'.", options); in PHP_FUNCTION()
288 zend_long options; in PHP_FUNCTION() local
292 …thod_parameters(ZEND_NUM_ARGS(), getThis(), "Ol", &self, finfo_class_entry, &options) == FAILURE) { in PHP_FUNCTION()
297 FINFO_SET_OPTION(finfo->magic, options) in PHP_FUNCTION()
298 finfo->options = options; in PHP_FUNCTION()
310 zend_long options = 0; in _php_finfo_get_type() local
349 …), getThis(), "Os|lr!", &self, finfo_class_entry, &buffer, &buffer_len, &options, &zcontext) == FA… in _php_finfo_get_type()
357 if (options) { in _php_finfo_get_type()
358 FINFO_SET_OPTION(magic, options) in _php_finfo_get_type()
454 if (options) { in _php_finfo_get_type()
455 FINFO_SET_OPTION(magic, finfo->options) in _php_finfo_get_type()