1 /* This is a generated file, edit the .stub.php file instead. 2 * Stub hash: 648085986695281bd5a8fb536d5ec6c2a9f8c6e8 */ 3 4 ZEND_BEGIN_ARG_INFO_EX(arginfo_finfo_open, 0, 0, 0) 5 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "FILEINFO_NONE") 6 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, magic_database, IS_STRING, 1, "null") 7 ZEND_END_ARG_INFO() 8 9 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_finfo_close, 0, 1, _IS_BOOL, 0) 10 ZEND_ARG_INFO(0, finfo) 11 ZEND_END_ARG_INFO() 12 13 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_finfo_set_flags, 0, 2, _IS_BOOL, 0) 14 ZEND_ARG_INFO(0, finfo) 15 ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0) 16 ZEND_END_ARG_INFO() 17 18 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_finfo_file, 0, 2, MAY_BE_STRING|MAY_BE_FALSE) 19 ZEND_ARG_INFO(0, finfo) 20 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) 21 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "FILEINFO_NONE") 22 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, context, "null") 23 ZEND_END_ARG_INFO() 24 25 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_finfo_buffer, 0, 2, MAY_BE_STRING|MAY_BE_FALSE) 26 ZEND_ARG_INFO(0, finfo) 27 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0) 28 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "FILEINFO_NONE") 29 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, context, "null") 30 ZEND_END_ARG_INFO() 31 32 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mime_content_type, 0, 1, MAY_BE_STRING|MAY_BE_FALSE) 33 ZEND_ARG_INFO(0, filename) 34 ZEND_END_ARG_INFO() 35 36 #define arginfo_class_finfo___construct arginfo_finfo_open 37 38 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_finfo_file, 0, 0, 1) 39 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) 40 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "FILEINFO_NONE") 41 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, context, "null") 42 ZEND_END_ARG_INFO() 43 44 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_finfo_buffer, 0, 0, 1) 45 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0) 46 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "FILEINFO_NONE") 47 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, context, "null") 48 ZEND_END_ARG_INFO() 49 50 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_finfo_set_flags, 0, 0, 1) 51 ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0) 52 ZEND_END_ARG_INFO() 53 54 55 ZEND_FUNCTION(finfo_open); 56 ZEND_FUNCTION(finfo_close); 57 ZEND_FUNCTION(finfo_set_flags); 58 ZEND_FUNCTION(finfo_file); 59 ZEND_FUNCTION(finfo_buffer); 60 ZEND_FUNCTION(mime_content_type); 61 62 63 static const zend_function_entry ext_functions[] = { 64 ZEND_FE(finfo_open, arginfo_finfo_open) 65 ZEND_FE(finfo_close, arginfo_finfo_close) 66 ZEND_FE(finfo_set_flags, arginfo_finfo_set_flags) 67 ZEND_FE(finfo_file, arginfo_finfo_file) 68 ZEND_FE(finfo_buffer, arginfo_finfo_buffer) 69 ZEND_FE(mime_content_type, arginfo_mime_content_type) 70 ZEND_FE_END 71 }; 72 73 74 static const zend_function_entry class_finfo_methods[] = { 75 ZEND_ME_MAPPING(__construct, finfo_open, arginfo_class_finfo___construct, ZEND_ACC_PUBLIC) 76 ZEND_ME_MAPPING(file, finfo_file, arginfo_class_finfo_file, ZEND_ACC_PUBLIC) 77 ZEND_ME_MAPPING(buffer, finfo_buffer, arginfo_class_finfo_buffer, ZEND_ACC_PUBLIC) 78 ZEND_ME_MAPPING(set_flags, finfo_set_flags, arginfo_class_finfo_set_flags, ZEND_ACC_PUBLIC) 79 ZEND_FE_END 80 }; 81