/* automatically generated by rust-bindgen 0.70.1 */
#![allow(clippy::all)]
#![allow(
non_upper_case_globals,
non_camel_case_types,
non_snake_case,
clashing_extern_declarations
)]
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage> {
storage: Storage,
}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
Self { storage }
}
}
impl<Storage> __BindgenBitfieldUnit<Storage>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
#[inline]
pub fn get_bit(&self, index: usize) -> bool {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = self.storage.as_ref()[byte_index];
let bit_index = if cfg!(target_endian = "big") {
7 - (index % 8)
} else {
index % 8
};
let mask = 1 << bit_index;
byte & mask == mask
}
#[inline]
pub fn set_bit(&mut self, index: usize, val: bool) {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = &mut self.storage.as_mut()[byte_index];
let bit_index = if cfg!(target_endian = "big") {
7 - (index % 8)
} else {
index % 8
};
let mask = 1 << bit_index;
if val {
*byte |= mask;
} else {
*byte &= !mask;
}
}
#[inline]
pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
let mut val = 0;
for i in 0..(bit_width as usize) {
if self.get_bit(i + bit_offset) {
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
val |= 1 << index;
}
}
val
}
#[inline]
pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
for i in 0..(bit_width as usize) {
let mask = 1 << i;
let val_bit_is_set = val & mask == mask;
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
self.set_bit(index + bit_offset, val_bit_is_set);
}
}
}
pub const PHP_API_VERSION: u32 = 20100412;
pub const PHP_BLOWFISH_CRYPT: u32 = 1;
pub const PHP_BUILD_DATE: &[u8; 11] = b"2015-10-17\0";
pub const PHP_CAN_SUPPORT_PROC_OPEN: u32 = 1;
pub const PHP_EXT_DES_CRYPT: u32 = 1;
pub const PHP_ICONV_IMPL: &[u8; 6] = b"glibc\0";
pub const PHP_MD5_CRYPT: u32 = 1;
pub const PHP_MHASH_BC: u32 = 1;
pub const PHP_MYSQL_UNIX_SOCK_ADDR: &[u8; 28] = b"/var/run/mysqld/mysqld.sock\0";
pub const PHP_ONIG_BAD_KOI8_ENTRY: u32 = 1;
pub const PHP_OS: &[u8; 6] = b"Linux\0";
pub const PHP_SHA256_CRYPT: u32 = 1;
pub const PHP_SHA512_CRYPT: u32 = 1;
pub const PHP_SIGCHILD: u32 = 0;
pub const PHP_STD_DES_CRYPT: u32 = 1;
pub const PHP_UNAME : & [u8 ; 92] = b"Linux lettie 3.19.0-18-generic #18-Ubuntu SMP Tue May 19 18:31:35 UTC 2015 x86_64 GNU/Linux\0" ;
pub const PHP_USE_PHP_CRYPT_R: u32 = 1;
pub const PHP_WRITE_STDOUT: u32 = 1;
pub const ZEND_BROKEN_SPRINTF: u32 = 0;
pub const ZEND_DEBUG: u32 = 0;
pub const ZEND_MM_ALIGNMENT: u32 = 8;
pub const ZEND_MM_ALIGNMENT_LOG2: u32 = 3;
pub const PHP_MAJOR_VERSION: u32 = 5;
pub const PHP_MINOR_VERSION: u32 = 4;
pub const PHP_RELEASE_VERSION: u32 = 45;
pub const PHP_EXTRA_VERSION: &[u8; 10] = b"-0+deb7u2\0";
pub const PHP_VERSION: &[u8; 16] = b"5.4.45-0+deb7u2\0";
pub const PHP_VERSION_ID: u32 = 50445;
pub const ZEND_VERSION: &[u8; 6] = b"2.4.0\0";
pub const ZEND_PATHS_SEPARATOR: u8 = 58u8;
pub const ZEND_EXTENSIONS_SUPPORT: u32 = 1;
pub const ZEND_ALLOCA_MAX_SIZE: u32 = 32768;
pub const ZEND_MM_ALIGNMENT_MASK: i32 = -8;
pub const HASH_KEY_IS_STRING: u32 = 1;
pub const HASH_KEY_IS_LONG: u32 = 2;
pub const HASH_KEY_NON_EXISTANT: u32 = 3;
pub const HASH_UPDATE: u32 = 1;
pub const HASH_ADD: u32 = 2;
pub const HASH_NEXT_INSERT: u32 = 4;
pub const HASH_DEL_KEY: u32 = 0;
pub const HASH_DEL_INDEX: u32 = 1;
pub const HASH_DEL_KEY_QUICK: u32 = 2;
pub const HASH_UPDATE_KEY_IF_NONE: u32 = 0;
pub const HASH_UPDATE_KEY_IF_BEFORE: u32 = 1;
pub const HASH_UPDATE_KEY_IF_AFTER: u32 = 2;
pub const HASH_UPDATE_KEY_ANYWAY: u32 = 3;
pub const ZEND_HASH_APPLY_KEEP: u32 = 0;
pub const ZEND_HASH_APPLY_REMOVE: u32 = 1;
pub const ZEND_HASH_APPLY_STOP: u32 = 2;
pub const ZEND_MMAP_AHEAD: u32 = 32;
pub const IS_NULL: u32 = 0;
pub const IS_LONG: u32 = 1;
pub const IS_DOUBLE: u32 = 2;
pub const IS_BOOL: u32 = 3;
pub const IS_ARRAY: u32 = 4;
pub const IS_OBJECT: u32 = 5;
pub const IS_STRING: u32 = 6;
pub const IS_RESOURCE: u32 = 7;
pub const IS_CONSTANT: u32 = 8;
pub const IS_CONSTANT_ARRAY: u32 = 9;
pub const IS_CALLABLE: u32 = 10;
pub const IS_CONSTANT_TYPE_MASK: u32 = 15;
pub const IS_CONSTANT_UNQUALIFIED: u32 = 16;
pub const IS_CONSTANT_INDEX: u32 = 128;
pub const IS_LEXICAL_VAR: u32 = 32;
pub const IS_LEXICAL_REF: u32 = 64;
pub const IS_CONSTANT_IN_NAMESPACE: u32 = 256;
pub const ZEND_MAX_RESERVED_RESOURCES: u32 = 4;
pub const GC_BENCH: u32 = 0;
pub const GC_COLOR: u32 = 3;
pub const GC_BLACK: u32 = 0;
pub const GC_WHITE: u32 = 1;
pub const GC_GREY: u32 = 2;
pub const GC_PURPLE: u32 = 3;
pub const DEBUG_BACKTRACE_PROVIDE_OBJECT: u32 = 1;
pub const DEBUG_BACKTRACE_IGNORE_ARGS: u32 = 2;
pub const DEBUG_ZEND: u32 = 0;
pub const ZEND_ACC_STATIC: u32 = 1;
pub const ZEND_ACC_ABSTRACT: u32 = 2;
pub const ZEND_ACC_FINAL: u32 = 4;
pub const ZEND_ACC_IMPLEMENTED_ABSTRACT: u32 = 8;
pub const ZEND_ACC_IMPLICIT_ABSTRACT_CLASS: u32 = 16;
pub const ZEND_ACC_EXPLICIT_ABSTRACT_CLASS: u32 = 32;
pub const ZEND_ACC_FINAL_CLASS: u32 = 64;
pub const ZEND_ACC_INTERFACE: u32 = 128;
pub const ZEND_ACC_TRAIT: u32 = 288;
pub const ZEND_ACC_INTERACTIVE: u32 = 16;
pub const ZEND_ACC_PUBLIC: u32 = 256;
pub const ZEND_ACC_PROTECTED: u32 = 512;
pub const ZEND_ACC_PRIVATE: u32 = 1024;
pub const ZEND_ACC_PPP_MASK: u32 = 1792;
pub const ZEND_ACC_CHANGED: u32 = 2048;
pub const ZEND_ACC_IMPLICIT_PUBLIC: u32 = 4096;
pub const ZEND_ACC_CTOR: u32 = 8192;
pub const ZEND_ACC_DTOR: u32 = 16384;
pub const ZEND_ACC_CLONE: u32 = 32768;
pub const ZEND_ACC_ALLOW_STATIC: u32 = 65536;
pub const ZEND_ACC_SHADOW: u32 = 131072;
pub const ZEND_ACC_DEPRECATED: u32 = 262144;
pub const ZEND_ACC_IMPLEMENT_INTERFACES: u32 = 524288;
pub const ZEND_ACC_IMPLEMENT_TRAITS: u32 = 4194304;
pub const ZEND_ACC_CONSTANTS_UPDATED: u32 = 1048576;
pub const ZEND_HAS_STATIC_IN_METHODS: u32 = 8388608;
pub const ZEND_ACC_CLOSURE: u32 = 1048576;
pub const ZEND_ACC_CALL_VIA_HANDLER: u32 = 2097152;
pub const ZEND_ACC_NEVER_CACHE: u32 = 4194304;
pub const ZEND_ACC_PASS_REST_BY_REFERENCE: u32 = 16777216;
pub const ZEND_ACC_PASS_REST_PREFER_REF: u32 = 33554432;
pub const ZEND_ACC_RETURN_REFERENCE: u32 = 67108864;
pub const ZEND_ACC_DONE_PASS_TWO: u32 = 134217728;
pub const ZEND_RETURN_VALUE: u32 = 0;
pub const ZEND_RETURN_REFERENCE: u32 = 1;
pub const IS_CONST: u32 = 1;
pub const IS_TMP_VAR: u32 = 2;
pub const IS_VAR: u32 = 4;
pub const IS_UNUSED: u32 = 8;
pub const IS_CV: u32 = 16;
pub const ZEND_STACK_APPLY_TOPDOWN: u32 = 1;
pub const ZEND_STACK_APPLY_BOTTOMUP: u32 = 2;
pub const ZEND_PTR_STACK_NUM_ARGS: u32 = 3;
pub const ZEND_EARLY_BINDING_COMPILE_TIME: u32 = 0;
pub const ZEND_EARLY_BINDING_DELAYED: u32 = 1;
pub const ZEND_EARLY_BINDING_DELAYED_ALL: u32 = 2;
pub const ZEND_NOP: u32 = 0;
pub const ZEND_ADD: u32 = 1;
pub const ZEND_SUB: u32 = 2;
pub const ZEND_MUL: u32 = 3;
pub const ZEND_DIV: u32 = 4;
pub const ZEND_MOD: u32 = 5;
pub const ZEND_SL: u32 = 6;
pub const ZEND_SR: u32 = 7;
pub const ZEND_CONCAT: u32 = 8;
pub const ZEND_BW_OR: u32 = 9;
pub const ZEND_BW_AND: u32 = 10;
pub const ZEND_BW_XOR: u32 = 11;
pub const ZEND_BW_NOT: u32 = 12;
pub const ZEND_BOOL_NOT: u32 = 13;
pub const ZEND_BOOL_XOR: u32 = 14;
pub const ZEND_IS_IDENTICAL: u32 = 15;
pub const ZEND_IS_NOT_IDENTICAL: u32 = 16;
pub const ZEND_IS_EQUAL: u32 = 17;
pub const ZEND_IS_NOT_EQUAL: u32 = 18;
pub const ZEND_IS_SMALLER: u32 = 19;
pub const ZEND_IS_SMALLER_OR_EQUAL: u32 = 20;
pub const ZEND_CAST: u32 = 21;
pub const ZEND_QM_ASSIGN: u32 = 22;
pub const ZEND_ASSIGN_ADD: u32 = 23;
pub const ZEND_ASSIGN_SUB: u32 = 24;
pub const ZEND_ASSIGN_MUL: u32 = 25;
pub const ZEND_ASSIGN_DIV: u32 = 26;
pub const ZEND_ASSIGN_MOD: u32 = 27;
pub const ZEND_ASSIGN_SL: u32 = 28;
pub const ZEND_ASSIGN_SR: u32 = 29;
pub const ZEND_ASSIGN_CONCAT: u32 = 30;
pub const ZEND_ASSIGN_BW_OR: u32 = 31;
pub const ZEND_ASSIGN_BW_AND: u32 = 32;
pub const ZEND_ASSIGN_BW_XOR: u32 = 33;
pub const ZEND_PRE_INC: u32 = 34;
pub const ZEND_PRE_DEC: u32 = 35;
pub const ZEND_POST_INC: u32 = 36;
pub const ZEND_POST_DEC: u32 = 37;
pub const ZEND_ASSIGN: u32 = 38;
pub const ZEND_ASSIGN_REF: u32 = 39;
pub const ZEND_ECHO: u32 = 40;
pub const ZEND_PRINT: u32 = 41;
pub const ZEND_JMP: u32 = 42;
pub const ZEND_JMPZ: u32 = 43;
pub const ZEND_JMPNZ: u32 = 44;
pub const ZEND_JMPZNZ: u32 = 45;
pub const ZEND_JMPZ_EX: u32 = 46;
pub const ZEND_JMPNZ_EX: u32 = 47;
pub const ZEND_CASE: u32 = 48;
pub const ZEND_SWITCH_FREE: u32 = 49;
pub const ZEND_BRK: u32 = 50;
pub const ZEND_CONT: u32 = 51;
pub const ZEND_BOOL: u32 = 52;
pub const ZEND_INIT_STRING: u32 = 53;
pub const ZEND_ADD_CHAR: u32 = 54;
pub const ZEND_ADD_STRING: u32 = 55;
pub const ZEND_ADD_VAR: u32 = 56;
pub const ZEND_BEGIN_SILENCE: u32 = 57;
pub const ZEND_END_SILENCE: u32 = 58;
pub const ZEND_INIT_FCALL_BY_NAME: u32 = 59;
pub const ZEND_DO_FCALL: u32 = 60;
pub const ZEND_DO_FCALL_BY_NAME: u32 = 61;
pub const ZEND_RETURN: u32 = 62;
pub const ZEND_RECV: u32 = 63;
pub const ZEND_RECV_INIT: u32 = 64;
pub const ZEND_SEND_VAL: u32 = 65;
pub const ZEND_SEND_VAR: u32 = 66;
pub const ZEND_SEND_REF: u32 = 67;
pub const ZEND_NEW: u32 = 68;
pub const ZEND_INIT_NS_FCALL_BY_NAME: u32 = 69;
pub const ZEND_FREE: u32 = 70;
pub const ZEND_INIT_ARRAY: u32 = 71;
pub const ZEND_ADD_ARRAY_ELEMENT: u32 = 72;
pub const ZEND_INCLUDE_OR_EVAL: u32 = 73;
pub const ZEND_UNSET_VAR: u32 = 74;
pub const ZEND_UNSET_DIM: u32 = 75;
pub const ZEND_UNSET_OBJ: u32 = 76;
pub const ZEND_FE_RESET: u32 = 77;
pub const ZEND_FE_FETCH: u32 = 78;
pub const ZEND_EXIT: u32 = 79;
pub const ZEND_FETCH_R: u32 = 80;
pub const ZEND_FETCH_DIM_R: u32 = 81;
pub const ZEND_FETCH_OBJ_R: u32 = 82;
pub const ZEND_FETCH_W: u32 = 83;
pub const ZEND_FETCH_DIM_W: u32 = 84;
pub const ZEND_FETCH_OBJ_W: u32 = 85;
pub const ZEND_FETCH_RW: u32 = 86;
pub const ZEND_FETCH_DIM_RW: u32 = 87;
pub const ZEND_FETCH_OBJ_RW: u32 = 88;
pub const ZEND_FETCH_IS: u32 = 89;
pub const ZEND_FETCH_DIM_IS: u32 = 90;
pub const ZEND_FETCH_OBJ_IS: u32 = 91;
pub const ZEND_FETCH_FUNC_ARG: u32 = 92;
pub const ZEND_FETCH_DIM_FUNC_ARG: u32 = 93;
pub const ZEND_FETCH_OBJ_FUNC_ARG: u32 = 94;
pub const ZEND_FETCH_UNSET: u32 = 95;
pub const ZEND_FETCH_DIM_UNSET: u32 = 96;
pub const ZEND_FETCH_OBJ_UNSET: u32 = 97;
pub const ZEND_FETCH_DIM_TMP_VAR: u32 = 98;
pub const ZEND_FETCH_CONSTANT: u32 = 99;
pub const ZEND_GOTO: u32 = 100;
pub const ZEND_EXT_STMT: u32 = 101;
pub const ZEND_EXT_FCALL_BEGIN: u32 = 102;
pub const ZEND_EXT_FCALL_END: u32 = 103;
pub const ZEND_EXT_NOP: u32 = 104;
pub const ZEND_TICKS: u32 = 105;
pub const ZEND_SEND_VAR_NO_REF: u32 = 106;
pub const ZEND_CATCH: u32 = 107;
pub const ZEND_THROW: u32 = 108;
pub const ZEND_FETCH_CLASS: u32 = 109;
pub const ZEND_CLONE: u32 = 110;
pub const ZEND_RETURN_BY_REF: u32 = 111;
pub const ZEND_INIT_METHOD_CALL: u32 = 112;
pub const ZEND_INIT_STATIC_METHOD_CALL: u32 = 113;
pub const ZEND_ISSET_ISEMPTY_VAR: u32 = 114;
pub const ZEND_ISSET_ISEMPTY_DIM_OBJ: u32 = 115;
pub const ZEND_PRE_INC_OBJ: u32 = 132;
pub const ZEND_PRE_DEC_OBJ: u32 = 133;
pub const ZEND_POST_INC_OBJ: u32 = 134;
pub const ZEND_POST_DEC_OBJ: u32 = 135;
pub const ZEND_ASSIGN_OBJ: u32 = 136;
pub const ZEND_INSTANCEOF: u32 = 138;
pub const ZEND_DECLARE_CLASS: u32 = 139;
pub const ZEND_DECLARE_INHERITED_CLASS: u32 = 140;
pub const ZEND_DECLARE_FUNCTION: u32 = 141;
pub const ZEND_RAISE_ABSTRACT_ERROR: u32 = 142;
pub const ZEND_DECLARE_CONST: u32 = 143;
pub const ZEND_ADD_INTERFACE: u32 = 144;
pub const ZEND_DECLARE_INHERITED_CLASS_DELAYED: u32 = 145;
pub const ZEND_VERIFY_ABSTRACT_CLASS: u32 = 146;
pub const ZEND_ASSIGN_DIM: u32 = 147;
pub const ZEND_ISSET_ISEMPTY_PROP_OBJ: u32 = 148;
pub const ZEND_HANDLE_EXCEPTION: u32 = 149;
pub const ZEND_USER_OPCODE: u32 = 150;
pub const ZEND_JMP_SET: u32 = 152;
pub const ZEND_DECLARE_LAMBDA_FUNCTION: u32 = 153;
pub const ZEND_ADD_TRAIT: u32 = 154;
pub const ZEND_BIND_TRAITS: u32 = 155;
pub const ZEND_SEPARATE: u32 = 156;
pub const ZEND_QM_ASSIGN_VAR: u32 = 157;
pub const ZEND_JMP_SET_VAR: u32 = 158;
pub const ZEND_OP_DATA: u32 = 137;
pub const ZEND_FETCH_CLASS_DEFAULT: u32 = 0;
pub const ZEND_FETCH_CLASS_SELF: u32 = 1;
pub const ZEND_FETCH_CLASS_PARENT: u32 = 2;
pub const ZEND_FETCH_CLASS_MAIN: u32 = 3;
pub const ZEND_FETCH_CLASS_GLOBAL: u32 = 4;
pub const ZEND_FETCH_CLASS_AUTO: u32 = 5;
pub const ZEND_FETCH_CLASS_INTERFACE: u32 = 6;
pub const ZEND_FETCH_CLASS_STATIC: u32 = 7;
pub const ZEND_FETCH_CLASS_TRAIT: u32 = 14;
pub const ZEND_FETCH_CLASS_MASK: u32 = 15;
pub const ZEND_FETCH_CLASS_NO_AUTOLOAD: u32 = 128;
pub const ZEND_FETCH_CLASS_SILENT: u32 = 256;
pub const ZEND_PARSED_MEMBER: u32 = 1;
pub const ZEND_PARSED_METHOD_CALL: u32 = 2;
pub const ZEND_PARSED_STATIC_MEMBER: u32 = 4;
pub const ZEND_PARSED_FUNCTION_CALL: u32 = 8;
pub const ZEND_PARSED_VARIABLE: u32 = 16;
pub const ZEND_PARSED_REFERENCE_VARIABLE: u32 = 32;
pub const ZEND_PARSED_NEW: u32 = 64;
pub const ZEND_UNSET_REG: u32 = 0;
pub const ZEND_INTERNAL_FUNCTION: u32 = 1;
pub const ZEND_USER_FUNCTION: u32 = 2;
pub const ZEND_OVERLOADED_FUNCTION: u32 = 3;
pub const ZEND_EVAL_CODE: u32 = 4;
pub const ZEND_OVERLOADED_FUNCTION_TEMPORARY: u32 = 5;
pub const ZEND_INTERNAL_CLASS: u32 = 1;
pub const ZEND_USER_CLASS: u32 = 2;
pub const ZEND_EVAL: u32 = 1;
pub const ZEND_INCLUDE: u32 = 2;
pub const ZEND_INCLUDE_ONCE: u32 = 4;
pub const ZEND_REQUIRE: u32 = 8;
pub const ZEND_REQUIRE_ONCE: u32 = 16;
pub const ZEND_CT: u32 = 1;
pub const ZEND_RT: u32 = 2;
pub const ZEND_FETCH_GLOBAL: u32 = 0;
pub const ZEND_FETCH_LOCAL: u32 = 268435456;
pub const ZEND_FETCH_STATIC: u32 = 536870912;
pub const ZEND_FETCH_STATIC_MEMBER: u32 = 805306368;
pub const ZEND_FETCH_GLOBAL_LOCK: u32 = 1073741824;
pub const ZEND_FETCH_LEXICAL: u32 = 1342177280;
pub const ZEND_FETCH_TYPE_MASK: u32 = 1879048192;
pub const ZEND_FETCH_STANDARD: u32 = 0;
pub const ZEND_FETCH_ADD_LOCK: u32 = 134217728;
pub const ZEND_FETCH_MAKE_REF: u32 = 67108864;
pub const ZEND_ISSET: u32 = 33554432;
pub const ZEND_ISEMPTY: u32 = 16777216;
pub const ZEND_ISSET_ISEMPTY_MASK: u32 = 50331648;
pub const ZEND_QUICK_SET: u32 = 8388608;
pub const ZEND_FETCH_ARG_MASK: u32 = 1048575;
pub const ZEND_FE_FETCH_BYREF: u32 = 1;
pub const ZEND_FE_FETCH_WITH_KEY: u32 = 2;
pub const ZEND_FE_RESET_VARIABLE: u32 = 1;
pub const ZEND_FE_RESET_REFERENCE: u32 = 2;
pub const ZEND_MEMBER_FUNC_CALL: u32 = 1;
pub const ZEND_ARG_SEND_BY_REF: u32 = 1;
pub const ZEND_ARG_COMPILE_TIME_BOUND: u32 = 2;
pub const ZEND_ARG_SEND_FUNCTION: u32 = 4;
pub const ZEND_ARG_SEND_SILENT: u32 = 8;
pub const ZEND_SEND_BY_VAL: u32 = 0;
pub const ZEND_SEND_BY_REF: u32 = 1;
pub const ZEND_SEND_PREFER_REF: u32 = 2;
pub const ZEND_RETURN_VAL: u32 = 0;
pub const ZEND_RETURN_REF: u32 = 1;
pub const ZEND_RETURNS_FUNCTION: u32 = 1;
pub const ZEND_RETURNS_NEW: u32 = 2;
pub const ZEND_CLONE_FUNC_NAME: &[u8; 8] = b"__clone\0";
pub const ZEND_CONSTRUCTOR_FUNC_NAME: &[u8; 12] = b"__construct\0";
pub const ZEND_DESTRUCTOR_FUNC_NAME: &[u8; 11] = b"__destruct\0";
pub const ZEND_GET_FUNC_NAME: &[u8; 6] = b"__get\0";
pub const ZEND_SET_FUNC_NAME: &[u8; 6] = b"__set\0";
pub const ZEND_UNSET_FUNC_NAME: &[u8; 8] = b"__unset\0";
pub const ZEND_ISSET_FUNC_NAME: &[u8; 8] = b"__isset\0";
pub const ZEND_CALL_FUNC_NAME: &[u8; 7] = b"__call\0";
pub const ZEND_CALLSTATIC_FUNC_NAME: &[u8; 13] = b"__callstatic\0";
pub const ZEND_TOSTRING_FUNC_NAME: &[u8; 11] = b"__tostring\0";
pub const ZEND_AUTOLOAD_FUNC_NAME: &[u8; 11] = b"__autoload\0";
pub const ZEND_COMPILE_EXTENDED_INFO: u32 = 1;
pub const ZEND_COMPILE_HANDLE_OP_ARRAY: u32 = 2;
pub const ZEND_COMPILE_IGNORE_INTERNAL_FUNCTIONS: u32 = 4;
pub const ZEND_COMPILE_IGNORE_INTERNAL_CLASSES: u32 = 8;
pub const ZEND_COMPILE_DELAYED_BINDING: u32 = 16;
pub const ZEND_COMPILE_NO_CONSTANT_SUBSTITUTION: u32 = 32;
pub const ZEND_COMPILE_DEFAULT: u32 = 2;
pub const ZEND_COMPILE_DEFAULT_FOR_EVAL: u32 = 0;
pub const ZEND_BUILD_TS: &[u8; 5] = b",NTS\0";
pub const ZEND_MODULE_API_NO: u32 = 20100525;
pub const USING_ZTS: u32 = 0;
pub const MODULE_PERSISTENT: u32 = 1;
pub const MODULE_TEMPORARY: u32 = 2;
pub const MODULE_DEP_REQUIRED: u32 = 1;
pub const MODULE_DEP_CONFLICTS: u32 = 2;
pub const MODULE_DEP_OPTIONAL: u32 = 3;
pub const ZEND_RESOURCE_LIST_TYPE_STD: u32 = 1;
pub const ZEND_RESOURCE_LIST_TYPE_EX: u32 = 2;
pub const ZEND_VM_STACK_PAGE_SIZE: u32 = 16368;
pub const ZEND_USER_OPCODE_CONTINUE: u32 = 0;
pub const ZEND_USER_OPCODE_RETURN: u32 = 1;
pub const ZEND_USER_OPCODE_DISPATCH: u32 = 2;
pub const ZEND_USER_OPCODE_ENTER: u32 = 3;
pub const ZEND_USER_OPCODE_LEAVE: u32 = 4;
pub const ZEND_USER_OPCODE_DISPATCH_TO: u32 = 256;
pub const ZEND_PARSE_PARAMS_QUIET: u32 = 2;
pub const IS_CALLABLE_CHECK_SYNTAX_ONLY: u32 = 1;
pub const IS_CALLABLE_CHECK_NO_ACCESS: u32 = 2;
pub const IS_CALLABLE_CHECK_IS_STATIC: u32 = 4;
pub const IS_CALLABLE_CHECK_SILENT: u32 = 8;
pub const IS_CALLABLE_STRICT: u32 = 4;
pub const PHP_DEBUG: u32 = 0;
pub const PHP_DIR_SEPARATOR: u8 = 47u8;
pub const PHP_EOL: &[u8; 2] = b"\n\0";
pub const CONFIGURE_COMMAND : & [u8 ; 1777] = b" '../configure' '--prefix=/usr' '--with-apxs2=/usr/bin/apxs2' '--with-config-file-path=/etc/php5/apache2' '--with-config-file-scan-dir=/etc/php5/apache2/conf.d' '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--sysconfdir=/etc' '--localstatedir=/var' '--mandir=/usr/share/man' '--disable-debug' '--with-regex=php' '--disable-rpath' '--disable-static' '--with-pic' '--with-layout=GNU' '--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db4' '--with-qdbm=/usr' '--without-gdbm' '--with-iconv' '--enable-exif' '--enable-ftp' '--with-gettext' '--enable-mbstring' '--with-onig=/usr' '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--with-libxml-dir=/usr' '--with-zlib' '--with-kerberos=/usr' '--with-openssl=/usr' '--enable-soap' '--enable-zip' '--with-mhash=yes' '--with-system-tzdata' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--without-mm' '--with-curl=shared,/usr' '--with-enchant=shared,/usr' '--with-zlib-dir=/usr' '--with-gd=shared,/usr' '--enable-gd-native-ttf' '--with-gmp=shared,/usr' '--with-jpeg-dir=shared,/usr' '--with-xpm-dir=shared,/usr/X11R6' '--with-png-dir=shared,/usr' '--with-freetype-dir=shared,/usr' '--with-imap=shared,/usr' '--with-imap-ssl' '--enable-intl=shared' '--without-t1lib' '--with-ldap=shared,/usr' '--with-ldap-sasl=/usr' '--with-mcrypt=shared,/usr' '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config' '--with-pspell=shared,/usr' '--with-unixODBC=shared,/usr' '--with-recode=shared,/usr' '--with-xsl=shared,/usr' '--with-snmp=shared,/usr' '--with-sqlite3=shared,/usr' '--with-mssql=shared,/usr' '--with-tidy=shared,/usr' '--with-xmlrpc=shared' '--with-pgsql=shared,/usr'\0" ;
pub const PHP_ADA_INCLUDE: &[u8; 1] = b"\0";
pub const PHP_ADA_LFLAGS: &[u8; 1] = b"\0";
pub const PHP_ADA_LIBS: &[u8; 1] = b"\0";
pub const PHP_APACHE_INCLUDE: &[u8; 1] = b"\0";
pub const PHP_APACHE_TARGET: &[u8; 1] = b"\0";
pub const PHP_FHTTPD_INCLUDE: &[u8; 1] = b"\0";
pub const PHP_FHTTPD_LIB: &[u8; 1] = b"\0";
pub const PHP_FHTTPD_TARGET: &[u8; 1] = b"\0";
pub const PHP_CFLAGS: &[u8; 28] = b"$(CFLAGS_CLEAN) -prefer-pic\0";
pub const PHP_DBASE_LIB: &[u8; 1] = b"\0";
pub const PHP_BUILD_DEBUG: &[u8; 1] = b"\0";
pub const PHP_GDBM_INCLUDE: &[u8; 1] = b"\0";
pub const PHP_IBASE_INCLUDE: &[u8; 1] = b"\0";
pub const PHP_IBASE_LFLAGS: &[u8; 1] = b"\0";
pub const PHP_IBASE_LIBS: &[u8; 1] = b"\0";
pub const PHP_IFX_INCLUDE: &[u8; 1] = b"\0";
pub const PHP_IFX_LFLAGS: &[u8; 1] = b"\0";
pub const PHP_IFX_LIBS: &[u8; 1] = b"\0";
pub const PHP_INSTALL_IT : & [u8 ; 331] = b"$(mkinstalldirs) '$(INSTALL_ROOT)/usr/lib/apache2/modules' && $(mkinstalldirs) '$(INSTALL_ROOT)/etc/apache2' && /usr/bin/apxs2 -S LIBEXECDIR='$(INSTALL_ROOT)/usr/lib/apache2/modules' -S SYSCONFDIR='$(INSTALL_ROOT)/etc/apache2' -i -a -n php5 libphp5.la\0" ;
pub const PHP_IODBC_INCLUDE: &[u8; 1] = b"\0";
pub const PHP_IODBC_LFLAGS: &[u8; 1] = b"\0";
pub const PHP_IODBC_LIBS: &[u8; 1] = b"\0";
pub const PHP_MSQL_INCLUDE: &[u8; 1] = b"\0";
pub const PHP_MSQL_LFLAGS: &[u8; 1] = b"\0";
pub const PHP_MSQL_LIBS: &[u8; 1] = b"\0";
pub const PHP_MYSQL_INCLUDE: &[u8; 21] = b"-I/usr/include/mysql\0";
pub const PHP_MYSQL_LIBS: &[u8; 45] = b"-L/usr/lib/x86_64-linux-gnu -lmysqlclient_r \0";
pub const PHP_MYSQL_TYPE: &[u8; 9] = b"external\0";
pub const PHP_ODBC_INCLUDE: &[u8; 15] = b"-I/usr/include\0";
pub const PHP_ODBC_LFLAGS: &[u8; 11] = b"-L/usr/lib\0";
pub const PHP_ODBC_LIBS: &[u8; 7] = b"-lodbc\0";
pub const PHP_ODBC_TYPE: &[u8; 9] = b"unixODBC\0";
pub const PHP_OCI8_SHARED_LIBADD: &[u8; 1] = b"\0";
pub const PHP_OCI8_DIR: &[u8; 1] = b"\0";
pub const PHP_OCI8_ORACLE_VERSION: &[u8; 1] = b"\0";
pub const PHP_ORACLE_SHARED_LIBADD: &[u8; 23] = b"@ORACLE_SHARED_LIBADD@\0";
pub const PHP_ORACLE_DIR: &[u8; 13] = b"@ORACLE_DIR@\0";
pub const PHP_ORACLE_VERSION: &[u8; 17] = b"@ORACLE_VERSION@\0";
pub const PHP_PGSQL_INCLUDE: &[u8; 1] = b"\0";
pub const PHP_PGSQL_LFLAGS: &[u8; 1] = b"\0";
pub const PHP_PGSQL_LIBS: &[u8; 1] = b"\0";
pub const PHP_PROG_SENDMAIL: &[u8; 19] = b"/usr/sbin/sendmail\0";
pub const PHP_SOLID_INCLUDE: &[u8; 1] = b"\0";
pub const PHP_SOLID_LIBS: &[u8; 1] = b"\0";
pub const PHP_EMPRESS_INCLUDE: &[u8; 1] = b"\0";
pub const PHP_EMPRESS_LIBS: &[u8; 1] = b"\0";
pub const PHP_SYBASE_INCLUDE: &[u8; 1] = b"\0";
pub const PHP_SYBASE_LFLAGS: &[u8; 1] = b"\0";
pub const PHP_SYBASE_LIBS: &[u8; 1] = b"\0";
pub const PHP_DBM_TYPE: &[u8; 1] = b"\0";
pub const PHP_DBM_LIB: &[u8; 1] = b"\0";
pub const PHP_LDAP_LFLAGS: &[u8; 1] = b"\0";
pub const PHP_LDAP_INCLUDE: &[u8; 1] = b"\0";
pub const PHP_LDAP_LIBS: &[u8; 1] = b"\0";
pub const PHP_BIRDSTEP_INCLUDE: &[u8; 1] = b"\0";
pub const PHP_BIRDSTEP_LIBS: &[u8; 1] = b"\0";
pub const PHP_INCLUDE_PATH: &[u8; 33] = b".:/usr/share/php:/usr/share/pear\0";
pub const PHP_EXTENSION_DIR: &[u8; 23] = b"/usr/lib/php5/20100525\0";
pub const PHP_PREFIX: &[u8; 5] = b"/usr\0";
pub const PHP_BINDIR: &[u8; 9] = b"/usr/bin\0";
pub const PHP_SBINDIR: &[u8; 10] = b"/usr/sbin\0";
pub const PHP_MANDIR: &[u8; 15] = b"/usr/share/man\0";
pub const PHP_LIBDIR: &[u8; 14] = b"/usr/lib/php5\0";
pub const PHP_DATADIR: &[u8; 16] = b"${prefix}/share\0";
pub const PHP_SYSCONFDIR: &[u8; 5] = b"/etc\0";
pub const PHP_LOCALSTATEDIR: &[u8; 5] = b"/var\0";
pub const PHP_CONFIG_FILE_PATH: &[u8; 18] = b"/etc/php5/apache2\0";
pub const PHP_CONFIG_FILE_SCAN_DIR: &[u8; 25] = b"/etc/php5/apache2/conf.d\0";
pub const PHP_SHLIB_SUFFIX: &[u8; 3] = b"so\0";
pub const PHP_MIME_TYPE: &[u8; 24] = b"application/x-httpd-php\0";
pub const PHP_ATTR_FMT_OFFSET: u32 = 0;
pub const PHP_OUTPUT_NEWAPI: u32 = 1;
pub const PHP_OUTPUT_HANDLER_WRITE: u32 = 0;
pub const PHP_OUTPUT_HANDLER_START: u32 = 1;
pub const PHP_OUTPUT_HANDLER_CLEAN: u32 = 2;
pub const PHP_OUTPUT_HANDLER_FLUSH: u32 = 4;
pub const PHP_OUTPUT_HANDLER_FINAL: u32 = 8;
pub const PHP_OUTPUT_HANDLER_CONT: u32 = 0;
pub const PHP_OUTPUT_HANDLER_END: u32 = 8;
pub const PHP_OUTPUT_HANDLER_INTERNAL: u32 = 0;
pub const PHP_OUTPUT_HANDLER_USER: u32 = 1;
pub const PHP_OUTPUT_HANDLER_CLEANABLE: u32 = 16;
pub const PHP_OUTPUT_HANDLER_FLUSHABLE: u32 = 32;
pub const PHP_OUTPUT_HANDLER_REMOVABLE: u32 = 64;
pub const PHP_OUTPUT_HANDLER_STDFLAGS: u32 = 112;
pub const PHP_OUTPUT_HANDLER_STARTED: u32 = 4096;
pub const PHP_OUTPUT_HANDLER_DISABLED: u32 = 8192;
pub const PHP_OUTPUT_HANDLER_PROCESSED: u32 = 16384;
pub const PHP_OUTPUT_POP_TRY: u32 = 0;
pub const PHP_OUTPUT_POP_FORCE: u32 = 1;
pub const PHP_OUTPUT_POP_DISCARD: u32 = 16;
pub const PHP_OUTPUT_POP_SILENT: u32 = 256;
pub const PHP_OUTPUT_IMPLICITFLUSH: u32 = 1;
pub const PHP_OUTPUT_DISABLED: u32 = 2;
pub const PHP_OUTPUT_WRITTEN: u32 = 4;
pub const PHP_OUTPUT_SENT: u32 = 8;
pub const PHP_OUTPUT_ACTIVE: u32 = 16;
pub const PHP_OUTPUT_LOCKED: u32 = 32;
pub const PHP_OUTPUT_ACTIVATED: u32 = 1048576;
pub const PHP_OUTPUT_HANDLER_ALIGNTO_SIZE: u32 = 4096;
pub const PHP_OUTPUT_HANDLER_DEFAULT_SIZE: u32 = 16384;
pub const PHP_STREAM_NOTIFIER_PROGRESS: u32 = 1;
pub const PHP_STREAM_NOTIFY_RESOLVE: u32 = 1;
pub const PHP_STREAM_NOTIFY_CONNECT: u32 = 2;
pub const PHP_STREAM_NOTIFY_AUTH_REQUIRED: u32 = 3;
pub const PHP_STREAM_NOTIFY_MIME_TYPE_IS: u32 = 4;
pub const PHP_STREAM_NOTIFY_FILE_SIZE_IS: u32 = 5;
pub const PHP_STREAM_NOTIFY_REDIRECTED: u32 = 6;
pub const PHP_STREAM_NOTIFY_PROGRESS: u32 = 7;
pub const PHP_STREAM_NOTIFY_COMPLETED: u32 = 8;
pub const PHP_STREAM_NOTIFY_FAILURE: u32 = 9;
pub const PHP_STREAM_NOTIFY_AUTH_RESULT: u32 = 10;
pub const PHP_STREAM_NOTIFY_SEVERITY_INFO: u32 = 0;
pub const PHP_STREAM_NOTIFY_SEVERITY_WARN: u32 = 1;
pub const PHP_STREAM_NOTIFY_SEVERITY_ERR: u32 = 2;
pub const PHP_STREAM_FILTER_READ: u32 = 1;
pub const PHP_STREAM_FILTER_WRITE: u32 = 2;
pub const PHP_STREAM_FILTER_ALL: u32 = 3;
pub const PHP_STREAM_FLAG_NO_SEEK: u32 = 1;
pub const PHP_STREAM_FLAG_NO_BUFFER: u32 = 2;
pub const PHP_STREAM_FLAG_EOL_UNIX: u32 = 0;
pub const PHP_STREAM_FLAG_DETECT_EOL: u32 = 4;
pub const PHP_STREAM_FLAG_EOL_MAC: u32 = 8;
pub const PHP_STREAM_FLAG_AVOID_BLOCKING: u32 = 16;
pub const PHP_STREAM_FLAG_NO_CLOSE: u32 = 32;
pub const PHP_STREAM_FLAG_IS_DIR: u32 = 64;
pub const PHP_STREAM_FLAG_NO_FCLOSE: u32 = 128;
pub const PHP_STREAM_FCLOSE_NONE: u32 = 0;
pub const PHP_STREAM_FCLOSE_FDOPEN: u32 = 1;
pub const PHP_STREAM_FCLOSE_FOPENCOOKIE: u32 = 2;
pub const PHP_STREAM_PERSISTENT_SUCCESS: u32 = 0;
pub const PHP_STREAM_PERSISTENT_FAILURE: u32 = 1;
pub const PHP_STREAM_PERSISTENT_NOT_EXIST: u32 = 2;
pub const PHP_STREAM_FREE_CALL_DTOR: u32 = 1;
pub const PHP_STREAM_FREE_RELEASE_STREAM: u32 = 2;
pub const PHP_STREAM_FREE_PRESERVE_HANDLE: u32 = 4;
pub const PHP_STREAM_FREE_RSRC_DTOR: u32 = 8;
pub const PHP_STREAM_FREE_PERSISTENT: u32 = 16;
pub const PHP_STREAM_FREE_IGNORE_ENCLOSING: u32 = 32;
pub const PHP_STREAM_FREE_CLOSE: u32 = 3;
pub const PHP_STREAM_FREE_CLOSE_CASTED: u32 = 7;
pub const PHP_STREAM_FREE_CLOSE_PERSISTENT: u32 = 19;
pub const PHP_STREAM_MKDIR_RECURSIVE: u32 = 1;
pub const PHP_STREAM_URL_STAT_LINK: u32 = 1;
pub const PHP_STREAM_URL_STAT_QUIET: u32 = 2;
pub const PHP_STREAM_URL_STAT_NOCACHE: u32 = 4;
pub const PHP_STREAM_OPTION_BLOCKING: u32 = 1;
pub const PHP_STREAM_OPTION_READ_BUFFER: u32 = 2;
pub const PHP_STREAM_OPTION_WRITE_BUFFER: u32 = 3;
pub const PHP_STREAM_BUFFER_NONE: u32 = 0;
pub const PHP_STREAM_BUFFER_LINE: u32 = 1;
pub const PHP_STREAM_BUFFER_FULL: u32 = 2;
pub const PHP_STREAM_OPTION_READ_TIMEOUT: u32 = 4;
pub const PHP_STREAM_OPTION_SET_CHUNK_SIZE: u32 = 5;
pub const PHP_STREAM_OPTION_LOCKING: u32 = 6;
pub const PHP_STREAM_LOCK_SUPPORTED: u32 = 1;
pub const PHP_STREAM_OPTION_XPORT_API: u32 = 7;
pub const PHP_STREAM_OPTION_CRYPTO_API: u32 = 8;
pub const PHP_STREAM_OPTION_MMAP_API: u32 = 9;
pub const PHP_STREAM_OPTION_TRUNCATE_API: u32 = 10;
pub const PHP_STREAM_TRUNCATE_SUPPORTED: u32 = 0;
pub const PHP_STREAM_TRUNCATE_SET_SIZE: u32 = 1;
pub const PHP_STREAM_OPTION_META_DATA_API: u32 = 11;
pub const PHP_STREAM_OPTION_CHECK_LIVENESS: u32 = 12;
pub const PHP_STREAM_OPTION_RETURN_OK: u32 = 0;
pub const PHP_STREAM_OPTION_RETURN_ERR: i32 = -1;
pub const PHP_STREAM_OPTION_RETURN_NOTIMPL: i32 = -2;
pub const PHP_STREAM_MMAP_ALL: u32 = 0;
pub const PHP_STREAM_AS_STDIO: u32 = 0;
pub const PHP_STREAM_AS_FD: u32 = 1;
pub const PHP_STREAM_AS_SOCKETD: u32 = 2;
pub const PHP_STREAM_AS_FD_FOR_SELECT: u32 = 3;
pub const PHP_STREAM_CAST_TRY_HARD: u32 = 2147483648;
pub const PHP_STREAM_CAST_RELEASE: u32 = 1073741824;
pub const PHP_STREAM_CAST_INTERNAL: u32 = 536870912;
pub const PHP_STREAM_CAST_MASK: u32 = 3758096384;
pub const PHP_STREAM_UNCHANGED: u32 = 0;
pub const PHP_STREAM_RELEASED: u32 = 1;
pub const PHP_STREAM_FAILED: u32 = 2;
pub const PHP_STREAM_CRITICAL: u32 = 3;
pub const PHP_STREAM_NO_PREFERENCE: u32 = 0;
pub const PHP_STREAM_PREFER_STDIO: u32 = 1;
pub const PHP_STREAM_FORCE_CONVERSION: u32 = 2;
pub const PHP_STREAM_IS_URL: u32 = 1;
pub const PHP_STREAM_META_TOUCH: u32 = 1;
pub const PHP_STREAM_META_OWNER_NAME: u32 = 2;
pub const PHP_STREAM_META_OWNER: u32 = 3;
pub const PHP_STREAM_META_GROUP_NAME: u32 = 4;
pub const PHP_STREAM_META_GROUP: u32 = 5;
pub const PHP_STREAM_META_ACCESS: u32 = 6;
pub const PHP_STREAM_MAX_MEM: u32 = 2097152;
pub const PHP_DISPLAY_ERRORS_STDOUT: u32 = 1;
pub const PHP_DISPLAY_ERRORS_STDERR: u32 = 2;
pub const ZEND_INI_USER: u32 = 1;
pub const ZEND_INI_PERDIR: u32 = 2;
pub const ZEND_INI_SYSTEM: u32 = 4;
pub const ZEND_INI_ALL: u32 = 7;
pub const ZEND_INI_DISPLAY_ORIG: u32 = 1;
pub const ZEND_INI_DISPLAY_ACTIVE: u32 = 2;
pub const ZEND_INI_STAGE_STARTUP: u32 = 1;
pub const ZEND_INI_STAGE_SHUTDOWN: u32 = 2;
pub const ZEND_INI_STAGE_ACTIVATE: u32 = 4;
pub const ZEND_INI_STAGE_DEACTIVATE: u32 = 8;
pub const ZEND_INI_STAGE_RUNTIME: u32 = 16;
pub const ZEND_INI_STAGE_HTACCESS: u32 = 32;
pub const ZEND_INI_PARSER_ENTRY: u32 = 1;
pub const ZEND_INI_PARSER_SECTION: u32 = 2;
pub const ZEND_INI_PARSER_POP_ENTRY: u32 = 3;
pub const PHP_INI_USER: u32 = 1;
pub const PHP_INI_PERDIR: u32 = 2;
pub const PHP_INI_SYSTEM: u32 = 4;
pub const PHP_INI_ALL: u32 = 7;
pub const PHP_INI_DISPLAY_ORIG: u32 = 1;
pub const PHP_INI_DISPLAY_ACTIVE: u32 = 2;
pub const PHP_INI_STAGE_STARTUP: u32 = 1;
pub const PHP_INI_STAGE_SHUTDOWN: u32 = 2;
pub const PHP_INI_STAGE_ACTIVATE: u32 = 4;
pub const PHP_INI_STAGE_DEACTIVATE: u32 = 8;
pub const PHP_INI_STAGE_RUNTIME: u32 = 16;
pub const PHP_INI_STAGE_HTACCESS: u32 = 32;
pub const PHP_CONNECTION_NORMAL: u32 = 0;
pub const PHP_CONNECTION_ABORTED: u32 = 1;
pub const PHP_CONNECTION_TIMEOUT: u32 = 2;
pub const PHP_ENTRY_NAME_COLOR: &[u8; 8] = b"#ccccff\0";
pub const PHP_CONTENTS_COLOR: &[u8; 8] = b"#cccccc\0";
pub const PHP_HEADER_COLOR: &[u8; 8] = b"#9999cc\0";
pub const PHP_INFO_GENERAL: u32 = 1;
pub const PHP_INFO_CREDITS: u32 = 2;
pub const PHP_INFO_CONFIGURATION: u32 = 4;
pub const PHP_INFO_MODULES: u32 = 8;
pub const PHP_INFO_ENVIRONMENT: u32 = 16;
pub const PHP_INFO_VARIABLES: u32 = 32;
pub const PHP_INFO_LICENSE: u32 = 64;
pub const PHP_INFO_ALL: u32 = 4294967295;
pub const PHP_CREDITS_GROUP: u32 = 1;
pub const PHP_CREDITS_GENERAL: u32 = 2;
pub const PHP_CREDITS_SAPI: u32 = 4;
pub const PHP_CREDITS_MODULES: u32 = 8;
pub const PHP_CREDITS_DOCS: u32 = 16;
pub const PHP_CREDITS_FULLPAGE: u32 = 32;
pub const PHP_CREDITS_QA: u32 = 64;
pub const PHP_CREDITS_WEB: u32 = 128;
pub const PHP_CREDITS_ALL: u32 = 4294967295;
pub const PHP_LOGO_GUID: &[u8; 40] = b"PHPE9568F34-D428-11d2-A769-00AA001ACF42\0";
pub const PHP_EGG_LOGO_GUID: &[u8; 40] = b"PHPE9568F36-D428-11d2-A769-00AA001ACF42\0";
pub const ZEND_LOGO_GUID: &[u8; 40] = b"PHPE9568F35-D428-11d2-A769-00AA001ACF42\0";
pub const PHP_CREDITS_GUID: &[u8; 40] = b"PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000\0";
pub const ZEND_EXTENSION_API_NO: u32 = 220100525;
pub const ZEND_EXTMSG_NEW_EXTENSION: u32 = 1;
pub type __dev_t = ::std::os::raw::c_ulong;
pub type __uid_t = ::std::os::raw::c_uint;
pub type __gid_t = ::std::os::raw::c_uint;
pub type __ino_t = ::std::os::raw::c_ulong;
pub type __mode_t = ::std::os::raw::c_uint;
pub type __nlink_t = ::std::os::raw::c_ulong;
pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = ::std::os::raw::c_long;
pub type __time_t = ::std::os::raw::c_long;
pub type __suseconds_t = ::std::os::raw::c_long;
pub type __blksize_t = ::std::os::raw::c_long;
pub type __blkcnt_t = ::std::os::raw::c_long;
pub type __syscall_slong_t = ::std::os::raw::c_long;
pub type __socklen_t = ::std::os::raw::c_uint;
pub type off_t = __off_t;
pub type time_t = __time_t;
pub type ulong = ::std::os::raw::c_ulong;
pub type uint = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sigset_t {
pub __val: [::std::os::raw::c_ulong; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __sigset_t"][::std::mem::size_of::<__sigset_t>() - 128usize];
["Alignment of __sigset_t"][::std::mem::align_of::<__sigset_t>() - 8usize];
["Offset of field: __sigset_t::__val"][::std::mem::offset_of!(__sigset_t, __val) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timeval {
pub tv_sec: __time_t,
pub tv_usec: __suseconds_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of timeval"][::std::mem::size_of::<timeval>() - 16usize];
["Alignment of timeval"][::std::mem::align_of::<timeval>() - 8usize];
["Offset of field: timeval::tv_sec"][::std::mem::offset_of!(timeval, tv_sec) - 0usize];
["Offset of field: timeval::tv_usec"][::std::mem::offset_of!(timeval, tv_usec) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timespec {
pub tv_sec: __time_t,
pub tv_nsec: __syscall_slong_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of timespec"][::std::mem::size_of::<timespec>() - 16usize];
["Alignment of timespec"][::std::mem::align_of::<timespec>() - 8usize];
["Offset of field: timespec::tv_sec"][::std::mem::offset_of!(timespec, tv_sec) - 0usize];
["Offset of field: timespec::tv_nsec"][::std::mem::offset_of!(timespec, tv_nsec) - 8usize];
};
pub type va_list = __builtin_va_list;
pub type FILE = _IO_FILE;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_marker {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_codecvt {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_wide_data {
_unused: [u8; 0],
}
pub type _IO_lock_t = ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_FILE {
pub _flags: ::std::os::raw::c_int,
pub _IO_read_ptr: *mut ::std::os::raw::c_char,
pub _IO_read_end: *mut ::std::os::raw::c_char,
pub _IO_read_base: *mut ::std::os::raw::c_char,
pub _IO_write_base: *mut ::std::os::raw::c_char,
pub _IO_write_ptr: *mut ::std::os::raw::c_char,
pub _IO_write_end: *mut ::std::os::raw::c_char,
pub _IO_buf_base: *mut ::std::os::raw::c_char,
pub _IO_buf_end: *mut ::std::os::raw::c_char,
pub _IO_save_base: *mut ::std::os::raw::c_char,
pub _IO_backup_base: *mut ::std::os::raw::c_char,
pub _IO_save_end: *mut ::std::os::raw::c_char,
pub _markers: *mut _IO_marker,
pub _chain: *mut _IO_FILE,
pub _fileno: ::std::os::raw::c_int,
pub _flags2: ::std::os::raw::c_int,
pub _old_offset: __off_t,
pub _cur_column: ::std::os::raw::c_ushort,
pub _vtable_offset: ::std::os::raw::c_schar,
pub _shortbuf: [::std::os::raw::c_char; 1usize],
pub _lock: *mut _IO_lock_t,
pub _offset: __off64_t,
pub _codecvt: *mut _IO_codecvt,
pub _wide_data: *mut _IO_wide_data,
pub _freeres_list: *mut _IO_FILE,
pub _freeres_buf: *mut ::std::os::raw::c_void,
pub __pad5: usize,
pub _mode: ::std::os::raw::c_int,
pub _unused2: [::std::os::raw::c_char; 20usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _IO_FILE"][::std::mem::size_of::<_IO_FILE>() - 216usize];
["Alignment of _IO_FILE"][::std::mem::align_of::<_IO_FILE>() - 8usize];
["Offset of field: _IO_FILE::_flags"][::std::mem::offset_of!(_IO_FILE, _flags) - 0usize];
["Offset of field: _IO_FILE::_IO_read_ptr"]
[::std::mem::offset_of!(_IO_FILE, _IO_read_ptr) - 8usize];
["Offset of field: _IO_FILE::_IO_read_end"]
[::std::mem::offset_of!(_IO_FILE, _IO_read_end) - 16usize];
["Offset of field: _IO_FILE::_IO_read_base"]
[::std::mem::offset_of!(_IO_FILE, _IO_read_base) - 24usize];
["Offset of field: _IO_FILE::_IO_write_base"]
[::std::mem::offset_of!(_IO_FILE, _IO_write_base) - 32usize];
["Offset of field: _IO_FILE::_IO_write_ptr"]
[::std::mem::offset_of!(_IO_FILE, _IO_write_ptr) - 40usize];
["Offset of field: _IO_FILE::_IO_write_end"]
[::std::mem::offset_of!(_IO_FILE, _IO_write_end) - 48usize];
["Offset of field: _IO_FILE::_IO_buf_base"]
[::std::mem::offset_of!(_IO_FILE, _IO_buf_base) - 56usize];
["Offset of field: _IO_FILE::_IO_buf_end"]
[::std::mem::offset_of!(_IO_FILE, _IO_buf_end) - 64usize];
["Offset of field: _IO_FILE::_IO_save_base"]
[::std::mem::offset_of!(_IO_FILE, _IO_save_base) - 72usize];
["Offset of field: _IO_FILE::_IO_backup_base"]
[::std::mem::offset_of!(_IO_FILE, _IO_backup_base) - 80usize];
["Offset of field: _IO_FILE::_IO_save_end"]
[::std::mem::offset_of!(_IO_FILE, _IO_save_end) - 88usize];
["Offset of field: _IO_FILE::_markers"][::std::mem::offset_of!(_IO_FILE, _markers) - 96usize];
["Offset of field: _IO_FILE::_chain"][::std::mem::offset_of!(_IO_FILE, _chain) - 104usize];
["Offset of field: _IO_FILE::_fileno"][::std::mem::offset_of!(_IO_FILE, _fileno) - 112usize];
["Offset of field: _IO_FILE::_flags2"][::std::mem::offset_of!(_IO_FILE, _flags2) - 116usize];
["Offset of field: _IO_FILE::_old_offset"]
[::std::mem::offset_of!(_IO_FILE, _old_offset) - 120usize];
["Offset of field: _IO_FILE::_cur_column"]
[::std::mem::offset_of!(_IO_FILE, _cur_column) - 128usize];
["Offset of field: _IO_FILE::_vtable_offset"]
[::std::mem::offset_of!(_IO_FILE, _vtable_offset) - 130usize];
["Offset of field: _IO_FILE::_shortbuf"]
[::std::mem::offset_of!(_IO_FILE, _shortbuf) - 131usize];
["Offset of field: _IO_FILE::_lock"][::std::mem::offset_of!(_IO_FILE, _lock) - 136usize];
["Offset of field: _IO_FILE::_offset"][::std::mem::offset_of!(_IO_FILE, _offset) - 144usize];
["Offset of field: _IO_FILE::_codecvt"][::std::mem::offset_of!(_IO_FILE, _codecvt) - 152usize];
["Offset of field: _IO_FILE::_wide_data"]
[::std::mem::offset_of!(_IO_FILE, _wide_data) - 160usize];
["Offset of field: _IO_FILE::_freeres_list"]
[::std::mem::offset_of!(_IO_FILE, _freeres_list) - 168usize];
["Offset of field: _IO_FILE::_freeres_buf"]
[::std::mem::offset_of!(_IO_FILE, _freeres_buf) - 176usize];
["Offset of field: _IO_FILE::__pad5"][::std::mem::offset_of!(_IO_FILE, __pad5) - 184usize];
["Offset of field: _IO_FILE::_mode"][::std::mem::offset_of!(_IO_FILE, _mode) - 192usize];
["Offset of field: _IO_FILE::_unused2"][::std::mem::offset_of!(_IO_FILE, _unused2) - 196usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_leak_info {
pub addr: *mut ::std::os::raw::c_void,
pub size: usize,
pub filename: *const ::std::os::raw::c_char,
pub lineno: uint,
pub orig_filename: *const ::std::os::raw::c_char,
pub orig_lineno: uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_leak_info"][::std::mem::size_of::<_zend_leak_info>() - 48usize];
["Alignment of _zend_leak_info"][::std::mem::align_of::<_zend_leak_info>() - 8usize];
["Offset of field: _zend_leak_info::addr"]
[::std::mem::offset_of!(_zend_leak_info, addr) - 0usize];
["Offset of field: _zend_leak_info::size"]
[::std::mem::offset_of!(_zend_leak_info, size) - 8usize];
["Offset of field: _zend_leak_info::filename"]
[::std::mem::offset_of!(_zend_leak_info, filename) - 16usize];
["Offset of field: _zend_leak_info::lineno"]
[::std::mem::offset_of!(_zend_leak_info, lineno) - 24usize];
["Offset of field: _zend_leak_info::orig_filename"]
[::std::mem::offset_of!(_zend_leak_info, orig_filename) - 32usize];
["Offset of field: _zend_leak_info::orig_lineno"]
[::std::mem::offset_of!(_zend_leak_info, orig_lineno) - 40usize];
};
pub type zend_leak_info = _zend_leak_info;
extern "C" {
pub fn zend_strndup(
s: *const ::std::os::raw::c_char,
length: ::std::os::raw::c_uint,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn _zend_mem_block_size(ptr: *mut ::std::os::raw::c_void) -> usize;
}
extern "C" {
pub fn zend_set_memory_limit(memory_limit: usize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_memory_usage(real_usage: ::std::os::raw::c_int) -> usize;
}
extern "C" {
pub fn zend_memory_peak_usage(real_usage: ::std::os::raw::c_int) -> usize;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_mm_heap {
_unused: [u8; 0],
}
pub type zend_mm_heap = _zend_mm_heap;
extern "C" {
pub fn zend_mm_startup() -> *mut zend_mm_heap;
}
extern "C" {
pub fn zend_mm_shutdown(
heap: *mut zend_mm_heap,
full_shutdown: ::std::os::raw::c_int,
silent: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn _zend_mm_alloc(heap: *mut zend_mm_heap, size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn _zend_mm_free(heap: *mut zend_mm_heap, p: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn _zend_mm_realloc(
heap: *mut zend_mm_heap,
p: *mut ::std::os::raw::c_void,
size: usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn _zend_mm_block_size(heap: *mut zend_mm_heap, p: *mut ::std::os::raw::c_void) -> usize;
}
pub type zend_mm_storage = _zend_mm_storage;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_mm_segment {
pub size: usize,
pub next_segment: *mut _zend_mm_segment,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_mm_segment"][::std::mem::size_of::<_zend_mm_segment>() - 16usize];
["Alignment of _zend_mm_segment"][::std::mem::align_of::<_zend_mm_segment>() - 8usize];
["Offset of field: _zend_mm_segment::size"]
[::std::mem::offset_of!(_zend_mm_segment, size) - 0usize];
["Offset of field: _zend_mm_segment::next_segment"]
[::std::mem::offset_of!(_zend_mm_segment, next_segment) - 8usize];
};
pub type zend_mm_segment = _zend_mm_segment;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_mm_mem_handlers {
pub name: *const ::std::os::raw::c_char,
pub init: ::std::option::Option<
unsafe extern "C" fn(params: *mut ::std::os::raw::c_void) -> *mut zend_mm_storage,
>,
pub dtor: ::std::option::Option<unsafe extern "C" fn(storage: *mut zend_mm_storage)>,
pub compact: ::std::option::Option<unsafe extern "C" fn(storage: *mut zend_mm_storage)>,
pub _alloc: ::std::option::Option<
unsafe extern "C" fn(storage: *mut zend_mm_storage, size: usize) -> *mut zend_mm_segment,
>,
pub _realloc: ::std::option::Option<
unsafe extern "C" fn(
storage: *mut zend_mm_storage,
ptr: *mut zend_mm_segment,
size: usize,
) -> *mut zend_mm_segment,
>,
pub _free: ::std::option::Option<
unsafe extern "C" fn(storage: *mut zend_mm_storage, ptr: *mut zend_mm_segment),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_mm_mem_handlers"][::std::mem::size_of::<_zend_mm_mem_handlers>() - 56usize];
["Alignment of _zend_mm_mem_handlers"]
[::std::mem::align_of::<_zend_mm_mem_handlers>() - 8usize];
["Offset of field: _zend_mm_mem_handlers::name"]
[::std::mem::offset_of!(_zend_mm_mem_handlers, name) - 0usize];
["Offset of field: _zend_mm_mem_handlers::init"]
[::std::mem::offset_of!(_zend_mm_mem_handlers, init) - 8usize];
["Offset of field: _zend_mm_mem_handlers::dtor"]
[::std::mem::offset_of!(_zend_mm_mem_handlers, dtor) - 16usize];
["Offset of field: _zend_mm_mem_handlers::compact"]
[::std::mem::offset_of!(_zend_mm_mem_handlers, compact) - 24usize];
["Offset of field: _zend_mm_mem_handlers::_alloc"]
[::std::mem::offset_of!(_zend_mm_mem_handlers, _alloc) - 32usize];
["Offset of field: _zend_mm_mem_handlers::_realloc"]
[::std::mem::offset_of!(_zend_mm_mem_handlers, _realloc) - 40usize];
["Offset of field: _zend_mm_mem_handlers::_free"]
[::std::mem::offset_of!(_zend_mm_mem_handlers, _free) - 48usize];
};
pub type zend_mm_mem_handlers = _zend_mm_mem_handlers;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_mm_storage {
pub handlers: *const zend_mm_mem_handlers,
pub data: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_mm_storage"][::std::mem::size_of::<_zend_mm_storage>() - 16usize];
["Alignment of _zend_mm_storage"][::std::mem::align_of::<_zend_mm_storage>() - 8usize];
["Offset of field: _zend_mm_storage::handlers"]
[::std::mem::offset_of!(_zend_mm_storage, handlers) - 0usize];
["Offset of field: _zend_mm_storage::data"]
[::std::mem::offset_of!(_zend_mm_storage, data) - 8usize];
};
extern "C" {
pub fn zend_mm_startup_ex(
handlers: *const zend_mm_mem_handlers,
block_size: usize,
reserve_size: usize,
internal: ::std::os::raw::c_int,
params: *mut ::std::os::raw::c_void,
) -> *mut zend_mm_heap;
}
extern "C" {
pub fn zend_mm_set_heap(new_heap: *mut zend_mm_heap) -> *mut zend_mm_heap;
}
extern "C" {
pub fn zend_mm_get_storage(heap: *mut zend_mm_heap) -> *mut zend_mm_storage;
}
extern "C" {
pub fn zend_mm_set_custom_handlers(
heap: *mut zend_mm_heap,
_malloc: ::std::option::Option<
unsafe extern "C" fn(arg1: usize) -> *mut ::std::os::raw::c_void,
>,
_free: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
_realloc: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: usize,
) -> *mut ::std::os::raw::c_void,
>,
);
}
pub type zend_bool = ::std::os::raw::c_uchar;
pub type zend_uchar = ::std::os::raw::c_uchar;
pub type zend_uint = ::std::os::raw::c_uint;
pub type zend_ulong = ::std::os::raw::c_ulong;
pub type zend_ushort = ::std::os::raw::c_ushort;
pub type zend_long64 = ::std::os::raw::c_longlong;
pub type zend_ulong64 = ::std::os::raw::c_ulonglong;
pub type zend_intptr_t = ::std::os::raw::c_long;
pub type zend_uintptr_t = ::std::os::raw::c_ulong;
pub type zend_object_handle = ::std::os::raw::c_uint;
pub type zend_object_handlers = _zend_object_handlers;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_object_value {
pub handle: zend_object_handle,
pub handlers: *const zend_object_handlers,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_object_value"][::std::mem::size_of::<_zend_object_value>() - 16usize];
["Alignment of _zend_object_value"][::std::mem::align_of::<_zend_object_value>() - 8usize];
["Offset of field: _zend_object_value::handle"]
[::std::mem::offset_of!(_zend_object_value, handle) - 0usize];
["Offset of field: _zend_object_value::handlers"]
[::std::mem::offset_of!(_zend_object_value, handlers) - 8usize];
};
pub type zend_object_value = _zend_object_value;
extern "C" {
pub static mut zend_new_interned_string: ::std::option::Option<
unsafe extern "C" fn(
str_: *const ::std::os::raw::c_char,
len: ::std::os::raw::c_int,
free_src: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char,
>;
}
extern "C" {
pub static mut zend_interned_strings_snapshot: ::std::option::Option<unsafe extern "C" fn()>;
}
extern "C" {
pub static mut zend_interned_strings_restore: ::std::option::Option<unsafe extern "C" fn()>;
}
extern "C" {
pub fn zend_interned_strings_init();
}
extern "C" {
pub fn zend_interned_strings_dtor();
}
pub type hash_func_t = ::std::option::Option<
unsafe extern "C" fn(arKey: *const ::std::os::raw::c_char, nKeyLength: uint) -> ulong,
>;
pub type compare_func_t = ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
pub type sort_func_t = ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: usize,
arg3: usize,
arg4: compare_func_t,
),
>;
pub type dtor_func_t =
::std::option::Option<unsafe extern "C" fn(pDest: *mut ::std::os::raw::c_void)>;
pub type copy_ctor_func_t =
::std::option::Option<unsafe extern "C" fn(pElement: *mut ::std::os::raw::c_void)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bucket {
pub h: ulong,
pub nKeyLength: uint,
pub pData: *mut ::std::os::raw::c_void,
pub pDataPtr: *mut ::std::os::raw::c_void,
pub pListNext: *mut bucket,
pub pListLast: *mut bucket,
pub pNext: *mut bucket,
pub pLast: *mut bucket,
pub arKey: *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of bucket"][::std::mem::size_of::<bucket>() - 72usize];
["Alignment of bucket"][::std::mem::align_of::<bucket>() - 8usize];
["Offset of field: bucket::h"][::std::mem::offset_of!(bucket, h) - 0usize];
["Offset of field: bucket::nKeyLength"][::std::mem::offset_of!(bucket, nKeyLength) - 8usize];
["Offset of field: bucket::pData"][::std::mem::offset_of!(bucket, pData) - 16usize];
["Offset of field: bucket::pDataPtr"][::std::mem::offset_of!(bucket, pDataPtr) - 24usize];
["Offset of field: bucket::pListNext"][::std::mem::offset_of!(bucket, pListNext) - 32usize];
["Offset of field: bucket::pListLast"][::std::mem::offset_of!(bucket, pListLast) - 40usize];
["Offset of field: bucket::pNext"][::std::mem::offset_of!(bucket, pNext) - 48usize];
["Offset of field: bucket::pLast"][::std::mem::offset_of!(bucket, pLast) - 56usize];
["Offset of field: bucket::arKey"][::std::mem::offset_of!(bucket, arKey) - 64usize];
};
pub type Bucket = bucket;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _hashtable {
pub nTableSize: uint,
pub nTableMask: uint,
pub nNumOfElements: uint,
pub nNextFreeElement: ulong,
pub pInternalPointer: *mut Bucket,
pub pListHead: *mut Bucket,
pub pListTail: *mut Bucket,
pub arBuckets: *mut *mut Bucket,
pub pDestructor: dtor_func_t,
pub persistent: zend_bool,
pub nApplyCount: ::std::os::raw::c_uchar,
pub bApplyProtection: zend_bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _hashtable"][::std::mem::size_of::<_hashtable>() - 72usize];
["Alignment of _hashtable"][::std::mem::align_of::<_hashtable>() - 8usize];
["Offset of field: _hashtable::nTableSize"]
[::std::mem::offset_of!(_hashtable, nTableSize) - 0usize];
["Offset of field: _hashtable::nTableMask"]
[::std::mem::offset_of!(_hashtable, nTableMask) - 4usize];
["Offset of field: _hashtable::nNumOfElements"]
[::std::mem::offset_of!(_hashtable, nNumOfElements) - 8usize];
["Offset of field: _hashtable::nNextFreeElement"]
[::std::mem::offset_of!(_hashtable, nNextFreeElement) - 16usize];
["Offset of field: _hashtable::pInternalPointer"]
[::std::mem::offset_of!(_hashtable, pInternalPointer) - 24usize];
["Offset of field: _hashtable::pListHead"]
[::std::mem::offset_of!(_hashtable, pListHead) - 32usize];
["Offset of field: _hashtable::pListTail"]
[::std::mem::offset_of!(_hashtable, pListTail) - 40usize];
["Offset of field: _hashtable::arBuckets"]
[::std::mem::offset_of!(_hashtable, arBuckets) - 48usize];
["Offset of field: _hashtable::pDestructor"]
[::std::mem::offset_of!(_hashtable, pDestructor) - 56usize];
["Offset of field: _hashtable::persistent"]
[::std::mem::offset_of!(_hashtable, persistent) - 64usize];
["Offset of field: _hashtable::nApplyCount"]
[::std::mem::offset_of!(_hashtable, nApplyCount) - 65usize];
["Offset of field: _hashtable::bApplyProtection"]
[::std::mem::offset_of!(_hashtable, bApplyProtection) - 66usize];
};
pub type HashTable = _hashtable;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_hash_key {
pub arKey: *const ::std::os::raw::c_char,
pub nKeyLength: uint,
pub h: ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_hash_key"][::std::mem::size_of::<_zend_hash_key>() - 24usize];
["Alignment of _zend_hash_key"][::std::mem::align_of::<_zend_hash_key>() - 8usize];
["Offset of field: _zend_hash_key::arKey"]
[::std::mem::offset_of!(_zend_hash_key, arKey) - 0usize];
["Offset of field: _zend_hash_key::nKeyLength"]
[::std::mem::offset_of!(_zend_hash_key, nKeyLength) - 8usize];
["Offset of field: _zend_hash_key::h"][::std::mem::offset_of!(_zend_hash_key, h) - 16usize];
};
pub type zend_hash_key = _zend_hash_key;
pub type merge_checker_func_t = ::std::option::Option<
unsafe extern "C" fn(
target_ht: *mut HashTable,
source_data: *mut ::std::os::raw::c_void,
hash_key: *mut zend_hash_key,
pParam: *mut ::std::os::raw::c_void,
) -> zend_bool,
>;
pub type HashPosition = *mut Bucket;
extern "C" {
pub fn _zend_hash_init(
ht: *mut HashTable,
nSize: uint,
pHashFunction: hash_func_t,
pDestructor: dtor_func_t,
persistent: zend_bool,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _zend_hash_init_ex(
ht: *mut HashTable,
nSize: uint,
pHashFunction: hash_func_t,
pDestructor: dtor_func_t,
persistent: zend_bool,
bApplyProtection: zend_bool,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_destroy(ht: *mut HashTable);
}
extern "C" {
pub fn zend_hash_clean(ht: *mut HashTable);
}
extern "C" {
pub fn _zend_hash_add_or_update(
ht: *mut HashTable,
arKey: *const ::std::os::raw::c_char,
nKeyLength: uint,
pData: *mut ::std::os::raw::c_void,
nDataSize: uint,
pDest: *mut *mut ::std::os::raw::c_void,
flag: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _zend_hash_quick_add_or_update(
ht: *mut HashTable,
arKey: *const ::std::os::raw::c_char,
nKeyLength: uint,
h: ulong,
pData: *mut ::std::os::raw::c_void,
nDataSize: uint,
pDest: *mut *mut ::std::os::raw::c_void,
flag: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _zend_hash_index_update_or_next_insert(
ht: *mut HashTable,
h: ulong,
pData: *mut ::std::os::raw::c_void,
nDataSize: uint,
pDest: *mut *mut ::std::os::raw::c_void,
flag: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_add_empty_element(
ht: *mut HashTable,
arKey: *const ::std::os::raw::c_char,
nKeyLength: uint,
) -> ::std::os::raw::c_int;
}
pub type apply_func_t = ::std::option::Option<
unsafe extern "C" fn(pDest: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>;
pub type apply_func_arg_t = ::std::option::Option<
unsafe extern "C" fn(
pDest: *mut ::std::os::raw::c_void,
argument: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
pub type apply_func_args_t = ::std::option::Option<
unsafe extern "C" fn(
pDest: *mut ::std::os::raw::c_void,
num_args: ::std::os::raw::c_int,
args: *mut __va_list_tag,
hash_key: *mut zend_hash_key,
) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn zend_hash_graceful_destroy(ht: *mut HashTable);
}
extern "C" {
pub fn zend_hash_graceful_reverse_destroy(ht: *mut HashTable);
}
extern "C" {
pub fn zend_hash_apply(ht: *mut HashTable, apply_func: apply_func_t);
}
extern "C" {
pub fn zend_hash_apply_with_argument(
ht: *mut HashTable,
apply_func: apply_func_arg_t,
arg1: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn zend_hash_apply_with_arguments(
ht: *mut HashTable,
apply_func: apply_func_args_t,
arg1: ::std::os::raw::c_int,
...
);
}
extern "C" {
pub fn zend_hash_reverse_apply(ht: *mut HashTable, apply_func: apply_func_t);
}
extern "C" {
pub fn zend_hash_del_key_or_index(
ht: *mut HashTable,
arKey: *const ::std::os::raw::c_char,
nKeyLength: uint,
h: ulong,
flag: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_get_hash_value(arKey: *const ::std::os::raw::c_char, nKeyLength: uint) -> ulong;
}
extern "C" {
pub fn zend_hash_find(
ht: *const HashTable,
arKey: *const ::std::os::raw::c_char,
nKeyLength: uint,
pData: *mut *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_quick_find(
ht: *const HashTable,
arKey: *const ::std::os::raw::c_char,
nKeyLength: uint,
h: ulong,
pData: *mut *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_index_find(
ht: *const HashTable,
h: ulong,
pData: *mut *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_exists(
ht: *const HashTable,
arKey: *const ::std::os::raw::c_char,
nKeyLength: uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_quick_exists(
ht: *const HashTable,
arKey: *const ::std::os::raw::c_char,
nKeyLength: uint,
h: ulong,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_index_exists(ht: *const HashTable, h: ulong) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_next_free_element(ht: *const HashTable) -> ulong;
}
extern "C" {
pub fn zend_hash_move_forward_ex(
ht: *mut HashTable,
pos: *mut HashPosition,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_move_backwards_ex(
ht: *mut HashTable,
pos: *mut HashPosition,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_get_current_key_ex(
ht: *const HashTable,
str_index: *mut *mut ::std::os::raw::c_char,
str_length: *mut uint,
num_index: *mut ulong,
duplicate: zend_bool,
pos: *mut HashPosition,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_get_current_key_type_ex(
ht: *mut HashTable,
pos: *mut HashPosition,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_get_current_data_ex(
ht: *mut HashTable,
pData: *mut *mut ::std::os::raw::c_void,
pos: *mut HashPosition,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_internal_pointer_reset_ex(ht: *mut HashTable, pos: *mut HashPosition);
}
extern "C" {
pub fn zend_hash_internal_pointer_end_ex(ht: *mut HashTable, pos: *mut HashPosition);
}
extern "C" {
pub fn zend_hash_update_current_key_ex(
ht: *mut HashTable,
key_type: ::std::os::raw::c_int,
str_index: *const ::std::os::raw::c_char,
str_length: uint,
num_index: ulong,
mode: ::std::os::raw::c_int,
pos: *mut HashPosition,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _HashPointer {
pub pos: HashPosition,
pub h: ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _HashPointer"][::std::mem::size_of::<_HashPointer>() - 16usize];
["Alignment of _HashPointer"][::std::mem::align_of::<_HashPointer>() - 8usize];
["Offset of field: _HashPointer::pos"][::std::mem::offset_of!(_HashPointer, pos) - 0usize];
["Offset of field: _HashPointer::h"][::std::mem::offset_of!(_HashPointer, h) - 8usize];
};
pub type HashPointer = _HashPointer;
extern "C" {
pub fn zend_hash_get_pointer(
ht: *const HashTable,
ptr: *mut HashPointer,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_set_pointer(
ht: *mut HashTable,
ptr: *const HashPointer,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_copy(
target: *mut HashTable,
source: *mut HashTable,
pCopyConstructor: copy_ctor_func_t,
tmp: *mut ::std::os::raw::c_void,
size: uint,
);
}
extern "C" {
pub fn _zend_hash_merge(
target: *mut HashTable,
source: *mut HashTable,
pCopyConstructor: copy_ctor_func_t,
tmp: *mut ::std::os::raw::c_void,
size: uint,
overwrite: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_hash_merge_ex(
target: *mut HashTable,
source: *mut HashTable,
pCopyConstructor: copy_ctor_func_t,
size: uint,
pMergeSource: merge_checker_func_t,
pParam: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn zend_hash_sort(
ht: *mut HashTable,
sort_func: sort_func_t,
compare_func: compare_func_t,
renumber: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_compare(
ht1: *mut HashTable,
ht2: *mut HashTable,
compar: compare_func_t,
ordered: zend_bool,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_minmax(
ht: *const HashTable,
compar: compare_func_t,
flag: ::std::os::raw::c_int,
pData: *mut *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_num_elements(ht: *const HashTable) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_rehash(ht: *mut HashTable) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_hash_func(arKey: *const ::std::os::raw::c_char, nKeyLength: uint) -> ulong;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_ts_hashtable {
pub hash: HashTable,
pub reader: zend_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_ts_hashtable"][::std::mem::size_of::<_zend_ts_hashtable>() - 80usize];
["Alignment of _zend_ts_hashtable"][::std::mem::align_of::<_zend_ts_hashtable>() - 8usize];
["Offset of field: _zend_ts_hashtable::hash"]
[::std::mem::offset_of!(_zend_ts_hashtable, hash) - 0usize];
["Offset of field: _zend_ts_hashtable::reader"]
[::std::mem::offset_of!(_zend_ts_hashtable, reader) - 72usize];
};
pub type TsHashTable = _zend_ts_hashtable;
extern "C" {
pub fn _zend_ts_hash_init(
ht: *mut TsHashTable,
nSize: uint,
pHashFunction: hash_func_t,
pDestructor: dtor_func_t,
persistent: zend_bool,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _zend_ts_hash_init_ex(
ht: *mut TsHashTable,
nSize: uint,
pHashFunction: hash_func_t,
pDestructor: dtor_func_t,
persistent: zend_bool,
bApplyProtection: zend_bool,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ts_hash_destroy(ht: *mut TsHashTable);
}
extern "C" {
pub fn zend_ts_hash_clean(ht: *mut TsHashTable);
}
extern "C" {
pub fn _zend_ts_hash_add_or_update(
ht: *mut TsHashTable,
arKey: *mut ::std::os::raw::c_char,
nKeyLength: uint,
pData: *mut ::std::os::raw::c_void,
nDataSize: uint,
pDest: *mut *mut ::std::os::raw::c_void,
flag: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _zend_ts_hash_quick_add_or_update(
ht: *mut TsHashTable,
arKey: *mut ::std::os::raw::c_char,
nKeyLength: uint,
h: ulong,
pData: *mut ::std::os::raw::c_void,
nDataSize: uint,
pDest: *mut *mut ::std::os::raw::c_void,
flag: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _zend_ts_hash_index_update_or_next_insert(
ht: *mut TsHashTable,
h: ulong,
pData: *mut ::std::os::raw::c_void,
nDataSize: uint,
pDest: *mut *mut ::std::os::raw::c_void,
flag: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ts_hash_add_empty_element(
ht: *mut TsHashTable,
arKey: *mut ::std::os::raw::c_char,
nKeyLength: uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ts_hash_graceful_destroy(ht: *mut TsHashTable);
}
extern "C" {
pub fn zend_ts_hash_apply(ht: *mut TsHashTable, apply_func: apply_func_t);
}
extern "C" {
pub fn zend_ts_hash_apply_with_argument(
ht: *mut TsHashTable,
apply_func: apply_func_arg_t,
arg1: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn zend_ts_hash_apply_with_arguments(
ht: *mut TsHashTable,
apply_func: apply_func_args_t,
arg1: ::std::os::raw::c_int,
...
);
}
extern "C" {
pub fn zend_ts_hash_reverse_apply(ht: *mut TsHashTable, apply_func: apply_func_t);
}
extern "C" {
pub fn zend_ts_hash_del_key_or_index(
ht: *mut TsHashTable,
arKey: *mut ::std::os::raw::c_char,
nKeyLength: uint,
h: ulong,
flag: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ts_get_hash_value(
ht: *mut TsHashTable,
arKey: *mut ::std::os::raw::c_char,
nKeyLength: uint,
) -> ulong;
}
extern "C" {
pub fn zend_ts_hash_find(
ht: *mut TsHashTable,
arKey: *mut ::std::os::raw::c_char,
nKeyLength: uint,
pData: *mut *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ts_hash_quick_find(
ht: *mut TsHashTable,
arKey: *mut ::std::os::raw::c_char,
nKeyLength: uint,
h: ulong,
pData: *mut *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ts_hash_index_find(
ht: *mut TsHashTable,
h: ulong,
pData: *mut *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ts_hash_exists(
ht: *mut TsHashTable,
arKey: *mut ::std::os::raw::c_char,
nKeyLength: uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ts_hash_index_exists(ht: *mut TsHashTable, h: ulong) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ts_hash_copy(
target: *mut TsHashTable,
source: *mut TsHashTable,
pCopyConstructor: copy_ctor_func_t,
tmp: *mut ::std::os::raw::c_void,
size: uint,
);
}
extern "C" {
pub fn zend_ts_hash_copy_to_hash(
target: *mut HashTable,
source: *mut TsHashTable,
pCopyConstructor: copy_ctor_func_t,
tmp: *mut ::std::os::raw::c_void,
size: uint,
);
}
extern "C" {
pub fn zend_ts_hash_merge(
target: *mut TsHashTable,
source: *mut TsHashTable,
pCopyConstructor: copy_ctor_func_t,
tmp: *mut ::std::os::raw::c_void,
size: uint,
overwrite: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_ts_hash_merge_ex(
target: *mut TsHashTable,
source: *mut TsHashTable,
pCopyConstructor: copy_ctor_func_t,
size: uint,
pMergeSource: merge_checker_func_t,
pParam: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn zend_ts_hash_sort(
ht: *mut TsHashTable,
sort_func: sort_func_t,
compare_func: compare_func_t,
renumber: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ts_hash_compare(
ht1: *mut TsHashTable,
ht2: *mut TsHashTable,
compar: compare_func_t,
ordered: zend_bool,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ts_hash_minmax(
ht: *mut TsHashTable,
compar: compare_func_t,
flag: ::std::os::raw::c_int,
pData: *mut *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ts_hash_num_elements(ht: *mut TsHashTable) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ts_hash_rehash(ht: *mut TsHashTable) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ts_hash_func(arKey: *mut ::std::os::raw::c_char, nKeyLength: uint) -> ulong;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_llist_element {
pub next: *mut _zend_llist_element,
pub prev: *mut _zend_llist_element,
pub data: [::std::os::raw::c_char; 1usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_llist_element"][::std::mem::size_of::<_zend_llist_element>() - 24usize];
["Alignment of _zend_llist_element"][::std::mem::align_of::<_zend_llist_element>() - 8usize];
["Offset of field: _zend_llist_element::next"]
[::std::mem::offset_of!(_zend_llist_element, next) - 0usize];
["Offset of field: _zend_llist_element::prev"]
[::std::mem::offset_of!(_zend_llist_element, prev) - 8usize];
["Offset of field: _zend_llist_element::data"]
[::std::mem::offset_of!(_zend_llist_element, data) - 16usize];
};
pub type zend_llist_element = _zend_llist_element;
pub type llist_dtor_func_t =
::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
pub type llist_compare_func_t = ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut *const zend_llist_element,
arg2: *mut *const zend_llist_element,
) -> ::std::os::raw::c_int,
>;
pub type llist_apply_with_args_func_t = ::std::option::Option<
unsafe extern "C" fn(
data: *mut ::std::os::raw::c_void,
num_args: ::std::os::raw::c_int,
args: *mut __va_list_tag,
),
>;
pub type llist_apply_with_arg_func_t = ::std::option::Option<
unsafe extern "C" fn(data: *mut ::std::os::raw::c_void, arg: *mut ::std::os::raw::c_void),
>;
pub type llist_apply_func_t =
::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_llist {
pub head: *mut zend_llist_element,
pub tail: *mut zend_llist_element,
pub count: usize,
pub size: usize,
pub dtor: llist_dtor_func_t,
pub persistent: ::std::os::raw::c_uchar,
pub traverse_ptr: *mut zend_llist_element,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_llist"][::std::mem::size_of::<_zend_llist>() - 56usize];
["Alignment of _zend_llist"][::std::mem::align_of::<_zend_llist>() - 8usize];
["Offset of field: _zend_llist::head"][::std::mem::offset_of!(_zend_llist, head) - 0usize];
["Offset of field: _zend_llist::tail"][::std::mem::offset_of!(_zend_llist, tail) - 8usize];
["Offset of field: _zend_llist::count"][::std::mem::offset_of!(_zend_llist, count) - 16usize];
["Offset of field: _zend_llist::size"][::std::mem::offset_of!(_zend_llist, size) - 24usize];
["Offset of field: _zend_llist::dtor"][::std::mem::offset_of!(_zend_llist, dtor) - 32usize];
["Offset of field: _zend_llist::persistent"]
[::std::mem::offset_of!(_zend_llist, persistent) - 40usize];
["Offset of field: _zend_llist::traverse_ptr"]
[::std::mem::offset_of!(_zend_llist, traverse_ptr) - 48usize];
};
pub type zend_llist = _zend_llist;
pub type zend_llist_position = *mut zend_llist_element;
extern "C" {
pub fn zend_llist_init(
l: *mut zend_llist,
size: usize,
dtor: llist_dtor_func_t,
persistent: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn zend_llist_add_element(l: *mut zend_llist, element: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn zend_llist_prepend_element(l: *mut zend_llist, element: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn zend_llist_del_element(
l: *mut zend_llist,
element: *mut ::std::os::raw::c_void,
compare: ::std::option::Option<
unsafe extern "C" fn(
element1: *mut ::std::os::raw::c_void,
element2: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
);
}
extern "C" {
pub fn zend_llist_destroy(l: *mut zend_llist);
}
extern "C" {
pub fn zend_llist_clean(l: *mut zend_llist);
}
extern "C" {
pub fn zend_llist_remove_tail(l: *mut zend_llist) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn zend_llist_copy(dst: *mut zend_llist, src: *mut zend_llist);
}
extern "C" {
pub fn zend_llist_apply(l: *mut zend_llist, func: llist_apply_func_t);
}
extern "C" {
pub fn zend_llist_apply_with_del(
l: *mut zend_llist,
func: ::std::option::Option<
unsafe extern "C" fn(data: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>,
);
}
extern "C" {
pub fn zend_llist_apply_with_argument(
l: *mut zend_llist,
func: llist_apply_with_arg_func_t,
arg: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn zend_llist_apply_with_arguments(
l: *mut zend_llist,
func: llist_apply_with_args_func_t,
num_args: ::std::os::raw::c_int,
...
);
}
extern "C" {
pub fn zend_llist_count(l: *mut zend_llist) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_llist_sort(l: *mut zend_llist, comp_func: llist_compare_func_t);
}
extern "C" {
pub fn zend_llist_get_first_ex(
l: *mut zend_llist,
pos: *mut zend_llist_position,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn zend_llist_get_last_ex(
l: *mut zend_llist,
pos: *mut zend_llist_position,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn zend_llist_get_next_ex(
l: *mut zend_llist,
pos: *mut zend_llist_position,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn zend_llist_get_prev_ex(
l: *mut zend_llist,
pos: *mut zend_llist_position,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn zend_error_noreturn(
type_: ::std::os::raw::c_int,
format: *const ::std::os::raw::c_char,
...
) -> !;
}
pub type zval = _zval_struct;
pub type zend_class_entry = _zend_class_entry;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_guard {
pub in_get: zend_bool,
pub in_set: zend_bool,
pub in_unset: zend_bool,
pub in_isset: zend_bool,
pub dummy: zend_bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_guard"][::std::mem::size_of::<_zend_guard>() - 5usize];
["Alignment of _zend_guard"][::std::mem::align_of::<_zend_guard>() - 1usize];
["Offset of field: _zend_guard::in_get"][::std::mem::offset_of!(_zend_guard, in_get) - 0usize];
["Offset of field: _zend_guard::in_set"][::std::mem::offset_of!(_zend_guard, in_set) - 1usize];
["Offset of field: _zend_guard::in_unset"]
[::std::mem::offset_of!(_zend_guard, in_unset) - 2usize];
["Offset of field: _zend_guard::in_isset"]
[::std::mem::offset_of!(_zend_guard, in_isset) - 3usize];
["Offset of field: _zend_guard::dummy"][::std::mem::offset_of!(_zend_guard, dummy) - 4usize];
};
pub type zend_guard = _zend_guard;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_object {
pub ce: *mut zend_class_entry,
pub properties: *mut HashTable,
pub properties_table: *mut *mut zval,
pub guards: *mut HashTable,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_object"][::std::mem::size_of::<_zend_object>() - 32usize];
["Alignment of _zend_object"][::std::mem::align_of::<_zend_object>() - 8usize];
["Offset of field: _zend_object::ce"][::std::mem::offset_of!(_zend_object, ce) - 0usize];
["Offset of field: _zend_object::properties"]
[::std::mem::offset_of!(_zend_object, properties) - 8usize];
["Offset of field: _zend_object::properties_table"]
[::std::mem::offset_of!(_zend_object, properties_table) - 16usize];
["Offset of field: _zend_object::guards"]
[::std::mem::offset_of!(_zend_object, guards) - 24usize];
};
pub type zend_object = _zend_object;
pub type zend_object_read_property_t = ::std::option::Option<
unsafe extern "C" fn(
object: *mut zval,
member: *mut zval,
type_: ::std::os::raw::c_int,
key: *const _zend_literal,
) -> *mut zval,
>;
pub type zend_object_read_dimension_t = ::std::option::Option<
unsafe extern "C" fn(
object: *mut zval,
offset: *mut zval,
type_: ::std::os::raw::c_int,
) -> *mut zval,
>;
pub type zend_object_write_property_t = ::std::option::Option<
unsafe extern "C" fn(
object: *mut zval,
member: *mut zval,
value: *mut zval,
key: *const _zend_literal,
),
>;
pub type zend_object_write_dimension_t = ::std::option::Option<
unsafe extern "C" fn(object: *mut zval, offset: *mut zval, value: *mut zval),
>;
pub type zend_object_get_property_ptr_ptr_t = ::std::option::Option<
unsafe extern "C" fn(
object: *mut zval,
member: *mut zval,
key: *const _zend_literal,
) -> *mut *mut zval,
>;
pub type zend_object_set_t =
::std::option::Option<unsafe extern "C" fn(object: *mut *mut zval, value: *mut zval)>;
pub type zend_object_get_t =
::std::option::Option<unsafe extern "C" fn(object: *mut zval) -> *mut zval>;
pub type zend_object_has_property_t = ::std::option::Option<
unsafe extern "C" fn(
object: *mut zval,
member: *mut zval,
has_set_exists: ::std::os::raw::c_int,
key: *const _zend_literal,
) -> ::std::os::raw::c_int,
>;
pub type zend_object_has_dimension_t = ::std::option::Option<
unsafe extern "C" fn(
object: *mut zval,
member: *mut zval,
check_empty: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>;
pub type zend_object_unset_property_t = ::std::option::Option<
unsafe extern "C" fn(object: *mut zval, member: *mut zval, key: *const _zend_literal),
>;
pub type zend_object_unset_dimension_t =
::std::option::Option<unsafe extern "C" fn(object: *mut zval, offset: *mut zval)>;
pub type zend_object_get_properties_t =
::std::option::Option<unsafe extern "C" fn(object: *mut zval) -> *mut HashTable>;
pub type zend_object_get_debug_info_t = ::std::option::Option<
unsafe extern "C" fn(object: *mut zval, is_temp: *mut ::std::os::raw::c_int) -> *mut HashTable,
>;
pub type zend_object_call_method_t = ::std::option::Option<
unsafe extern "C" fn(
method: *const ::std::os::raw::c_char,
ht: ::std::os::raw::c_int,
return_value: *mut zval,
return_value_ptr: *mut *mut zval,
this_ptr: *mut zval,
return_value_used: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>;
pub type zend_object_get_method_t = ::std::option::Option<
unsafe extern "C" fn(
object_ptr: *mut *mut zval,
method: *mut ::std::os::raw::c_char,
method_len: ::std::os::raw::c_int,
key: *const _zend_literal,
) -> *mut _zend_function,
>;
pub type zend_object_get_constructor_t =
::std::option::Option<unsafe extern "C" fn(object: *mut zval) -> *mut _zend_function>;
pub type zend_object_add_ref_t = ::std::option::Option<unsafe extern "C" fn(object: *mut zval)>;
pub type zend_object_del_ref_t = ::std::option::Option<unsafe extern "C" fn(object: *mut zval)>;
pub type zend_object_delete_obj_t = ::std::option::Option<unsafe extern "C" fn(object: *mut zval)>;
pub type zend_object_clone_obj_t =
::std::option::Option<unsafe extern "C" fn(object: *mut zval) -> zend_object_value>;
pub type zend_object_get_class_entry_t =
::std::option::Option<unsafe extern "C" fn(object: *const zval) -> *mut zend_class_entry>;
pub type zend_object_get_class_name_t = ::std::option::Option<
unsafe extern "C" fn(
object: *const zval,
class_name: *mut *const ::std::os::raw::c_char,
class_name_len: *mut zend_uint,
parent: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>;
pub type zend_object_compare_t = ::std::option::Option<
unsafe extern "C" fn(object1: *mut zval, object2: *mut zval) -> ::std::os::raw::c_int,
>;
pub type zend_object_cast_t = ::std::option::Option<
unsafe extern "C" fn(
readobj: *mut zval,
retval: *mut zval,
type_: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>;
pub type zend_object_count_elements_t = ::std::option::Option<
unsafe extern "C" fn(
object: *mut zval,
count: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int,
>;
pub type zend_object_get_closure_t = ::std::option::Option<
unsafe extern "C" fn(
obj: *mut zval,
ce_ptr: *mut *mut zend_class_entry,
fptr_ptr: *mut *mut _zend_function,
zobj_ptr: *mut *mut zval,
) -> ::std::os::raw::c_int,
>;
pub type zend_object_get_gc_t = ::std::option::Option<
unsafe extern "C" fn(
object: *mut zval,
table: *mut *mut *mut zval,
n: *mut ::std::os::raw::c_int,
) -> *mut HashTable,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_object_handlers {
pub add_ref: zend_object_add_ref_t,
pub del_ref: zend_object_del_ref_t,
pub clone_obj: zend_object_clone_obj_t,
pub read_property: zend_object_read_property_t,
pub write_property: zend_object_write_property_t,
pub read_dimension: zend_object_read_dimension_t,
pub write_dimension: zend_object_write_dimension_t,
pub get_property_ptr_ptr: zend_object_get_property_ptr_ptr_t,
pub get: zend_object_get_t,
pub set: zend_object_set_t,
pub has_property: zend_object_has_property_t,
pub unset_property: zend_object_unset_property_t,
pub has_dimension: zend_object_has_dimension_t,
pub unset_dimension: zend_object_unset_dimension_t,
pub get_properties: zend_object_get_properties_t,
pub get_method: zend_object_get_method_t,
pub call_method: zend_object_call_method_t,
pub get_constructor: zend_object_get_constructor_t,
pub get_class_entry: zend_object_get_class_entry_t,
pub get_class_name: zend_object_get_class_name_t,
pub compare_objects: zend_object_compare_t,
pub cast_object: zend_object_cast_t,
pub count_elements: zend_object_count_elements_t,
pub get_debug_info: zend_object_get_debug_info_t,
pub get_closure: zend_object_get_closure_t,
pub get_gc: zend_object_get_gc_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_object_handlers"][::std::mem::size_of::<_zend_object_handlers>() - 208usize];
["Alignment of _zend_object_handlers"]
[::std::mem::align_of::<_zend_object_handlers>() - 8usize];
["Offset of field: _zend_object_handlers::add_ref"]
[::std::mem::offset_of!(_zend_object_handlers, add_ref) - 0usize];
["Offset of field: _zend_object_handlers::del_ref"]
[::std::mem::offset_of!(_zend_object_handlers, del_ref) - 8usize];
["Offset of field: _zend_object_handlers::clone_obj"]
[::std::mem::offset_of!(_zend_object_handlers, clone_obj) - 16usize];
["Offset of field: _zend_object_handlers::read_property"]
[::std::mem::offset_of!(_zend_object_handlers, read_property) - 24usize];
["Offset of field: _zend_object_handlers::write_property"]
[::std::mem::offset_of!(_zend_object_handlers, write_property) - 32usize];
["Offset of field: _zend_object_handlers::read_dimension"]
[::std::mem::offset_of!(_zend_object_handlers, read_dimension) - 40usize];
["Offset of field: _zend_object_handlers::write_dimension"]
[::std::mem::offset_of!(_zend_object_handlers, write_dimension) - 48usize];
["Offset of field: _zend_object_handlers::get_property_ptr_ptr"]
[::std::mem::offset_of!(_zend_object_handlers, get_property_ptr_ptr) - 56usize];
["Offset of field: _zend_object_handlers::get"]
[::std::mem::offset_of!(_zend_object_handlers, get) - 64usize];
["Offset of field: _zend_object_handlers::set"]
[::std::mem::offset_of!(_zend_object_handlers, set) - 72usize];
["Offset of field: _zend_object_handlers::has_property"]
[::std::mem::offset_of!(_zend_object_handlers, has_property) - 80usize];
["Offset of field: _zend_object_handlers::unset_property"]
[::std::mem::offset_of!(_zend_object_handlers, unset_property) - 88usize];
["Offset of field: _zend_object_handlers::has_dimension"]
[::std::mem::offset_of!(_zend_object_handlers, has_dimension) - 96usize];
["Offset of field: _zend_object_handlers::unset_dimension"]
[::std::mem::offset_of!(_zend_object_handlers, unset_dimension) - 104usize];
["Offset of field: _zend_object_handlers::get_properties"]
[::std::mem::offset_of!(_zend_object_handlers, get_properties) - 112usize];
["Offset of field: _zend_object_handlers::get_method"]
[::std::mem::offset_of!(_zend_object_handlers, get_method) - 120usize];
["Offset of field: _zend_object_handlers::call_method"]
[::std::mem::offset_of!(_zend_object_handlers, call_method) - 128usize];
["Offset of field: _zend_object_handlers::get_constructor"]
[::std::mem::offset_of!(_zend_object_handlers, get_constructor) - 136usize];
["Offset of field: _zend_object_handlers::get_class_entry"]
[::std::mem::offset_of!(_zend_object_handlers, get_class_entry) - 144usize];
["Offset of field: _zend_object_handlers::get_class_name"]
[::std::mem::offset_of!(_zend_object_handlers, get_class_name) - 152usize];
["Offset of field: _zend_object_handlers::compare_objects"]
[::std::mem::offset_of!(_zend_object_handlers, compare_objects) - 160usize];
["Offset of field: _zend_object_handlers::cast_object"]
[::std::mem::offset_of!(_zend_object_handlers, cast_object) - 168usize];
["Offset of field: _zend_object_handlers::count_elements"]
[::std::mem::offset_of!(_zend_object_handlers, count_elements) - 176usize];
["Offset of field: _zend_object_handlers::get_debug_info"]
[::std::mem::offset_of!(_zend_object_handlers, get_debug_info) - 184usize];
["Offset of field: _zend_object_handlers::get_closure"]
[::std::mem::offset_of!(_zend_object_handlers, get_closure) - 192usize];
["Offset of field: _zend_object_handlers::get_gc"]
[::std::mem::offset_of!(_zend_object_handlers, get_gc) - 200usize];
};
extern "C" {
pub static mut std_object_handlers: zend_object_handlers;
}
extern "C" {
pub fn zend_std_get_static_method(
ce: *mut zend_class_entry,
function_name_strval: *const ::std::os::raw::c_char,
function_name_strlen: ::std::os::raw::c_int,
key: *const _zend_literal,
) -> *mut _zend_function;
}
extern "C" {
pub fn zend_std_get_static_property(
ce: *mut zend_class_entry,
property_name: *const ::std::os::raw::c_char,
property_name_len: ::std::os::raw::c_int,
silent: zend_bool,
key: *const _zend_literal,
) -> *mut *mut zval;
}
extern "C" {
pub fn zend_std_unset_static_property(
ce: *mut zend_class_entry,
property_name: *const ::std::os::raw::c_char,
property_name_len: ::std::os::raw::c_int,
key: *const _zend_literal,
) -> zend_bool;
}
extern "C" {
pub fn zend_std_get_constructor(object: *mut zval) -> *mut _zend_function;
}
extern "C" {
pub fn zend_get_property_info(
ce: *mut zend_class_entry,
member: *mut zval,
silent: ::std::os::raw::c_int,
) -> *mut _zend_property_info;
}
extern "C" {
pub fn zend_std_get_properties(object: *mut zval) -> *mut HashTable;
}
extern "C" {
pub fn zend_std_get_debug_info(
object: *mut zval,
is_temp: *mut ::std::os::raw::c_int,
) -> *mut HashTable;
}
extern "C" {
pub fn zend_std_cast_object_tostring(
readobj: *mut zval,
writeobj: *mut zval,
type_: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_std_write_property(
object: *mut zval,
member: *mut zval,
value: *mut zval,
key: *const _zend_literal,
);
}
extern "C" {
pub fn zend_check_private(
fbc: *mut _zend_function,
ce: *mut zend_class_entry,
function_name_strval: *mut ::std::os::raw::c_char,
function_name_strlen: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_check_protected(
ce: *mut zend_class_entry,
scope: *mut zend_class_entry,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_check_property_access(
zobj: *mut zend_object,
prop_info_name: *const ::std::os::raw::c_char,
prop_info_name_len: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_std_call_user_call(
ht: ::std::os::raw::c_int,
return_value: *mut zval,
return_value_ptr: *mut *mut zval,
this_ptr: *mut zval,
return_value_used: ::std::os::raw::c_int,
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _zvalue_value {
pub lval: ::std::os::raw::c_long,
pub dval: f64,
pub str_: _zvalue_value__bindgen_ty_1,
pub ht: *mut HashTable,
pub obj: zend_object_value,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zvalue_value__bindgen_ty_1 {
pub val: *mut ::std::os::raw::c_char,
pub len: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zvalue_value__bindgen_ty_1"]
[::std::mem::size_of::<_zvalue_value__bindgen_ty_1>() - 16usize];
["Alignment of _zvalue_value__bindgen_ty_1"]
[::std::mem::align_of::<_zvalue_value__bindgen_ty_1>() - 8usize];
["Offset of field: _zvalue_value__bindgen_ty_1::val"]
[::std::mem::offset_of!(_zvalue_value__bindgen_ty_1, val) - 0usize];
["Offset of field: _zvalue_value__bindgen_ty_1::len"]
[::std::mem::offset_of!(_zvalue_value__bindgen_ty_1, len) - 8usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zvalue_value"][::std::mem::size_of::<_zvalue_value>() - 16usize];
["Alignment of _zvalue_value"][::std::mem::align_of::<_zvalue_value>() - 8usize];
["Offset of field: _zvalue_value::lval"][::std::mem::offset_of!(_zvalue_value, lval) - 0usize];
["Offset of field: _zvalue_value::dval"][::std::mem::offset_of!(_zvalue_value, dval) - 0usize];
["Offset of field: _zvalue_value::str_"][::std::mem::offset_of!(_zvalue_value, str_) - 0usize];
["Offset of field: _zvalue_value::ht"][::std::mem::offset_of!(_zvalue_value, ht) - 0usize];
["Offset of field: _zvalue_value::obj"][::std::mem::offset_of!(_zvalue_value, obj) - 0usize];
};
pub type zvalue_value = _zvalue_value;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _zval_struct {
pub value: zvalue_value,
pub refcount__gc: zend_uint,
pub type_: zend_uchar,
pub is_ref__gc: zend_uchar,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zval_struct"][::std::mem::size_of::<_zval_struct>() - 24usize];
["Alignment of _zval_struct"][::std::mem::align_of::<_zval_struct>() - 8usize];
["Offset of field: _zval_struct::value"][::std::mem::offset_of!(_zval_struct, value) - 0usize];
["Offset of field: _zval_struct::refcount__gc"]
[::std::mem::offset_of!(_zval_struct, refcount__gc) - 16usize];
["Offset of field: _zval_struct::type_"][::std::mem::offset_of!(_zval_struct, type_) - 20usize];
["Offset of field: _zval_struct::is_ref__gc"]
[::std::mem::offset_of!(_zval_struct, is_ref__gc) - 21usize];
};
pub type zend_object_iterator = _zend_object_iterator;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_object_iterator_funcs {
pub dtor: ::std::option::Option<unsafe extern "C" fn(iter: *mut zend_object_iterator)>,
pub valid: ::std::option::Option<
unsafe extern "C" fn(iter: *mut zend_object_iterator) -> ::std::os::raw::c_int,
>,
pub get_current_data: ::std::option::Option<
unsafe extern "C" fn(iter: *mut zend_object_iterator, data: *mut *mut *mut zval),
>,
pub get_current_key: ::std::option::Option<
unsafe extern "C" fn(
iter: *mut zend_object_iterator,
str_key: *mut *mut ::std::os::raw::c_char,
str_key_len: *mut uint,
int_key: *mut ulong,
) -> ::std::os::raw::c_int,
>,
pub move_forward: ::std::option::Option<unsafe extern "C" fn(iter: *mut zend_object_iterator)>,
pub rewind: ::std::option::Option<unsafe extern "C" fn(iter: *mut zend_object_iterator)>,
pub invalidate_current:
::std::option::Option<unsafe extern "C" fn(iter: *mut zend_object_iterator)>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_object_iterator_funcs"]
[::std::mem::size_of::<_zend_object_iterator_funcs>() - 56usize];
["Alignment of _zend_object_iterator_funcs"]
[::std::mem::align_of::<_zend_object_iterator_funcs>() - 8usize];
["Offset of field: _zend_object_iterator_funcs::dtor"]
[::std::mem::offset_of!(_zend_object_iterator_funcs, dtor) - 0usize];
["Offset of field: _zend_object_iterator_funcs::valid"]
[::std::mem::offset_of!(_zend_object_iterator_funcs, valid) - 8usize];
["Offset of field: _zend_object_iterator_funcs::get_current_data"]
[::std::mem::offset_of!(_zend_object_iterator_funcs, get_current_data) - 16usize];
["Offset of field: _zend_object_iterator_funcs::get_current_key"]
[::std::mem::offset_of!(_zend_object_iterator_funcs, get_current_key) - 24usize];
["Offset of field: _zend_object_iterator_funcs::move_forward"]
[::std::mem::offset_of!(_zend_object_iterator_funcs, move_forward) - 32usize];
["Offset of field: _zend_object_iterator_funcs::rewind"]
[::std::mem::offset_of!(_zend_object_iterator_funcs, rewind) - 40usize];
["Offset of field: _zend_object_iterator_funcs::invalidate_current"]
[::std::mem::offset_of!(_zend_object_iterator_funcs, invalidate_current) - 48usize];
};
pub type zend_object_iterator_funcs = _zend_object_iterator_funcs;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_object_iterator {
pub data: *mut ::std::os::raw::c_void,
pub funcs: *mut zend_object_iterator_funcs,
pub index: ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_object_iterator"][::std::mem::size_of::<_zend_object_iterator>() - 24usize];
["Alignment of _zend_object_iterator"]
[::std::mem::align_of::<_zend_object_iterator>() - 8usize];
["Offset of field: _zend_object_iterator::data"]
[::std::mem::offset_of!(_zend_object_iterator, data) - 0usize];
["Offset of field: _zend_object_iterator::funcs"]
[::std::mem::offset_of!(_zend_object_iterator, funcs) - 8usize];
["Offset of field: _zend_object_iterator::index"]
[::std::mem::offset_of!(_zend_object_iterator, index) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_class_iterator_funcs {
pub funcs: *mut zend_object_iterator_funcs,
pub zf_new_iterator: *mut _zend_function,
pub zf_valid: *mut _zend_function,
pub zf_current: *mut _zend_function,
pub zf_key: *mut _zend_function,
pub zf_next: *mut _zend_function,
pub zf_rewind: *mut _zend_function,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_class_iterator_funcs"]
[::std::mem::size_of::<_zend_class_iterator_funcs>() - 56usize];
["Alignment of _zend_class_iterator_funcs"]
[::std::mem::align_of::<_zend_class_iterator_funcs>() - 8usize];
["Offset of field: _zend_class_iterator_funcs::funcs"]
[::std::mem::offset_of!(_zend_class_iterator_funcs, funcs) - 0usize];
["Offset of field: _zend_class_iterator_funcs::zf_new_iterator"]
[::std::mem::offset_of!(_zend_class_iterator_funcs, zf_new_iterator) - 8usize];
["Offset of field: _zend_class_iterator_funcs::zf_valid"]
[::std::mem::offset_of!(_zend_class_iterator_funcs, zf_valid) - 16usize];
["Offset of field: _zend_class_iterator_funcs::zf_current"]
[::std::mem::offset_of!(_zend_class_iterator_funcs, zf_current) - 24usize];
["Offset of field: _zend_class_iterator_funcs::zf_key"]
[::std::mem::offset_of!(_zend_class_iterator_funcs, zf_key) - 32usize];
["Offset of field: _zend_class_iterator_funcs::zf_next"]
[::std::mem::offset_of!(_zend_class_iterator_funcs, zf_next) - 40usize];
["Offset of field: _zend_class_iterator_funcs::zf_rewind"]
[::std::mem::offset_of!(_zend_class_iterator_funcs, zf_rewind) - 48usize];
};
pub type zend_class_iterator_funcs = _zend_class_iterator_funcs;
pub const zend_object_iterator_kind_ZEND_ITER_INVALID: zend_object_iterator_kind = 0;
pub const zend_object_iterator_kind_ZEND_ITER_PLAIN_ARRAY: zend_object_iterator_kind = 1;
pub const zend_object_iterator_kind_ZEND_ITER_PLAIN_OBJECT: zend_object_iterator_kind = 2;
pub const zend_object_iterator_kind_ZEND_ITER_OBJECT: zend_object_iterator_kind = 3;
pub type zend_object_iterator_kind = ::std::os::raw::c_uint;
extern "C" {
pub fn zend_iterator_unwrap(
array_ptr: *mut zval,
iter: *mut *mut zend_object_iterator,
) -> zend_object_iterator_kind;
}
extern "C" {
pub fn zend_iterator_wrap(iter: *mut zend_object_iterator) -> *mut zval;
}
extern "C" {
pub fn zend_register_iterator_wrapper();
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_serialize_data {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_unserialize_data {
_unused: [u8; 0],
}
pub type zend_serialize_data = _zend_serialize_data;
pub type zend_unserialize_data = _zend_unserialize_data;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_trait_method_reference {
pub method_name: *const ::std::os::raw::c_char,
pub mname_len: ::std::os::raw::c_uint,
pub ce: *mut zend_class_entry,
pub class_name: *const ::std::os::raw::c_char,
pub cname_len: ::std::os::raw::c_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_trait_method_reference"]
[::std::mem::size_of::<_zend_trait_method_reference>() - 40usize];
["Alignment of _zend_trait_method_reference"]
[::std::mem::align_of::<_zend_trait_method_reference>() - 8usize];
["Offset of field: _zend_trait_method_reference::method_name"]
[::std::mem::offset_of!(_zend_trait_method_reference, method_name) - 0usize];
["Offset of field: _zend_trait_method_reference::mname_len"]
[::std::mem::offset_of!(_zend_trait_method_reference, mname_len) - 8usize];
["Offset of field: _zend_trait_method_reference::ce"]
[::std::mem::offset_of!(_zend_trait_method_reference, ce) - 16usize];
["Offset of field: _zend_trait_method_reference::class_name"]
[::std::mem::offset_of!(_zend_trait_method_reference, class_name) - 24usize];
["Offset of field: _zend_trait_method_reference::cname_len"]
[::std::mem::offset_of!(_zend_trait_method_reference, cname_len) - 32usize];
};
pub type zend_trait_method_reference = _zend_trait_method_reference;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_trait_precedence {
pub trait_method: *mut zend_trait_method_reference,
pub exclude_from_classes: *mut *mut zend_class_entry,
pub function: *mut _zend_function,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_trait_precedence"][::std::mem::size_of::<_zend_trait_precedence>() - 24usize];
["Alignment of _zend_trait_precedence"]
[::std::mem::align_of::<_zend_trait_precedence>() - 8usize];
["Offset of field: _zend_trait_precedence::trait_method"]
[::std::mem::offset_of!(_zend_trait_precedence, trait_method) - 0usize];
["Offset of field: _zend_trait_precedence::exclude_from_classes"]
[::std::mem::offset_of!(_zend_trait_precedence, exclude_from_classes) - 8usize];
["Offset of field: _zend_trait_precedence::function"]
[::std::mem::offset_of!(_zend_trait_precedence, function) - 16usize];
};
pub type zend_trait_precedence = _zend_trait_precedence;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_trait_alias {
pub trait_method: *mut zend_trait_method_reference,
#[doc = " name for method to be added"]
pub alias: *const ::std::os::raw::c_char,
pub alias_len: ::std::os::raw::c_uint,
#[doc = " modifiers to be set on trait method"]
pub modifiers: zend_uint,
pub function: *mut _zend_function,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_trait_alias"][::std::mem::size_of::<_zend_trait_alias>() - 32usize];
["Alignment of _zend_trait_alias"][::std::mem::align_of::<_zend_trait_alias>() - 8usize];
["Offset of field: _zend_trait_alias::trait_method"]
[::std::mem::offset_of!(_zend_trait_alias, trait_method) - 0usize];
["Offset of field: _zend_trait_alias::alias"]
[::std::mem::offset_of!(_zend_trait_alias, alias) - 8usize];
["Offset of field: _zend_trait_alias::alias_len"]
[::std::mem::offset_of!(_zend_trait_alias, alias_len) - 16usize];
["Offset of field: _zend_trait_alias::modifiers"]
[::std::mem::offset_of!(_zend_trait_alias, modifiers) - 20usize];
["Offset of field: _zend_trait_alias::function"]
[::std::mem::offset_of!(_zend_trait_alias, function) - 24usize];
};
pub type zend_trait_alias = _zend_trait_alias;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _zend_class_entry {
pub type_: ::std::os::raw::c_char,
pub name: *const ::std::os::raw::c_char,
pub name_length: zend_uint,
pub parent: *mut _zend_class_entry,
pub refcount: ::std::os::raw::c_int,
pub ce_flags: zend_uint,
pub function_table: HashTable,
pub properties_info: HashTable,
pub default_properties_table: *mut *mut zval,
pub default_static_members_table: *mut *mut zval,
pub static_members_table: *mut *mut zval,
pub constants_table: HashTable,
pub default_properties_count: ::std::os::raw::c_int,
pub default_static_members_count: ::std::os::raw::c_int,
pub constructor: *mut _zend_function,
pub destructor: *mut _zend_function,
pub clone: *mut _zend_function,
pub __get: *mut _zend_function,
pub __set: *mut _zend_function,
pub __unset: *mut _zend_function,
pub __isset: *mut _zend_function,
pub __call: *mut _zend_function,
pub __callstatic: *mut _zend_function,
pub __tostring: *mut _zend_function,
pub serialize_func: *mut _zend_function,
pub unserialize_func: *mut _zend_function,
pub iterator_funcs: zend_class_iterator_funcs,
pub create_object: ::std::option::Option<
unsafe extern "C" fn(class_type: *mut zend_class_entry) -> zend_object_value,
>,
pub get_iterator: ::std::option::Option<
unsafe extern "C" fn(
ce: *mut zend_class_entry,
object: *mut zval,
by_ref: ::std::os::raw::c_int,
) -> *mut zend_object_iterator,
>,
pub interface_gets_implemented: ::std::option::Option<
unsafe extern "C" fn(
iface: *mut zend_class_entry,
class_type: *mut zend_class_entry,
) -> ::std::os::raw::c_int,
>,
pub get_static_method: ::std::option::Option<
unsafe extern "C" fn(
ce: *mut zend_class_entry,
method: *mut ::std::os::raw::c_char,
method_len: ::std::os::raw::c_int,
) -> *mut _zend_function,
>,
pub serialize: ::std::option::Option<
unsafe extern "C" fn(
object: *mut zval,
buffer: *mut *mut ::std::os::raw::c_uchar,
buf_len: *mut zend_uint,
data: *mut zend_serialize_data,
) -> ::std::os::raw::c_int,
>,
pub unserialize: ::std::option::Option<
unsafe extern "C" fn(
object: *mut *mut zval,
ce: *mut zend_class_entry,
buf: *const ::std::os::raw::c_uchar,
buf_len: zend_uint,
data: *mut zend_unserialize_data,
) -> ::std::os::raw::c_int,
>,
pub interfaces: *mut *mut zend_class_entry,
pub num_interfaces: zend_uint,
pub traits: *mut *mut zend_class_entry,
pub num_traits: zend_uint,
pub trait_aliases: *mut *mut zend_trait_alias,
pub trait_precedences: *mut *mut zend_trait_precedence,
pub info: _zend_class_entry__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _zend_class_entry__bindgen_ty_1 {
pub user: _zend_class_entry__bindgen_ty_1__bindgen_ty_1,
pub internal: _zend_class_entry__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_class_entry__bindgen_ty_1__bindgen_ty_1 {
pub filename: *const ::std::os::raw::c_char,
pub line_start: zend_uint,
pub line_end: zend_uint,
pub doc_comment: *const ::std::os::raw::c_char,
pub doc_comment_len: zend_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_class_entry__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<_zend_class_entry__bindgen_ty_1__bindgen_ty_1>() - 32usize];
["Alignment of _zend_class_entry__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<_zend_class_entry__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: _zend_class_entry__bindgen_ty_1__bindgen_ty_1::filename"]
[::std::mem::offset_of!(_zend_class_entry__bindgen_ty_1__bindgen_ty_1, filename) - 0usize];
["Offset of field: _zend_class_entry__bindgen_ty_1__bindgen_ty_1::line_start"][::std::mem::offset_of!(
_zend_class_entry__bindgen_ty_1__bindgen_ty_1,
line_start
) - 8usize];
["Offset of field: _zend_class_entry__bindgen_ty_1__bindgen_ty_1::line_end"]
[::std::mem::offset_of!(_zend_class_entry__bindgen_ty_1__bindgen_ty_1, line_end) - 12usize];
["Offset of field: _zend_class_entry__bindgen_ty_1__bindgen_ty_1::doc_comment"][::std::mem::offset_of!(
_zend_class_entry__bindgen_ty_1__bindgen_ty_1,
doc_comment
) - 16usize];
["Offset of field: _zend_class_entry__bindgen_ty_1__bindgen_ty_1::doc_comment_len"][::std::mem::offset_of!(
_zend_class_entry__bindgen_ty_1__bindgen_ty_1,
doc_comment_len
)
- 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_class_entry__bindgen_ty_1__bindgen_ty_2 {
pub builtin_functions: *const _zend_function_entry,
pub module: *mut _zend_module_entry,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_class_entry__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<_zend_class_entry__bindgen_ty_1__bindgen_ty_2>() - 16usize];
["Alignment of _zend_class_entry__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<_zend_class_entry__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: _zend_class_entry__bindgen_ty_1__bindgen_ty_2::builtin_functions"][::std::mem::offset_of!(
_zend_class_entry__bindgen_ty_1__bindgen_ty_2,
builtin_functions
)
- 0usize];
["Offset of field: _zend_class_entry__bindgen_ty_1__bindgen_ty_2::module"]
[::std::mem::offset_of!(_zend_class_entry__bindgen_ty_1__bindgen_ty_2, module) - 8usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_class_entry__bindgen_ty_1"]
[::std::mem::size_of::<_zend_class_entry__bindgen_ty_1>() - 32usize];
["Alignment of _zend_class_entry__bindgen_ty_1"]
[::std::mem::align_of::<_zend_class_entry__bindgen_ty_1>() - 8usize];
["Offset of field: _zend_class_entry__bindgen_ty_1::user"]
[::std::mem::offset_of!(_zend_class_entry__bindgen_ty_1, user) - 0usize];
["Offset of field: _zend_class_entry__bindgen_ty_1::internal"]
[::std::mem::offset_of!(_zend_class_entry__bindgen_ty_1, internal) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_class_entry"][::std::mem::size_of::<_zend_class_entry>() - 568usize];
["Alignment of _zend_class_entry"][::std::mem::align_of::<_zend_class_entry>() - 8usize];
["Offset of field: _zend_class_entry::type_"]
[::std::mem::offset_of!(_zend_class_entry, type_) - 0usize];
["Offset of field: _zend_class_entry::name"]
[::std::mem::offset_of!(_zend_class_entry, name) - 8usize];
["Offset of field: _zend_class_entry::name_length"]
[::std::mem::offset_of!(_zend_class_entry, name_length) - 16usize];
["Offset of field: _zend_class_entry::parent"]
[::std::mem::offset_of!(_zend_class_entry, parent) - 24usize];
["Offset of field: _zend_class_entry::refcount"]
[::std::mem::offset_of!(_zend_class_entry, refcount) - 32usize];
["Offset of field: _zend_class_entry::ce_flags"]
[::std::mem::offset_of!(_zend_class_entry, ce_flags) - 36usize];
["Offset of field: _zend_class_entry::function_table"]
[::std::mem::offset_of!(_zend_class_entry, function_table) - 40usize];
["Offset of field: _zend_class_entry::properties_info"]
[::std::mem::offset_of!(_zend_class_entry, properties_info) - 112usize];
["Offset of field: _zend_class_entry::default_properties_table"]
[::std::mem::offset_of!(_zend_class_entry, default_properties_table) - 184usize];
["Offset of field: _zend_class_entry::default_static_members_table"]
[::std::mem::offset_of!(_zend_class_entry, default_static_members_table) - 192usize];
["Offset of field: _zend_class_entry::static_members_table"]
[::std::mem::offset_of!(_zend_class_entry, static_members_table) - 200usize];
["Offset of field: _zend_class_entry::constants_table"]
[::std::mem::offset_of!(_zend_class_entry, constants_table) - 208usize];
["Offset of field: _zend_class_entry::default_properties_count"]
[::std::mem::offset_of!(_zend_class_entry, default_properties_count) - 280usize];
["Offset of field: _zend_class_entry::default_static_members_count"]
[::std::mem::offset_of!(_zend_class_entry, default_static_members_count) - 284usize];
["Offset of field: _zend_class_entry::constructor"]
[::std::mem::offset_of!(_zend_class_entry, constructor) - 288usize];
["Offset of field: _zend_class_entry::destructor"]
[::std::mem::offset_of!(_zend_class_entry, destructor) - 296usize];
["Offset of field: _zend_class_entry::clone"]
[::std::mem::offset_of!(_zend_class_entry, clone) - 304usize];
["Offset of field: _zend_class_entry::__get"]
[::std::mem::offset_of!(_zend_class_entry, __get) - 312usize];
["Offset of field: _zend_class_entry::__set"]
[::std::mem::offset_of!(_zend_class_entry, __set) - 320usize];
["Offset of field: _zend_class_entry::__unset"]
[::std::mem::offset_of!(_zend_class_entry, __unset) - 328usize];
["Offset of field: _zend_class_entry::__isset"]
[::std::mem::offset_of!(_zend_class_entry, __isset) - 336usize];
["Offset of field: _zend_class_entry::__call"]
[::std::mem::offset_of!(_zend_class_entry, __call) - 344usize];
["Offset of field: _zend_class_entry::__callstatic"]
[::std::mem::offset_of!(_zend_class_entry, __callstatic) - 352usize];
["Offset of field: _zend_class_entry::__tostring"]
[::std::mem::offset_of!(_zend_class_entry, __tostring) - 360usize];
["Offset of field: _zend_class_entry::serialize_func"]
[::std::mem::offset_of!(_zend_class_entry, serialize_func) - 368usize];
["Offset of field: _zend_class_entry::unserialize_func"]
[::std::mem::offset_of!(_zend_class_entry, unserialize_func) - 376usize];
["Offset of field: _zend_class_entry::iterator_funcs"]
[::std::mem::offset_of!(_zend_class_entry, iterator_funcs) - 384usize];
["Offset of field: _zend_class_entry::create_object"]
[::std::mem::offset_of!(_zend_class_entry, create_object) - 440usize];
["Offset of field: _zend_class_entry::get_iterator"]
[::std::mem::offset_of!(_zend_class_entry, get_iterator) - 448usize];
["Offset of field: _zend_class_entry::interface_gets_implemented"]
[::std::mem::offset_of!(_zend_class_entry, interface_gets_implemented) - 456usize];
["Offset of field: _zend_class_entry::get_static_method"]
[::std::mem::offset_of!(_zend_class_entry, get_static_method) - 464usize];
["Offset of field: _zend_class_entry::serialize"]
[::std::mem::offset_of!(_zend_class_entry, serialize) - 472usize];
["Offset of field: _zend_class_entry::unserialize"]
[::std::mem::offset_of!(_zend_class_entry, unserialize) - 480usize];
["Offset of field: _zend_class_entry::interfaces"]
[::std::mem::offset_of!(_zend_class_entry, interfaces) - 488usize];
["Offset of field: _zend_class_entry::num_interfaces"]
[::std::mem::offset_of!(_zend_class_entry, num_interfaces) - 496usize];
["Offset of field: _zend_class_entry::traits"]
[::std::mem::offset_of!(_zend_class_entry, traits) - 504usize];
["Offset of field: _zend_class_entry::num_traits"]
[::std::mem::offset_of!(_zend_class_entry, num_traits) - 512usize];
["Offset of field: _zend_class_entry::trait_aliases"]
[::std::mem::offset_of!(_zend_class_entry, trait_aliases) - 520usize];
["Offset of field: _zend_class_entry::trait_precedences"]
[::std::mem::offset_of!(_zend_class_entry, trait_precedences) - 528usize];
["Offset of field: _zend_class_entry::info"]
[::std::mem::offset_of!(_zend_class_entry, info) - 536usize];
};
pub type zend_stream_fsizer_t =
::std::option::Option<unsafe extern "C" fn(handle: *mut ::std::os::raw::c_void) -> usize>;
pub type zend_stream_reader_t = ::std::option::Option<
unsafe extern "C" fn(
handle: *mut ::std::os::raw::c_void,
buf: *mut ::std::os::raw::c_char,
len: usize,
) -> usize,
>;
pub type zend_stream_closer_t =
::std::option::Option<unsafe extern "C" fn(handle: *mut ::std::os::raw::c_void)>;
pub const zend_stream_type_ZEND_HANDLE_FILENAME: zend_stream_type = 0;
pub const zend_stream_type_ZEND_HANDLE_FD: zend_stream_type = 1;
pub const zend_stream_type_ZEND_HANDLE_FP: zend_stream_type = 2;
pub const zend_stream_type_ZEND_HANDLE_STREAM: zend_stream_type = 3;
pub const zend_stream_type_ZEND_HANDLE_MAPPED: zend_stream_type = 4;
pub type zend_stream_type = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_mmap {
pub len: usize,
pub pos: usize,
pub map: *mut ::std::os::raw::c_void,
pub buf: *mut ::std::os::raw::c_char,
pub old_handle: *mut ::std::os::raw::c_void,
pub old_closer: zend_stream_closer_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_mmap"][::std::mem::size_of::<_zend_mmap>() - 48usize];
["Alignment of _zend_mmap"][::std::mem::align_of::<_zend_mmap>() - 8usize];
["Offset of field: _zend_mmap::len"][::std::mem::offset_of!(_zend_mmap, len) - 0usize];
["Offset of field: _zend_mmap::pos"][::std::mem::offset_of!(_zend_mmap, pos) - 8usize];
["Offset of field: _zend_mmap::map"][::std::mem::offset_of!(_zend_mmap, map) - 16usize];
["Offset of field: _zend_mmap::buf"][::std::mem::offset_of!(_zend_mmap, buf) - 24usize];
["Offset of field: _zend_mmap::old_handle"]
[::std::mem::offset_of!(_zend_mmap, old_handle) - 32usize];
["Offset of field: _zend_mmap::old_closer"]
[::std::mem::offset_of!(_zend_mmap, old_closer) - 40usize];
};
pub type zend_mmap = _zend_mmap;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_stream {
pub handle: *mut ::std::os::raw::c_void,
pub isatty: ::std::os::raw::c_int,
pub mmap: zend_mmap,
pub reader: zend_stream_reader_t,
pub fsizer: zend_stream_fsizer_t,
pub closer: zend_stream_closer_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_stream"][::std::mem::size_of::<_zend_stream>() - 88usize];
["Alignment of _zend_stream"][::std::mem::align_of::<_zend_stream>() - 8usize];
["Offset of field: _zend_stream::handle"]
[::std::mem::offset_of!(_zend_stream, handle) - 0usize];
["Offset of field: _zend_stream::isatty"]
[::std::mem::offset_of!(_zend_stream, isatty) - 8usize];
["Offset of field: _zend_stream::mmap"][::std::mem::offset_of!(_zend_stream, mmap) - 16usize];
["Offset of field: _zend_stream::reader"]
[::std::mem::offset_of!(_zend_stream, reader) - 64usize];
["Offset of field: _zend_stream::fsizer"]
[::std::mem::offset_of!(_zend_stream, fsizer) - 72usize];
["Offset of field: _zend_stream::closer"]
[::std::mem::offset_of!(_zend_stream, closer) - 80usize];
};
pub type zend_stream = _zend_stream;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _zend_file_handle {
pub type_: zend_stream_type,
pub filename: *const ::std::os::raw::c_char,
pub opened_path: *mut ::std::os::raw::c_char,
pub handle: _zend_file_handle__bindgen_ty_1,
pub free_filename: zend_bool,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _zend_file_handle__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub fp: *mut FILE,
pub stream: zend_stream,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_file_handle__bindgen_ty_1"]
[::std::mem::size_of::<_zend_file_handle__bindgen_ty_1>() - 88usize];
["Alignment of _zend_file_handle__bindgen_ty_1"]
[::std::mem::align_of::<_zend_file_handle__bindgen_ty_1>() - 8usize];
["Offset of field: _zend_file_handle__bindgen_ty_1::fd"]
[::std::mem::offset_of!(_zend_file_handle__bindgen_ty_1, fd) - 0usize];
["Offset of field: _zend_file_handle__bindgen_ty_1::fp"]
[::std::mem::offset_of!(_zend_file_handle__bindgen_ty_1, fp) - 0usize];
["Offset of field: _zend_file_handle__bindgen_ty_1::stream"]
[::std::mem::offset_of!(_zend_file_handle__bindgen_ty_1, stream) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_file_handle"][::std::mem::size_of::<_zend_file_handle>() - 120usize];
["Alignment of _zend_file_handle"][::std::mem::align_of::<_zend_file_handle>() - 8usize];
["Offset of field: _zend_file_handle::type_"]
[::std::mem::offset_of!(_zend_file_handle, type_) - 0usize];
["Offset of field: _zend_file_handle::filename"]
[::std::mem::offset_of!(_zend_file_handle, filename) - 8usize];
["Offset of field: _zend_file_handle::opened_path"]
[::std::mem::offset_of!(_zend_file_handle, opened_path) - 16usize];
["Offset of field: _zend_file_handle::handle"]
[::std::mem::offset_of!(_zend_file_handle, handle) - 24usize];
["Offset of field: _zend_file_handle::free_filename"]
[::std::mem::offset_of!(_zend_file_handle, free_filename) - 112usize];
};
pub type zend_file_handle = _zend_file_handle;
extern "C" {
pub fn zend_stream_open(
filename: *const ::std::os::raw::c_char,
handle: *mut zend_file_handle,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_stream_fixup(
file_handle: *mut zend_file_handle,
buf: *mut *mut ::std::os::raw::c_char,
len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_file_handle_dtor(fh: *mut zend_file_handle);
}
extern "C" {
pub fn zend_compare_file_handles(
fh1: *mut zend_file_handle,
fh2: *mut zend_file_handle,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_utility_functions {
pub error_function: ::std::option::Option<
unsafe extern "C" fn(
type_: ::std::os::raw::c_int,
error_filename: *const ::std::os::raw::c_char,
error_lineno: uint,
format: *const ::std::os::raw::c_char,
args: *mut __va_list_tag,
),
>,
pub printf_function: ::std::option::Option<
unsafe extern "C" fn(format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int,
>,
pub write_function: ::std::option::Option<
unsafe extern "C" fn(
str_: *const ::std::os::raw::c_char,
str_length: uint,
) -> ::std::os::raw::c_int,
>,
pub fopen_function: ::std::option::Option<
unsafe extern "C" fn(
filename: *const ::std::os::raw::c_char,
opened_path: *mut *mut ::std::os::raw::c_char,
) -> *mut FILE,
>,
pub message_handler: ::std::option::Option<
unsafe extern "C" fn(message: ::std::os::raw::c_long, data: *const ::std::os::raw::c_void),
>,
pub block_interruptions: ::std::option::Option<unsafe extern "C" fn()>,
pub unblock_interruptions: ::std::option::Option<unsafe extern "C" fn()>,
pub get_configuration_directive: ::std::option::Option<
unsafe extern "C" fn(
name: *const ::std::os::raw::c_char,
name_length: uint,
contents: *mut zval,
) -> ::std::os::raw::c_int,
>,
pub ticks_function: ::std::option::Option<unsafe extern "C" fn(ticks: ::std::os::raw::c_int)>,
pub on_timeout: ::std::option::Option<unsafe extern "C" fn(seconds: ::std::os::raw::c_int)>,
pub stream_open_function: ::std::option::Option<
unsafe extern "C" fn(
filename: *const ::std::os::raw::c_char,
handle: *mut zend_file_handle,
) -> ::std::os::raw::c_int,
>,
pub vspprintf_function: ::std::option::Option<
unsafe extern "C" fn(
pbuf: *mut *mut ::std::os::raw::c_char,
max_len: usize,
format: *const ::std::os::raw::c_char,
ap: *mut __va_list_tag,
) -> ::std::os::raw::c_int,
>,
pub getenv_function: ::std::option::Option<
unsafe extern "C" fn(
name: *mut ::std::os::raw::c_char,
name_len: usize,
) -> *mut ::std::os::raw::c_char,
>,
pub resolve_path_function: ::std::option::Option<
unsafe extern "C" fn(
filename: *const ::std::os::raw::c_char,
filename_len: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_utility_functions"]
[::std::mem::size_of::<_zend_utility_functions>() - 112usize];
["Alignment of _zend_utility_functions"]
[::std::mem::align_of::<_zend_utility_functions>() - 8usize];
["Offset of field: _zend_utility_functions::error_function"]
[::std::mem::offset_of!(_zend_utility_functions, error_function) - 0usize];
["Offset of field: _zend_utility_functions::printf_function"]
[::std::mem::offset_of!(_zend_utility_functions, printf_function) - 8usize];
["Offset of field: _zend_utility_functions::write_function"]
[::std::mem::offset_of!(_zend_utility_functions, write_function) - 16usize];
["Offset of field: _zend_utility_functions::fopen_function"]
[::std::mem::offset_of!(_zend_utility_functions, fopen_function) - 24usize];
["Offset of field: _zend_utility_functions::message_handler"]
[::std::mem::offset_of!(_zend_utility_functions, message_handler) - 32usize];
["Offset of field: _zend_utility_functions::block_interruptions"]
[::std::mem::offset_of!(_zend_utility_functions, block_interruptions) - 40usize];
["Offset of field: _zend_utility_functions::unblock_interruptions"]
[::std::mem::offset_of!(_zend_utility_functions, unblock_interruptions) - 48usize];
["Offset of field: _zend_utility_functions::get_configuration_directive"]
[::std::mem::offset_of!(_zend_utility_functions, get_configuration_directive) - 56usize];
["Offset of field: _zend_utility_functions::ticks_function"]
[::std::mem::offset_of!(_zend_utility_functions, ticks_function) - 64usize];
["Offset of field: _zend_utility_functions::on_timeout"]
[::std::mem::offset_of!(_zend_utility_functions, on_timeout) - 72usize];
["Offset of field: _zend_utility_functions::stream_open_function"]
[::std::mem::offset_of!(_zend_utility_functions, stream_open_function) - 80usize];
["Offset of field: _zend_utility_functions::vspprintf_function"]
[::std::mem::offset_of!(_zend_utility_functions, vspprintf_function) - 88usize];
["Offset of field: _zend_utility_functions::getenv_function"]
[::std::mem::offset_of!(_zend_utility_functions, getenv_function) - 96usize];
["Offset of field: _zend_utility_functions::resolve_path_function"]
[::std::mem::offset_of!(_zend_utility_functions, resolve_path_function) - 104usize];
};
pub type zend_utility_functions = _zend_utility_functions;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_utility_values {
pub import_use_extension: *mut ::std::os::raw::c_char,
pub import_use_extension_length: uint,
pub html_errors: zend_bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_utility_values"][::std::mem::size_of::<_zend_utility_values>() - 16usize];
["Alignment of _zend_utility_values"][::std::mem::align_of::<_zend_utility_values>() - 8usize];
["Offset of field: _zend_utility_values::import_use_extension"]
[::std::mem::offset_of!(_zend_utility_values, import_use_extension) - 0usize];
["Offset of field: _zend_utility_values::import_use_extension_length"]
[::std::mem::offset_of!(_zend_utility_values, import_use_extension_length) - 8usize];
["Offset of field: _zend_utility_values::html_errors"]
[::std::mem::offset_of!(_zend_utility_values, html_errors) - 12usize];
};
pub type zend_utility_values = _zend_utility_values;
pub type zend_write_func_t = ::std::option::Option<
unsafe extern "C" fn(
str_: *const ::std::os::raw::c_char,
str_length: uint,
) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn zend_startup(
utility_functions: *mut zend_utility_functions,
extensions: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_shutdown();
}
extern "C" {
pub fn zend_register_standard_ini_entries();
}
extern "C" {
pub fn zend_post_startup();
}
extern "C" {
pub fn zend_set_utility_values(utility_values: *mut zend_utility_values);
}
extern "C" {
pub fn _zend_bailout(filename: *mut ::std::os::raw::c_char, lineno: uint);
}
extern "C" {
pub fn zend_make_printable_zval(
expr: *mut zval,
expr_copy: *mut zval,
use_copy: *mut ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_print_zval(expr: *mut zval, indent: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_print_zval_ex(
write_func: zend_write_func_t,
expr: *mut zval,
indent: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_print_zval_r(expr: *mut zval, indent: ::std::os::raw::c_int);
}
extern "C" {
pub fn zend_print_flat_zval_r(expr: *mut zval);
}
extern "C" {
pub fn zend_print_zval_r_ex(
write_func: zend_write_func_t,
expr: *mut zval,
indent: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_output_debug_string(
trigger_break: zend_bool,
format: *const ::std::os::raw::c_char,
...
);
}
extern "C" {
pub fn zend_activate();
}
extern "C" {
pub fn zend_deactivate();
}
extern "C" {
pub fn zend_call_destructors();
}
extern "C" {
pub fn zend_activate_modules();
}
extern "C" {
pub fn zend_deactivate_modules();
}
extern "C" {
pub fn zend_post_deactivate_modules();
}
extern "C" {
pub static mut zend_printf: ::std::option::Option<
unsafe extern "C" fn(format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int,
>;
}
extern "C" {
pub static mut zend_write: zend_write_func_t;
}
extern "C" {
pub static mut zend_fopen: ::std::option::Option<
unsafe extern "C" fn(
filename: *const ::std::os::raw::c_char,
opened_path: *mut *mut ::std::os::raw::c_char,
) -> *mut FILE,
>;
}
extern "C" {
pub static mut zend_block_interruptions: ::std::option::Option<unsafe extern "C" fn()>;
}
extern "C" {
pub static mut zend_unblock_interruptions: ::std::option::Option<unsafe extern "C" fn()>;
}
extern "C" {
pub static mut zend_ticks_function:
::std::option::Option<unsafe extern "C" fn(ticks: ::std::os::raw::c_int)>;
}
extern "C" {
pub static mut zend_error_cb: ::std::option::Option<
unsafe extern "C" fn(
type_: ::std::os::raw::c_int,
error_filename: *const ::std::os::raw::c_char,
error_lineno: uint,
format: *const ::std::os::raw::c_char,
args: *mut __va_list_tag,
),
>;
}
extern "C" {
pub static mut zend_on_timeout:
::std::option::Option<unsafe extern "C" fn(seconds: ::std::os::raw::c_int)>;
}
extern "C" {
pub static mut zend_stream_open_function: ::std::option::Option<
unsafe extern "C" fn(
filename: *const ::std::os::raw::c_char,
handle: *mut zend_file_handle,
) -> ::std::os::raw::c_int,
>;
}
extern "C" {
pub static mut zend_vspprintf: ::std::option::Option<
unsafe extern "C" fn(
pbuf: *mut *mut ::std::os::raw::c_char,
max_len: usize,
format: *const ::std::os::raw::c_char,
ap: *mut __va_list_tag,
) -> ::std::os::raw::c_int,
>;
}
extern "C" {
pub static mut zend_getenv: ::std::option::Option<
unsafe extern "C" fn(
name: *mut ::std::os::raw::c_char,
name_len: usize,
) -> *mut ::std::os::raw::c_char,
>;
}
extern "C" {
pub static mut zend_resolve_path: ::std::option::Option<
unsafe extern "C" fn(
filename: *const ::std::os::raw::c_char,
filename_len: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char,
>;
}
extern "C" {
pub fn zend_error(type_: ::std::os::raw::c_int, format: *const ::std::os::raw::c_char, ...);
}
extern "C" {
pub fn zenderror(error: *const ::std::os::raw::c_char);
}
extern "C" {
pub static mut zend_standard_class_def: *mut zend_class_entry;
}
extern "C" {
pub static mut zend_uv: zend_utility_values;
}
extern "C" {
pub static mut zval_used_for_init: zval;
}
extern "C" {
pub fn zend_message_dispatcher(
message: ::std::os::raw::c_long,
data: *const ::std::os::raw::c_void,
);
}
extern "C" {
pub fn zend_get_configuration_directive(
name: *const ::std::os::raw::c_char,
name_length: uint,
contents: *mut zval,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _gc_root_buffer {
pub prev: *mut _gc_root_buffer,
pub next: *mut _gc_root_buffer,
pub handle: zend_object_handle,
pub u: _gc_root_buffer__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _gc_root_buffer__bindgen_ty_1 {
pub pz: *mut zval,
pub handlers: *const zend_object_handlers,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _gc_root_buffer__bindgen_ty_1"]
[::std::mem::size_of::<_gc_root_buffer__bindgen_ty_1>() - 8usize];
["Alignment of _gc_root_buffer__bindgen_ty_1"]
[::std::mem::align_of::<_gc_root_buffer__bindgen_ty_1>() - 8usize];
["Offset of field: _gc_root_buffer__bindgen_ty_1::pz"]
[::std::mem::offset_of!(_gc_root_buffer__bindgen_ty_1, pz) - 0usize];
["Offset of field: _gc_root_buffer__bindgen_ty_1::handlers"]
[::std::mem::offset_of!(_gc_root_buffer__bindgen_ty_1, handlers) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _gc_root_buffer"][::std::mem::size_of::<_gc_root_buffer>() - 32usize];
["Alignment of _gc_root_buffer"][::std::mem::align_of::<_gc_root_buffer>() - 8usize];
["Offset of field: _gc_root_buffer::prev"]
[::std::mem::offset_of!(_gc_root_buffer, prev) - 0usize];
["Offset of field: _gc_root_buffer::next"]
[::std::mem::offset_of!(_gc_root_buffer, next) - 8usize];
["Offset of field: _gc_root_buffer::handle"]
[::std::mem::offset_of!(_gc_root_buffer, handle) - 16usize];
["Offset of field: _gc_root_buffer::u"][::std::mem::offset_of!(_gc_root_buffer, u) - 24usize];
};
pub type gc_root_buffer = _gc_root_buffer;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _zval_gc_info {
pub z: zval,
pub u: _zval_gc_info__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _zval_gc_info__bindgen_ty_1 {
pub buffered: *mut gc_root_buffer,
pub next: *mut _zval_gc_info,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zval_gc_info__bindgen_ty_1"]
[::std::mem::size_of::<_zval_gc_info__bindgen_ty_1>() - 8usize];
["Alignment of _zval_gc_info__bindgen_ty_1"]
[::std::mem::align_of::<_zval_gc_info__bindgen_ty_1>() - 8usize];
["Offset of field: _zval_gc_info__bindgen_ty_1::buffered"]
[::std::mem::offset_of!(_zval_gc_info__bindgen_ty_1, buffered) - 0usize];
["Offset of field: _zval_gc_info__bindgen_ty_1::next"]
[::std::mem::offset_of!(_zval_gc_info__bindgen_ty_1, next) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zval_gc_info"][::std::mem::size_of::<_zval_gc_info>() - 32usize];
["Alignment of _zval_gc_info"][::std::mem::align_of::<_zval_gc_info>() - 8usize];
["Offset of field: _zval_gc_info::z"][::std::mem::offset_of!(_zval_gc_info, z) - 0usize];
["Offset of field: _zval_gc_info::u"][::std::mem::offset_of!(_zval_gc_info, u) - 24usize];
};
pub type zval_gc_info = _zval_gc_info;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _zend_gc_globals {
pub gc_enabled: zend_bool,
pub gc_active: zend_bool,
pub buf: *mut gc_root_buffer,
pub roots: gc_root_buffer,
pub unused: *mut gc_root_buffer,
pub first_unused: *mut gc_root_buffer,
pub last_unused: *mut gc_root_buffer,
pub zval_to_free: *mut zval_gc_info,
pub free_list: *mut zval_gc_info,
pub next_to_free: *mut zval_gc_info,
pub gc_runs: zend_uint,
pub collected: zend_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_gc_globals"][::std::mem::size_of::<_zend_gc_globals>() - 104usize];
["Alignment of _zend_gc_globals"][::std::mem::align_of::<_zend_gc_globals>() - 8usize];
["Offset of field: _zend_gc_globals::gc_enabled"]
[::std::mem::offset_of!(_zend_gc_globals, gc_enabled) - 0usize];
["Offset of field: _zend_gc_globals::gc_active"]
[::std::mem::offset_of!(_zend_gc_globals, gc_active) - 1usize];
["Offset of field: _zend_gc_globals::buf"]
[::std::mem::offset_of!(_zend_gc_globals, buf) - 8usize];
["Offset of field: _zend_gc_globals::roots"]
[::std::mem::offset_of!(_zend_gc_globals, roots) - 16usize];
["Offset of field: _zend_gc_globals::unused"]
[::std::mem::offset_of!(_zend_gc_globals, unused) - 48usize];
["Offset of field: _zend_gc_globals::first_unused"]
[::std::mem::offset_of!(_zend_gc_globals, first_unused) - 56usize];
["Offset of field: _zend_gc_globals::last_unused"]
[::std::mem::offset_of!(_zend_gc_globals, last_unused) - 64usize];
["Offset of field: _zend_gc_globals::zval_to_free"]
[::std::mem::offset_of!(_zend_gc_globals, zval_to_free) - 72usize];
["Offset of field: _zend_gc_globals::free_list"]
[::std::mem::offset_of!(_zend_gc_globals, free_list) - 80usize];
["Offset of field: _zend_gc_globals::next_to_free"]
[::std::mem::offset_of!(_zend_gc_globals, next_to_free) - 88usize];
["Offset of field: _zend_gc_globals::gc_runs"]
[::std::mem::offset_of!(_zend_gc_globals, gc_runs) - 96usize];
["Offset of field: _zend_gc_globals::collected"]
[::std::mem::offset_of!(_zend_gc_globals, collected) - 100usize];
};
pub type zend_gc_globals = _zend_gc_globals;
extern "C" {
pub static mut gc_globals: zend_gc_globals;
}
extern "C" {
pub fn zend_freedtoa(s: *mut ::std::os::raw::c_char);
}
extern "C" {
pub fn zend_dtoa(
_d: f64,
mode: ::std::os::raw::c_int,
ndigits: ::std::os::raw::c_int,
decpt: *mut ::std::os::raw::c_int,
sign: *mut ::std::os::raw::c_int,
rve: *mut *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_strtod(
s00: *const ::std::os::raw::c_char,
se: *mut *const ::std::os::raw::c_char,
) -> f64;
}
extern "C" {
pub fn zend_hex_strtod(
str_: *const ::std::os::raw::c_char,
endptr: *mut *const ::std::os::raw::c_char,
) -> f64;
}
extern "C" {
pub fn zend_oct_strtod(
str_: *const ::std::os::raw::c_char,
endptr: *mut *const ::std::os::raw::c_char,
) -> f64;
}
extern "C" {
pub fn zend_bin_strtod(
str_: *const ::std::os::raw::c_char,
endptr: *mut *const ::std::os::raw::c_char,
) -> f64;
}
extern "C" {
pub fn zend_startup_strtod() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_shutdown_strtod() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_string_to_double(number: *const ::std::os::raw::c_char, length: zend_uint) -> f64;
}
extern "C" {
pub fn zend_str_tolower(str_: *mut ::std::os::raw::c_char, length: ::std::os::raw::c_uint);
}
extern "C" {
pub fn zend_str_tolower_copy(
dest: *mut ::std::os::raw::c_char,
source: *const ::std::os::raw::c_char,
length: ::std::os::raw::c_uint,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_str_tolower_dup(
source: *const ::std::os::raw::c_char,
length: ::std::os::raw::c_uint,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_binary_zval_strcmp(s1: *mut zval, s2: *mut zval) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_binary_zval_strncmp(
s1: *mut zval,
s2: *mut zval,
s3: *mut zval,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_binary_zval_strcasecmp(s1: *mut zval, s2: *mut zval) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_binary_zval_strncasecmp(
s1: *mut zval,
s2: *mut zval,
s3: *mut zval,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_binary_strcmp(
s1: *const ::std::os::raw::c_char,
len1: uint,
s2: *const ::std::os::raw::c_char,
len2: uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_binary_strncmp(
s1: *const ::std::os::raw::c_char,
len1: uint,
s2: *const ::std::os::raw::c_char,
len2: uint,
length: uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_binary_strcasecmp(
s1: *const ::std::os::raw::c_char,
len1: uint,
s2: *const ::std::os::raw::c_char,
len2: uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_binary_strncasecmp(
s1: *const ::std::os::raw::c_char,
len1: uint,
s2: *const ::std::os::raw::c_char,
len2: uint,
length: uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zendi_smart_strcmp(result: *mut zval, s1: *mut zval, s2: *mut zval);
}
extern "C" {
pub fn zend_compare_symbol_tables(result: *mut zval, ht1: *mut HashTable, ht2: *mut HashTable);
}
extern "C" {
pub fn zend_compare_arrays(result: *mut zval, a1: *mut zval, a2: *mut zval);
}
extern "C" {
pub fn zend_compare_objects(result: *mut zval, o1: *mut zval, o2: *mut zval);
}
extern "C" {
pub fn zend_atoi(
str_: *const ::std::os::raw::c_char,
str_len: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_atol(
str_: *const ::std::os::raw::c_char,
str_len: ::std::os::raw::c_int,
) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn zend_locale_sprintf_double(op: *mut zval);
}
extern "C" {
pub fn zend_print_variable(var: *mut zval) -> ::std::os::raw::c_int;
}
pub const zend_error_handling_t_EH_NORMAL: zend_error_handling_t = 0;
pub const zend_error_handling_t_EH_SUPPRESS: zend_error_handling_t = 1;
pub const zend_error_handling_t_EH_THROW: zend_error_handling_t = 2;
pub type zend_error_handling_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct zend_error_handling {
pub handling: zend_error_handling_t,
pub exception: *mut zend_class_entry,
pub user_handler: *mut zval,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of zend_error_handling"][::std::mem::size_of::<zend_error_handling>() - 24usize];
["Alignment of zend_error_handling"][::std::mem::align_of::<zend_error_handling>() - 8usize];
["Offset of field: zend_error_handling::handling"]
[::std::mem::offset_of!(zend_error_handling, handling) - 0usize];
["Offset of field: zend_error_handling::exception"]
[::std::mem::offset_of!(zend_error_handling, exception) - 8usize];
["Offset of field: zend_error_handling::user_handler"]
[::std::mem::offset_of!(zend_error_handling, user_handler) - 16usize];
};
extern "C" {
pub fn zend_save_error_handling(current: *mut zend_error_handling);
}
extern "C" {
pub fn zend_replace_error_handling(
error_handling: zend_error_handling_t,
exception_class: *mut zend_class_entry,
current: *mut zend_error_handling,
);
}
extern "C" {
pub fn zend_restore_error_handling(saved: *mut zend_error_handling);
}
extern "C" {
pub fn zend_qsort(
base: *mut ::std::os::raw::c_void,
nmemb: usize,
siz: usize,
compare: compare_func_t,
);
}
pub type zend_op_array = _zend_op_array;
pub type zend_op = _zend_op;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_compiler_context {
pub opcodes_size: zend_uint,
pub vars_size: ::std::os::raw::c_int,
pub literals_size: ::std::os::raw::c_int,
pub current_brk_cont: ::std::os::raw::c_int,
pub backpatch_count: ::std::os::raw::c_int,
pub labels: *mut HashTable,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_compiler_context"][::std::mem::size_of::<_zend_compiler_context>() - 32usize];
["Alignment of _zend_compiler_context"]
[::std::mem::align_of::<_zend_compiler_context>() - 8usize];
["Offset of field: _zend_compiler_context::opcodes_size"]
[::std::mem::offset_of!(_zend_compiler_context, opcodes_size) - 0usize];
["Offset of field: _zend_compiler_context::vars_size"]
[::std::mem::offset_of!(_zend_compiler_context, vars_size) - 4usize];
["Offset of field: _zend_compiler_context::literals_size"]
[::std::mem::offset_of!(_zend_compiler_context, literals_size) - 8usize];
["Offset of field: _zend_compiler_context::current_brk_cont"]
[::std::mem::offset_of!(_zend_compiler_context, current_brk_cont) - 12usize];
["Offset of field: _zend_compiler_context::backpatch_count"]
[::std::mem::offset_of!(_zend_compiler_context, backpatch_count) - 16usize];
["Offset of field: _zend_compiler_context::labels"]
[::std::mem::offset_of!(_zend_compiler_context, labels) - 24usize];
};
pub type zend_compiler_context = _zend_compiler_context;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _zend_literal {
pub constant: zval,
pub hash_value: zend_ulong,
pub cache_slot: zend_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_literal"][::std::mem::size_of::<_zend_literal>() - 40usize];
["Alignment of _zend_literal"][::std::mem::align_of::<_zend_literal>() - 8usize];
["Offset of field: _zend_literal::constant"]
[::std::mem::offset_of!(_zend_literal, constant) - 0usize];
["Offset of field: _zend_literal::hash_value"]
[::std::mem::offset_of!(_zend_literal, hash_value) - 24usize];
["Offset of field: _zend_literal::cache_slot"]
[::std::mem::offset_of!(_zend_literal, cache_slot) - 32usize];
};
pub type zend_literal = _zend_literal;
#[repr(C)]
#[derive(Copy, Clone)]
pub union _znode_op {
pub constant: zend_uint,
pub var: zend_uint,
pub num: zend_uint,
pub hash: zend_ulong,
pub opline_num: zend_uint,
pub jmp_addr: *mut zend_op,
pub zv: *mut zval,
pub literal: *mut zend_literal,
pub ptr: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _znode_op"][::std::mem::size_of::<_znode_op>() - 8usize];
["Alignment of _znode_op"][::std::mem::align_of::<_znode_op>() - 8usize];
["Offset of field: _znode_op::constant"][::std::mem::offset_of!(_znode_op, constant) - 0usize];
["Offset of field: _znode_op::var"][::std::mem::offset_of!(_znode_op, var) - 0usize];
["Offset of field: _znode_op::num"][::std::mem::offset_of!(_znode_op, num) - 0usize];
["Offset of field: _znode_op::hash"][::std::mem::offset_of!(_znode_op, hash) - 0usize];
["Offset of field: _znode_op::opline_num"]
[::std::mem::offset_of!(_znode_op, opline_num) - 0usize];
["Offset of field: _znode_op::jmp_addr"][::std::mem::offset_of!(_znode_op, jmp_addr) - 0usize];
["Offset of field: _znode_op::zv"][::std::mem::offset_of!(_znode_op, zv) - 0usize];
["Offset of field: _znode_op::literal"][::std::mem::offset_of!(_znode_op, literal) - 0usize];
["Offset of field: _znode_op::ptr"][::std::mem::offset_of!(_znode_op, ptr) - 0usize];
};
pub type znode_op = _znode_op;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _znode {
pub op_type: ::std::os::raw::c_int,
pub u: _znode__bindgen_ty_1,
pub EA: zend_uint,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _znode__bindgen_ty_1 {
pub op: znode_op,
pub constant: zval,
pub op_array: *mut zend_op_array,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _znode__bindgen_ty_1"][::std::mem::size_of::<_znode__bindgen_ty_1>() - 24usize];
["Alignment of _znode__bindgen_ty_1"][::std::mem::align_of::<_znode__bindgen_ty_1>() - 8usize];
["Offset of field: _znode__bindgen_ty_1::op"]
[::std::mem::offset_of!(_znode__bindgen_ty_1, op) - 0usize];
["Offset of field: _znode__bindgen_ty_1::constant"]
[::std::mem::offset_of!(_znode__bindgen_ty_1, constant) - 0usize];
["Offset of field: _znode__bindgen_ty_1::op_array"]
[::std::mem::offset_of!(_znode__bindgen_ty_1, op_array) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _znode"][::std::mem::size_of::<_znode>() - 40usize];
["Alignment of _znode"][::std::mem::align_of::<_znode>() - 8usize];
["Offset of field: _znode::op_type"][::std::mem::offset_of!(_znode, op_type) - 0usize];
["Offset of field: _znode::u"][::std::mem::offset_of!(_znode, u) - 8usize];
["Offset of field: _znode::EA"][::std::mem::offset_of!(_znode, EA) - 32usize];
};
pub type znode = _znode;
pub type zend_execute_data = _zend_execute_data;
pub type user_opcode_handler_t = ::std::option::Option<
unsafe extern "C" fn(execute_data: *mut zend_execute_data) -> ::std::os::raw::c_int,
>;
pub type opcode_handler_t = ::std::option::Option<
unsafe extern "C" fn(execute_data: *mut zend_execute_data) -> ::std::os::raw::c_int,
>;
extern "C" {
pub static mut zend_opcode_handlers: *mut opcode_handler_t;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _zend_op {
pub handler: opcode_handler_t,
pub op1: znode_op,
pub op2: znode_op,
pub result: znode_op,
pub extended_value: ulong,
pub lineno: uint,
pub opcode: zend_uchar,
pub op1_type: zend_uchar,
pub op2_type: zend_uchar,
pub result_type: zend_uchar,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_op"][::std::mem::size_of::<_zend_op>() - 48usize];
["Alignment of _zend_op"][::std::mem::align_of::<_zend_op>() - 8usize];
["Offset of field: _zend_op::handler"][::std::mem::offset_of!(_zend_op, handler) - 0usize];
["Offset of field: _zend_op::op1"][::std::mem::offset_of!(_zend_op, op1) - 8usize];
["Offset of field: _zend_op::op2"][::std::mem::offset_of!(_zend_op, op2) - 16usize];
["Offset of field: _zend_op::result"][::std::mem::offset_of!(_zend_op, result) - 24usize];
["Offset of field: _zend_op::extended_value"]
[::std::mem::offset_of!(_zend_op, extended_value) - 32usize];
["Offset of field: _zend_op::lineno"][::std::mem::offset_of!(_zend_op, lineno) - 40usize];
["Offset of field: _zend_op::opcode"][::std::mem::offset_of!(_zend_op, opcode) - 44usize];
["Offset of field: _zend_op::op1_type"][::std::mem::offset_of!(_zend_op, op1_type) - 45usize];
["Offset of field: _zend_op::op2_type"][::std::mem::offset_of!(_zend_op, op2_type) - 46usize];
["Offset of field: _zend_op::result_type"]
[::std::mem::offset_of!(_zend_op, result_type) - 47usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_brk_cont_element {
pub start: ::std::os::raw::c_int,
pub cont: ::std::os::raw::c_int,
pub brk: ::std::os::raw::c_int,
pub parent: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_brk_cont_element"][::std::mem::size_of::<_zend_brk_cont_element>() - 16usize];
["Alignment of _zend_brk_cont_element"]
[::std::mem::align_of::<_zend_brk_cont_element>() - 4usize];
["Offset of field: _zend_brk_cont_element::start"]
[::std::mem::offset_of!(_zend_brk_cont_element, start) - 0usize];
["Offset of field: _zend_brk_cont_element::cont"]
[::std::mem::offset_of!(_zend_brk_cont_element, cont) - 4usize];
["Offset of field: _zend_brk_cont_element::brk"]
[::std::mem::offset_of!(_zend_brk_cont_element, brk) - 8usize];
["Offset of field: _zend_brk_cont_element::parent"]
[::std::mem::offset_of!(_zend_brk_cont_element, parent) - 12usize];
};
pub type zend_brk_cont_element = _zend_brk_cont_element;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_label {
pub brk_cont: ::std::os::raw::c_int,
pub opline_num: zend_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_label"][::std::mem::size_of::<_zend_label>() - 8usize];
["Alignment of _zend_label"][::std::mem::align_of::<_zend_label>() - 4usize];
["Offset of field: _zend_label::brk_cont"]
[::std::mem::offset_of!(_zend_label, brk_cont) - 0usize];
["Offset of field: _zend_label::opline_num"]
[::std::mem::offset_of!(_zend_label, opline_num) - 4usize];
};
pub type zend_label = _zend_label;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_try_catch_element {
pub try_op: zend_uint,
pub catch_op: zend_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_try_catch_element"][::std::mem::size_of::<_zend_try_catch_element>() - 8usize];
["Alignment of _zend_try_catch_element"]
[::std::mem::align_of::<_zend_try_catch_element>() - 4usize];
["Offset of field: _zend_try_catch_element::try_op"]
[::std::mem::offset_of!(_zend_try_catch_element, try_op) - 0usize];
["Offset of field: _zend_try_catch_element::catch_op"]
[::std::mem::offset_of!(_zend_try_catch_element, catch_op) - 4usize];
};
pub type zend_try_catch_element = _zend_try_catch_element;
extern "C" {
pub fn zend_visibility_string(fn_flags: zend_uint) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_property_info {
pub flags: zend_uint,
pub name: *const ::std::os::raw::c_char,
pub name_length: ::std::os::raw::c_int,
pub h: ulong,
pub offset: ::std::os::raw::c_int,
pub doc_comment: *const ::std::os::raw::c_char,
pub doc_comment_len: ::std::os::raw::c_int,
pub ce: *mut zend_class_entry,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_property_info"][::std::mem::size_of::<_zend_property_info>() - 64usize];
["Alignment of _zend_property_info"][::std::mem::align_of::<_zend_property_info>() - 8usize];
["Offset of field: _zend_property_info::flags"]
[::std::mem::offset_of!(_zend_property_info, flags) - 0usize];
["Offset of field: _zend_property_info::name"]
[::std::mem::offset_of!(_zend_property_info, name) - 8usize];
["Offset of field: _zend_property_info::name_length"]
[::std::mem::offset_of!(_zend_property_info, name_length) - 16usize];
["Offset of field: _zend_property_info::h"]
[::std::mem::offset_of!(_zend_property_info, h) - 24usize];
["Offset of field: _zend_property_info::offset"]
[::std::mem::offset_of!(_zend_property_info, offset) - 32usize];
["Offset of field: _zend_property_info::doc_comment"]
[::std::mem::offset_of!(_zend_property_info, doc_comment) - 40usize];
["Offset of field: _zend_property_info::doc_comment_len"]
[::std::mem::offset_of!(_zend_property_info, doc_comment_len) - 48usize];
["Offset of field: _zend_property_info::ce"]
[::std::mem::offset_of!(_zend_property_info, ce) - 56usize];
};
pub type zend_property_info = _zend_property_info;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_arg_info {
pub name: *const ::std::os::raw::c_char,
pub name_len: zend_uint,
pub class_name: *const ::std::os::raw::c_char,
pub class_name_len: zend_uint,
pub type_hint: zend_uchar,
pub allow_null: zend_bool,
pub pass_by_reference: zend_bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_arg_info"][::std::mem::size_of::<_zend_arg_info>() - 32usize];
["Alignment of _zend_arg_info"][::std::mem::align_of::<_zend_arg_info>() - 8usize];
["Offset of field: _zend_arg_info::name"]
[::std::mem::offset_of!(_zend_arg_info, name) - 0usize];
["Offset of field: _zend_arg_info::name_len"]
[::std::mem::offset_of!(_zend_arg_info, name_len) - 8usize];
["Offset of field: _zend_arg_info::class_name"]
[::std::mem::offset_of!(_zend_arg_info, class_name) - 16usize];
["Offset of field: _zend_arg_info::class_name_len"]
[::std::mem::offset_of!(_zend_arg_info, class_name_len) - 24usize];
["Offset of field: _zend_arg_info::type_hint"]
[::std::mem::offset_of!(_zend_arg_info, type_hint) - 28usize];
["Offset of field: _zend_arg_info::allow_null"]
[::std::mem::offset_of!(_zend_arg_info, allow_null) - 29usize];
["Offset of field: _zend_arg_info::pass_by_reference"]
[::std::mem::offset_of!(_zend_arg_info, pass_by_reference) - 30usize];
};
pub type zend_arg_info = _zend_arg_info;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_internal_function_info {
pub _name: *const ::std::os::raw::c_char,
pub _name_len: zend_uint,
pub _class_name: *const ::std::os::raw::c_char,
pub required_num_args: zend_uint,
pub _type_hint: zend_uchar,
pub return_reference: zend_bool,
pub pass_rest_by_reference: zend_bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_internal_function_info"]
[::std::mem::size_of::<_zend_internal_function_info>() - 32usize];
["Alignment of _zend_internal_function_info"]
[::std::mem::align_of::<_zend_internal_function_info>() - 8usize];
["Offset of field: _zend_internal_function_info::_name"]
[::std::mem::offset_of!(_zend_internal_function_info, _name) - 0usize];
["Offset of field: _zend_internal_function_info::_name_len"]
[::std::mem::offset_of!(_zend_internal_function_info, _name_len) - 8usize];
["Offset of field: _zend_internal_function_info::_class_name"]
[::std::mem::offset_of!(_zend_internal_function_info, _class_name) - 16usize];
["Offset of field: _zend_internal_function_info::required_num_args"]
[::std::mem::offset_of!(_zend_internal_function_info, required_num_args) - 24usize];
["Offset of field: _zend_internal_function_info::_type_hint"]
[::std::mem::offset_of!(_zend_internal_function_info, _type_hint) - 28usize];
["Offset of field: _zend_internal_function_info::return_reference"]
[::std::mem::offset_of!(_zend_internal_function_info, return_reference) - 29usize];
["Offset of field: _zend_internal_function_info::pass_rest_by_reference"]
[::std::mem::offset_of!(_zend_internal_function_info, pass_rest_by_reference) - 30usize];
};
pub type zend_internal_function_info = _zend_internal_function_info;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_compiled_variable {
pub name: *const ::std::os::raw::c_char,
pub name_len: ::std::os::raw::c_int,
pub hash_value: ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_compiled_variable"][::std::mem::size_of::<_zend_compiled_variable>() - 24usize];
["Alignment of _zend_compiled_variable"]
[::std::mem::align_of::<_zend_compiled_variable>() - 8usize];
["Offset of field: _zend_compiled_variable::name"]
[::std::mem::offset_of!(_zend_compiled_variable, name) - 0usize];
["Offset of field: _zend_compiled_variable::name_len"]
[::std::mem::offset_of!(_zend_compiled_variable, name_len) - 8usize];
["Offset of field: _zend_compiled_variable::hash_value"]
[::std::mem::offset_of!(_zend_compiled_variable, hash_value) - 16usize];
};
pub type zend_compiled_variable = _zend_compiled_variable;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_op_array {
pub type_: zend_uchar,
pub function_name: *const ::std::os::raw::c_char,
pub scope: *mut zend_class_entry,
pub fn_flags: zend_uint,
pub prototype: *mut _zend_function,
pub num_args: zend_uint,
pub required_num_args: zend_uint,
pub arg_info: *mut zend_arg_info,
pub refcount: *mut zend_uint,
pub opcodes: *mut zend_op,
pub last: zend_uint,
pub vars: *mut zend_compiled_variable,
pub last_var: ::std::os::raw::c_int,
pub T: zend_uint,
pub brk_cont_array: *mut zend_brk_cont_element,
pub last_brk_cont: ::std::os::raw::c_int,
pub try_catch_array: *mut zend_try_catch_element,
pub last_try_catch: ::std::os::raw::c_int,
pub static_variables: *mut HashTable,
pub this_var: zend_uint,
pub filename: *const ::std::os::raw::c_char,
pub line_start: zend_uint,
pub line_end: zend_uint,
pub doc_comment: *const ::std::os::raw::c_char,
pub doc_comment_len: zend_uint,
pub early_binding: zend_uint,
pub literals: *mut zend_literal,
pub last_literal: ::std::os::raw::c_int,
pub run_time_cache: *mut *mut ::std::os::raw::c_void,
pub last_cache_slot: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_op_array"][::std::mem::size_of::<_zend_op_array>() - 240usize];
["Alignment of _zend_op_array"][::std::mem::align_of::<_zend_op_array>() - 8usize];
["Offset of field: _zend_op_array::type_"]
[::std::mem::offset_of!(_zend_op_array, type_) - 0usize];
["Offset of field: _zend_op_array::function_name"]
[::std::mem::offset_of!(_zend_op_array, function_name) - 8usize];
["Offset of field: _zend_op_array::scope"]
[::std::mem::offset_of!(_zend_op_array, scope) - 16usize];
["Offset of field: _zend_op_array::fn_flags"]
[::std::mem::offset_of!(_zend_op_array, fn_flags) - 24usize];
["Offset of field: _zend_op_array::prototype"]
[::std::mem::offset_of!(_zend_op_array, prototype) - 32usize];
["Offset of field: _zend_op_array::num_args"]
[::std::mem::offset_of!(_zend_op_array, num_args) - 40usize];
["Offset of field: _zend_op_array::required_num_args"]
[::std::mem::offset_of!(_zend_op_array, required_num_args) - 44usize];
["Offset of field: _zend_op_array::arg_info"]
[::std::mem::offset_of!(_zend_op_array, arg_info) - 48usize];
["Offset of field: _zend_op_array::refcount"]
[::std::mem::offset_of!(_zend_op_array, refcount) - 56usize];
["Offset of field: _zend_op_array::opcodes"]
[::std::mem::offset_of!(_zend_op_array, opcodes) - 64usize];
["Offset of field: _zend_op_array::last"]
[::std::mem::offset_of!(_zend_op_array, last) - 72usize];
["Offset of field: _zend_op_array::vars"]
[::std::mem::offset_of!(_zend_op_array, vars) - 80usize];
["Offset of field: _zend_op_array::last_var"]
[::std::mem::offset_of!(_zend_op_array, last_var) - 88usize];
["Offset of field: _zend_op_array::T"][::std::mem::offset_of!(_zend_op_array, T) - 92usize];
["Offset of field: _zend_op_array::brk_cont_array"]
[::std::mem::offset_of!(_zend_op_array, brk_cont_array) - 96usize];
["Offset of field: _zend_op_array::last_brk_cont"]
[::std::mem::offset_of!(_zend_op_array, last_brk_cont) - 104usize];
["Offset of field: _zend_op_array::try_catch_array"]
[::std::mem::offset_of!(_zend_op_array, try_catch_array) - 112usize];
["Offset of field: _zend_op_array::last_try_catch"]
[::std::mem::offset_of!(_zend_op_array, last_try_catch) - 120usize];
["Offset of field: _zend_op_array::static_variables"]
[::std::mem::offset_of!(_zend_op_array, static_variables) - 128usize];
["Offset of field: _zend_op_array::this_var"]
[::std::mem::offset_of!(_zend_op_array, this_var) - 136usize];
["Offset of field: _zend_op_array::filename"]
[::std::mem::offset_of!(_zend_op_array, filename) - 144usize];
["Offset of field: _zend_op_array::line_start"]
[::std::mem::offset_of!(_zend_op_array, line_start) - 152usize];
["Offset of field: _zend_op_array::line_end"]
[::std::mem::offset_of!(_zend_op_array, line_end) - 156usize];
["Offset of field: _zend_op_array::doc_comment"]
[::std::mem::offset_of!(_zend_op_array, doc_comment) - 160usize];
["Offset of field: _zend_op_array::doc_comment_len"]
[::std::mem::offset_of!(_zend_op_array, doc_comment_len) - 168usize];
["Offset of field: _zend_op_array::early_binding"]
[::std::mem::offset_of!(_zend_op_array, early_binding) - 172usize];
["Offset of field: _zend_op_array::literals"]
[::std::mem::offset_of!(_zend_op_array, literals) - 176usize];
["Offset of field: _zend_op_array::last_literal"]
[::std::mem::offset_of!(_zend_op_array, last_literal) - 184usize];
["Offset of field: _zend_op_array::run_time_cache"]
[::std::mem::offset_of!(_zend_op_array, run_time_cache) - 192usize];
["Offset of field: _zend_op_array::last_cache_slot"]
[::std::mem::offset_of!(_zend_op_array, last_cache_slot) - 200usize];
["Offset of field: _zend_op_array::reserved"]
[::std::mem::offset_of!(_zend_op_array, reserved) - 208usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_internal_function {
pub type_: zend_uchar,
pub function_name: *const ::std::os::raw::c_char,
pub scope: *mut zend_class_entry,
pub fn_flags: zend_uint,
pub prototype: *mut _zend_function,
pub num_args: zend_uint,
pub required_num_args: zend_uint,
pub arg_info: *mut zend_arg_info,
pub handler: ::std::option::Option<
unsafe extern "C" fn(
ht: ::std::os::raw::c_int,
return_value: *mut zval,
return_value_ptr: *mut *mut zval,
this_ptr: *mut zval,
return_value_used: ::std::os::raw::c_int,
),
>,
pub module: *mut _zend_module_entry,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_internal_function"][::std::mem::size_of::<_zend_internal_function>() - 72usize];
["Alignment of _zend_internal_function"]
[::std::mem::align_of::<_zend_internal_function>() - 8usize];
["Offset of field: _zend_internal_function::type_"]
[::std::mem::offset_of!(_zend_internal_function, type_) - 0usize];
["Offset of field: _zend_internal_function::function_name"]
[::std::mem::offset_of!(_zend_internal_function, function_name) - 8usize];
["Offset of field: _zend_internal_function::scope"]
[::std::mem::offset_of!(_zend_internal_function, scope) - 16usize];
["Offset of field: _zend_internal_function::fn_flags"]
[::std::mem::offset_of!(_zend_internal_function, fn_flags) - 24usize];
["Offset of field: _zend_internal_function::prototype"]
[::std::mem::offset_of!(_zend_internal_function, prototype) - 32usize];
["Offset of field: _zend_internal_function::num_args"]
[::std::mem::offset_of!(_zend_internal_function, num_args) - 40usize];
["Offset of field: _zend_internal_function::required_num_args"]
[::std::mem::offset_of!(_zend_internal_function, required_num_args) - 44usize];
["Offset of field: _zend_internal_function::arg_info"]
[::std::mem::offset_of!(_zend_internal_function, arg_info) - 48usize];
["Offset of field: _zend_internal_function::handler"]
[::std::mem::offset_of!(_zend_internal_function, handler) - 56usize];
["Offset of field: _zend_internal_function::module"]
[::std::mem::offset_of!(_zend_internal_function, module) - 64usize];
};
pub type zend_internal_function = _zend_internal_function;
#[repr(C)]
#[derive(Copy, Clone)]
pub union _zend_function {
pub type_: zend_uchar,
pub common: _zend_function__bindgen_ty_1,
pub op_array: zend_op_array,
pub internal_function: zend_internal_function,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_function__bindgen_ty_1 {
pub type_: zend_uchar,
pub function_name: *const ::std::os::raw::c_char,
pub scope: *mut zend_class_entry,
pub fn_flags: zend_uint,
pub prototype: *mut _zend_function,
pub num_args: zend_uint,
pub required_num_args: zend_uint,
pub arg_info: *mut zend_arg_info,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_function__bindgen_ty_1"]
[::std::mem::size_of::<_zend_function__bindgen_ty_1>() - 56usize];
["Alignment of _zend_function__bindgen_ty_1"]
[::std::mem::align_of::<_zend_function__bindgen_ty_1>() - 8usize];
["Offset of field: _zend_function__bindgen_ty_1::type_"]
[::std::mem::offset_of!(_zend_function__bindgen_ty_1, type_) - 0usize];
["Offset of field: _zend_function__bindgen_ty_1::function_name"]
[::std::mem::offset_of!(_zend_function__bindgen_ty_1, function_name) - 8usize];
["Offset of field: _zend_function__bindgen_ty_1::scope"]
[::std::mem::offset_of!(_zend_function__bindgen_ty_1, scope) - 16usize];
["Offset of field: _zend_function__bindgen_ty_1::fn_flags"]
[::std::mem::offset_of!(_zend_function__bindgen_ty_1, fn_flags) - 24usize];
["Offset of field: _zend_function__bindgen_ty_1::prototype"]
[::std::mem::offset_of!(_zend_function__bindgen_ty_1, prototype) - 32usize];
["Offset of field: _zend_function__bindgen_ty_1::num_args"]
[::std::mem::offset_of!(_zend_function__bindgen_ty_1, num_args) - 40usize];
["Offset of field: _zend_function__bindgen_ty_1::required_num_args"]
[::std::mem::offset_of!(_zend_function__bindgen_ty_1, required_num_args) - 44usize];
["Offset of field: _zend_function__bindgen_ty_1::arg_info"]
[::std::mem::offset_of!(_zend_function__bindgen_ty_1, arg_info) - 48usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_function"][::std::mem::size_of::<_zend_function>() - 240usize];
["Alignment of _zend_function"][::std::mem::align_of::<_zend_function>() - 8usize];
["Offset of field: _zend_function::type_"]
[::std::mem::offset_of!(_zend_function, type_) - 0usize];
["Offset of field: _zend_function::common"]
[::std::mem::offset_of!(_zend_function, common) - 0usize];
["Offset of field: _zend_function::op_array"]
[::std::mem::offset_of!(_zend_function, op_array) - 0usize];
["Offset of field: _zend_function::internal_function"]
[::std::mem::offset_of!(_zend_function, internal_function) - 0usize];
};
pub type zend_function = _zend_function;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_function_state {
pub function: *mut zend_function,
pub arguments: *mut *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_function_state"][::std::mem::size_of::<_zend_function_state>() - 16usize];
["Alignment of _zend_function_state"][::std::mem::align_of::<_zend_function_state>() - 8usize];
["Offset of field: _zend_function_state::function"]
[::std::mem::offset_of!(_zend_function_state, function) - 0usize];
["Offset of field: _zend_function_state::arguments"]
[::std::mem::offset_of!(_zend_function_state, arguments) - 8usize];
};
pub type zend_function_state = _zend_function_state;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _zend_switch_entry {
pub cond: znode,
pub default_case: ::std::os::raw::c_int,
pub control_var: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_switch_entry"][::std::mem::size_of::<_zend_switch_entry>() - 48usize];
["Alignment of _zend_switch_entry"][::std::mem::align_of::<_zend_switch_entry>() - 8usize];
["Offset of field: _zend_switch_entry::cond"]
[::std::mem::offset_of!(_zend_switch_entry, cond) - 0usize];
["Offset of field: _zend_switch_entry::default_case"]
[::std::mem::offset_of!(_zend_switch_entry, default_case) - 40usize];
["Offset of field: _zend_switch_entry::control_var"]
[::std::mem::offset_of!(_zend_switch_entry, control_var) - 44usize];
};
pub type zend_switch_entry = _zend_switch_entry;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_execute_data {
pub opline: *mut _zend_op,
pub function_state: zend_function_state,
pub fbc: *mut zend_function,
pub called_scope: *mut zend_class_entry,
pub op_array: *mut zend_op_array,
pub object: *mut zval,
pub Ts: *mut _temp_variable,
pub CVs: *mut *mut *mut zval,
pub symbol_table: *mut HashTable,
pub prev_execute_data: *mut _zend_execute_data,
pub old_error_reporting: *mut zval,
pub nested: zend_bool,
pub original_return_value: *mut *mut zval,
pub current_scope: *mut zend_class_entry,
pub current_called_scope: *mut zend_class_entry,
pub current_this: *mut zval,
pub current_object: *mut zval,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_execute_data"][::std::mem::size_of::<_zend_execute_data>() - 144usize];
["Alignment of _zend_execute_data"][::std::mem::align_of::<_zend_execute_data>() - 8usize];
["Offset of field: _zend_execute_data::opline"]
[::std::mem::offset_of!(_zend_execute_data, opline) - 0usize];
["Offset of field: _zend_execute_data::function_state"]
[::std::mem::offset_of!(_zend_execute_data, function_state) - 8usize];
["Offset of field: _zend_execute_data::fbc"]
[::std::mem::offset_of!(_zend_execute_data, fbc) - 24usize];
["Offset of field: _zend_execute_data::called_scope"]
[::std::mem::offset_of!(_zend_execute_data, called_scope) - 32usize];
["Offset of field: _zend_execute_data::op_array"]
[::std::mem::offset_of!(_zend_execute_data, op_array) - 40usize];
["Offset of field: _zend_execute_data::object"]
[::std::mem::offset_of!(_zend_execute_data, object) - 48usize];
["Offset of field: _zend_execute_data::Ts"]
[::std::mem::offset_of!(_zend_execute_data, Ts) - 56usize];
["Offset of field: _zend_execute_data::CVs"]
[::std::mem::offset_of!(_zend_execute_data, CVs) - 64usize];
["Offset of field: _zend_execute_data::symbol_table"]
[::std::mem::offset_of!(_zend_execute_data, symbol_table) - 72usize];
["Offset of field: _zend_execute_data::prev_execute_data"]
[::std::mem::offset_of!(_zend_execute_data, prev_execute_data) - 80usize];
["Offset of field: _zend_execute_data::old_error_reporting"]
[::std::mem::offset_of!(_zend_execute_data, old_error_reporting) - 88usize];
["Offset of field: _zend_execute_data::nested"]
[::std::mem::offset_of!(_zend_execute_data, nested) - 96usize];
["Offset of field: _zend_execute_data::original_return_value"]
[::std::mem::offset_of!(_zend_execute_data, original_return_value) - 104usize];
["Offset of field: _zend_execute_data::current_scope"]
[::std::mem::offset_of!(_zend_execute_data, current_scope) - 112usize];
["Offset of field: _zend_execute_data::current_called_scope"]
[::std::mem::offset_of!(_zend_execute_data, current_called_scope) - 120usize];
["Offset of field: _zend_execute_data::current_this"]
[::std::mem::offset_of!(_zend_execute_data, current_this) - 128usize];
["Offset of field: _zend_execute_data::current_object"]
[::std::mem::offset_of!(_zend_execute_data, current_object) - 136usize];
};
pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __jmp_buf_tag {
pub __jmpbuf: __jmp_buf,
pub __mask_was_saved: ::std::os::raw::c_int,
pub __saved_mask: __sigset_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __jmp_buf_tag"][::std::mem::size_of::<__jmp_buf_tag>() - 200usize];
["Alignment of __jmp_buf_tag"][::std::mem::align_of::<__jmp_buf_tag>() - 8usize];
["Offset of field: __jmp_buf_tag::__jmpbuf"]
[::std::mem::offset_of!(__jmp_buf_tag, __jmpbuf) - 0usize];
["Offset of field: __jmp_buf_tag::__mask_was_saved"]
[::std::mem::offset_of!(__jmp_buf_tag, __mask_was_saved) - 64usize];
["Offset of field: __jmp_buf_tag::__saved_mask"]
[::std::mem::offset_of!(__jmp_buf_tag, __saved_mask) - 72usize];
};
pub type jmp_buf = [__jmp_buf_tag; 1usize];
pub type zend_compiler_globals = _zend_compiler_globals;
pub type zend_executor_globals = _zend_executor_globals;
pub type zend_php_scanner_globals = _zend_php_scanner_globals;
pub type zend_ini_scanner_globals = _zend_ini_scanner_globals;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _zend_compiler_globals {
pub bp_stack: zend_stack,
pub switch_cond_stack: zend_stack,
pub foreach_copy_stack: zend_stack,
pub object_stack: zend_stack,
pub declare_stack: zend_stack,
pub active_class_entry: *mut zend_class_entry,
pub list_llist: zend_llist,
pub dimension_llist: zend_llist,
pub list_stack: zend_stack,
pub function_call_stack: zend_stack,
pub compiled_filename: *mut ::std::os::raw::c_char,
pub zend_lineno: ::std::os::raw::c_int,
pub heredoc: *mut ::std::os::raw::c_char,
pub heredoc_len: ::std::os::raw::c_int,
pub active_op_array: *mut zend_op_array,
pub function_table: *mut HashTable,
pub class_table: *mut HashTable,
pub filenames_table: HashTable,
pub auto_globals: *mut HashTable,
pub parse_error: zend_bool,
pub in_compilation: zend_bool,
pub short_tags: zend_bool,
pub asp_tags: zend_bool,
pub declarables: zend_declarables,
pub unclean_shutdown: zend_bool,
pub ini_parser_unbuffered_errors: zend_bool,
pub open_files: zend_llist,
pub catch_begin: ::std::os::raw::c_long,
pub ini_parser_param: *mut _zend_ini_parser_param,
pub interactive: ::std::os::raw::c_int,
pub start_lineno: zend_uint,
pub increment_lineno: zend_bool,
pub implementing_class: znode,
pub access_type: zend_uint,
pub doc_comment: *mut ::std::os::raw::c_char,
pub doc_comment_len: zend_uint,
pub compiler_options: zend_uint,
pub current_namespace: *mut zval,
pub current_import: *mut HashTable,
pub in_namespace: zend_bool,
pub has_bracketed_namespaces: zend_bool,
pub context: zend_compiler_context,
pub context_stack: zend_stack,
pub interned_strings_start: *mut ::std::os::raw::c_char,
pub interned_strings_end: *mut ::std::os::raw::c_char,
pub interned_strings_top: *mut ::std::os::raw::c_char,
pub interned_strings_snapshot_top: *mut ::std::os::raw::c_char,
pub interned_strings: HashTable,
pub script_encoding_list: *mut *const zend_encoding,
pub script_encoding_list_size: usize,
pub multibyte: zend_bool,
pub detect_unicode: zend_bool,
pub encoding_declared: zend_bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_compiler_globals"][::std::mem::size_of::<_zend_compiler_globals>() - 760usize];
["Alignment of _zend_compiler_globals"]
[::std::mem::align_of::<_zend_compiler_globals>() - 8usize];
["Offset of field: _zend_compiler_globals::bp_stack"]
[::std::mem::offset_of!(_zend_compiler_globals, bp_stack) - 0usize];
["Offset of field: _zend_compiler_globals::switch_cond_stack"]
[::std::mem::offset_of!(_zend_compiler_globals, switch_cond_stack) - 16usize];
["Offset of field: _zend_compiler_globals::foreach_copy_stack"]
[::std::mem::offset_of!(_zend_compiler_globals, foreach_copy_stack) - 32usize];
["Offset of field: _zend_compiler_globals::object_stack"]
[::std::mem::offset_of!(_zend_compiler_globals, object_stack) - 48usize];
["Offset of field: _zend_compiler_globals::declare_stack"]
[::std::mem::offset_of!(_zend_compiler_globals, declare_stack) - 64usize];
["Offset of field: _zend_compiler_globals::active_class_entry"]
[::std::mem::offset_of!(_zend_compiler_globals, active_class_entry) - 80usize];
["Offset of field: _zend_compiler_globals::list_llist"]
[::std::mem::offset_of!(_zend_compiler_globals, list_llist) - 88usize];
["Offset of field: _zend_compiler_globals::dimension_llist"]
[::std::mem::offset_of!(_zend_compiler_globals, dimension_llist) - 144usize];
["Offset of field: _zend_compiler_globals::list_stack"]
[::std::mem::offset_of!(_zend_compiler_globals, list_stack) - 200usize];
["Offset of field: _zend_compiler_globals::function_call_stack"]
[::std::mem::offset_of!(_zend_compiler_globals, function_call_stack) - 216usize];
["Offset of field: _zend_compiler_globals::compiled_filename"]
[::std::mem::offset_of!(_zend_compiler_globals, compiled_filename) - 232usize];
["Offset of field: _zend_compiler_globals::zend_lineno"]
[::std::mem::offset_of!(_zend_compiler_globals, zend_lineno) - 240usize];
["Offset of field: _zend_compiler_globals::heredoc"]
[::std::mem::offset_of!(_zend_compiler_globals, heredoc) - 248usize];
["Offset of field: _zend_compiler_globals::heredoc_len"]
[::std::mem::offset_of!(_zend_compiler_globals, heredoc_len) - 256usize];
["Offset of field: _zend_compiler_globals::active_op_array"]
[::std::mem::offset_of!(_zend_compiler_globals, active_op_array) - 264usize];
["Offset of field: _zend_compiler_globals::function_table"]
[::std::mem::offset_of!(_zend_compiler_globals, function_table) - 272usize];
["Offset of field: _zend_compiler_globals::class_table"]
[::std::mem::offset_of!(_zend_compiler_globals, class_table) - 280usize];
["Offset of field: _zend_compiler_globals::filenames_table"]
[::std::mem::offset_of!(_zend_compiler_globals, filenames_table) - 288usize];
["Offset of field: _zend_compiler_globals::auto_globals"]
[::std::mem::offset_of!(_zend_compiler_globals, auto_globals) - 360usize];
["Offset of field: _zend_compiler_globals::parse_error"]
[::std::mem::offset_of!(_zend_compiler_globals, parse_error) - 368usize];
["Offset of field: _zend_compiler_globals::in_compilation"]
[::std::mem::offset_of!(_zend_compiler_globals, in_compilation) - 369usize];
["Offset of field: _zend_compiler_globals::short_tags"]
[::std::mem::offset_of!(_zend_compiler_globals, short_tags) - 370usize];
["Offset of field: _zend_compiler_globals::asp_tags"]
[::std::mem::offset_of!(_zend_compiler_globals, asp_tags) - 371usize];
["Offset of field: _zend_compiler_globals::declarables"]
[::std::mem::offset_of!(_zend_compiler_globals, declarables) - 376usize];
["Offset of field: _zend_compiler_globals::unclean_shutdown"]
[::std::mem::offset_of!(_zend_compiler_globals, unclean_shutdown) - 400usize];
["Offset of field: _zend_compiler_globals::ini_parser_unbuffered_errors"]
[::std::mem::offset_of!(_zend_compiler_globals, ini_parser_unbuffered_errors) - 401usize];
["Offset of field: _zend_compiler_globals::open_files"]
[::std::mem::offset_of!(_zend_compiler_globals, open_files) - 408usize];
["Offset of field: _zend_compiler_globals::catch_begin"]
[::std::mem::offset_of!(_zend_compiler_globals, catch_begin) - 464usize];
["Offset of field: _zend_compiler_globals::ini_parser_param"]
[::std::mem::offset_of!(_zend_compiler_globals, ini_parser_param) - 472usize];
["Offset of field: _zend_compiler_globals::interactive"]
[::std::mem::offset_of!(_zend_compiler_globals, interactive) - 480usize];
["Offset of field: _zend_compiler_globals::start_lineno"]
[::std::mem::offset_of!(_zend_compiler_globals, start_lineno) - 484usize];
["Offset of field: _zend_compiler_globals::increment_lineno"]
[::std::mem::offset_of!(_zend_compiler_globals, increment_lineno) - 488usize];
["Offset of field: _zend_compiler_globals::implementing_class"]
[::std::mem::offset_of!(_zend_compiler_globals, implementing_class) - 496usize];
["Offset of field: _zend_compiler_globals::access_type"]
[::std::mem::offset_of!(_zend_compiler_globals, access_type) - 536usize];
["Offset of field: _zend_compiler_globals::doc_comment"]
[::std::mem::offset_of!(_zend_compiler_globals, doc_comment) - 544usize];
["Offset of field: _zend_compiler_globals::doc_comment_len"]
[::std::mem::offset_of!(_zend_compiler_globals, doc_comment_len) - 552usize];
["Offset of field: _zend_compiler_globals::compiler_options"]
[::std::mem::offset_of!(_zend_compiler_globals, compiler_options) - 556usize];
["Offset of field: _zend_compiler_globals::current_namespace"]
[::std::mem::offset_of!(_zend_compiler_globals, current_namespace) - 560usize];
["Offset of field: _zend_compiler_globals::current_import"]
[::std::mem::offset_of!(_zend_compiler_globals, current_import) - 568usize];
["Offset of field: _zend_compiler_globals::in_namespace"]
[::std::mem::offset_of!(_zend_compiler_globals, in_namespace) - 576usize];
["Offset of field: _zend_compiler_globals::has_bracketed_namespaces"]
[::std::mem::offset_of!(_zend_compiler_globals, has_bracketed_namespaces) - 577usize];
["Offset of field: _zend_compiler_globals::context"]
[::std::mem::offset_of!(_zend_compiler_globals, context) - 584usize];
["Offset of field: _zend_compiler_globals::context_stack"]
[::std::mem::offset_of!(_zend_compiler_globals, context_stack) - 616usize];
["Offset of field: _zend_compiler_globals::interned_strings_start"]
[::std::mem::offset_of!(_zend_compiler_globals, interned_strings_start) - 632usize];
["Offset of field: _zend_compiler_globals::interned_strings_end"]
[::std::mem::offset_of!(_zend_compiler_globals, interned_strings_end) - 640usize];
["Offset of field: _zend_compiler_globals::interned_strings_top"]
[::std::mem::offset_of!(_zend_compiler_globals, interned_strings_top) - 648usize];
["Offset of field: _zend_compiler_globals::interned_strings_snapshot_top"]
[::std::mem::offset_of!(_zend_compiler_globals, interned_strings_snapshot_top) - 656usize];
["Offset of field: _zend_compiler_globals::interned_strings"]
[::std::mem::offset_of!(_zend_compiler_globals, interned_strings) - 664usize];
["Offset of field: _zend_compiler_globals::script_encoding_list"]
[::std::mem::offset_of!(_zend_compiler_globals, script_encoding_list) - 736usize];
["Offset of field: _zend_compiler_globals::script_encoding_list_size"]
[::std::mem::offset_of!(_zend_compiler_globals, script_encoding_list_size) - 744usize];
["Offset of field: _zend_compiler_globals::multibyte"]
[::std::mem::offset_of!(_zend_compiler_globals, multibyte) - 752usize];
["Offset of field: _zend_compiler_globals::detect_unicode"]
[::std::mem::offset_of!(_zend_compiler_globals, detect_unicode) - 753usize];
["Offset of field: _zend_compiler_globals::encoding_declared"]
[::std::mem::offset_of!(_zend_compiler_globals, encoding_declared) - 754usize];
};
extern "C" {
pub static mut compiler_globals: _zend_compiler_globals;
}
extern "C" {
pub fn zendparse() -> ::std::os::raw::c_int;
}
extern "C" {
pub static mut executor_globals: zend_executor_globals;
}
extern "C" {
pub static mut language_scanner_globals: zend_php_scanner_globals;
}
extern "C" {
pub static mut ini_scanner_globals: zend_ini_scanner_globals;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_stack {
pub top: ::std::os::raw::c_int,
pub max: ::std::os::raw::c_int,
pub elements: *mut *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_stack"][::std::mem::size_of::<_zend_stack>() - 16usize];
["Alignment of _zend_stack"][::std::mem::align_of::<_zend_stack>() - 8usize];
["Offset of field: _zend_stack::top"][::std::mem::offset_of!(_zend_stack, top) - 0usize];
["Offset of field: _zend_stack::max"][::std::mem::offset_of!(_zend_stack, max) - 4usize];
["Offset of field: _zend_stack::elements"]
[::std::mem::offset_of!(_zend_stack, elements) - 8usize];
};
pub type zend_stack = _zend_stack;
extern "C" {
pub fn zend_stack_init(stack: *mut zend_stack) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_stack_push(
stack: *mut zend_stack,
element: *const ::std::os::raw::c_void,
size: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_stack_top(
stack: *const zend_stack,
element: *mut *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_stack_del_top(stack: *mut zend_stack) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_stack_int_top(stack: *const zend_stack) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_stack_is_empty(stack: *const zend_stack) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_stack_destroy(stack: *mut zend_stack) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_stack_base(stack: *const zend_stack) -> *mut *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn zend_stack_count(stack: *const zend_stack) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_stack_apply(
stack: *mut zend_stack,
type_: ::std::os::raw::c_int,
apply_function: ::std::option::Option<
unsafe extern "C" fn(element: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>,
);
}
extern "C" {
pub fn zend_stack_apply_with_argument(
stack: *mut zend_stack,
type_: ::std::os::raw::c_int,
apply_function: ::std::option::Option<
unsafe extern "C" fn(
element: *mut ::std::os::raw::c_void,
arg: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
arg: *mut ::std::os::raw::c_void,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_ptr_stack {
pub top: ::std::os::raw::c_int,
pub max: ::std::os::raw::c_int,
pub elements: *mut *mut ::std::os::raw::c_void,
pub top_element: *mut *mut ::std::os::raw::c_void,
pub persistent: zend_bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_ptr_stack"][::std::mem::size_of::<_zend_ptr_stack>() - 32usize];
["Alignment of _zend_ptr_stack"][::std::mem::align_of::<_zend_ptr_stack>() - 8usize];
["Offset of field: _zend_ptr_stack::top"]
[::std::mem::offset_of!(_zend_ptr_stack, top) - 0usize];
["Offset of field: _zend_ptr_stack::max"]
[::std::mem::offset_of!(_zend_ptr_stack, max) - 4usize];
["Offset of field: _zend_ptr_stack::elements"]
[::std::mem::offset_of!(_zend_ptr_stack, elements) - 8usize];
["Offset of field: _zend_ptr_stack::top_element"]
[::std::mem::offset_of!(_zend_ptr_stack, top_element) - 16usize];
["Offset of field: _zend_ptr_stack::persistent"]
[::std::mem::offset_of!(_zend_ptr_stack, persistent) - 24usize];
};
pub type zend_ptr_stack = _zend_ptr_stack;
extern "C" {
pub fn zend_ptr_stack_init(stack: *mut zend_ptr_stack);
}
extern "C" {
pub fn zend_ptr_stack_init_ex(stack: *mut zend_ptr_stack, persistent: zend_bool);
}
extern "C" {
pub fn zend_ptr_stack_n_push(stack: *mut zend_ptr_stack, count: ::std::os::raw::c_int, ...);
}
extern "C" {
pub fn zend_ptr_stack_n_pop(stack: *mut zend_ptr_stack, count: ::std::os::raw::c_int, ...);
}
extern "C" {
pub fn zend_ptr_stack_destroy(stack: *mut zend_ptr_stack);
}
extern "C" {
pub fn zend_ptr_stack_apply(
stack: *mut zend_ptr_stack,
func: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
);
}
extern "C" {
pub fn zend_ptr_stack_clean(
stack: *mut zend_ptr_stack,
func: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
free_elements: zend_bool,
);
}
extern "C" {
pub fn zend_ptr_stack_num_elements(stack: *mut zend_ptr_stack) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_object_std_init(object: *mut zend_object, ce: *mut zend_class_entry);
}
extern "C" {
pub fn zend_object_std_dtor(object: *mut zend_object);
}
extern "C" {
pub fn zend_objects_new(
object: *mut *mut zend_object,
class_type: *mut zend_class_entry,
) -> zend_object_value;
}
extern "C" {
pub fn zend_objects_destroy_object(object: *mut zend_object, handle: zend_object_handle);
}
extern "C" {
pub fn zend_objects_get_address(object: *const zval) -> *mut zend_object;
}
extern "C" {
pub fn zend_objects_clone_members(
new_object: *mut zend_object,
new_obj_val: zend_object_value,
old_object: *mut zend_object,
handle: zend_object_handle,
);
}
extern "C" {
pub fn zend_objects_clone_obj(object: *mut zval) -> zend_object_value;
}
extern "C" {
pub fn zend_objects_free_object_storage(object: *mut zend_object);
}
pub type zend_objects_store_dtor_t = ::std::option::Option<
unsafe extern "C" fn(object: *mut ::std::os::raw::c_void, handle: zend_object_handle),
>;
pub type zend_objects_free_object_storage_t =
::std::option::Option<unsafe extern "C" fn(object: *mut ::std::os::raw::c_void)>;
pub type zend_objects_store_clone_t = ::std::option::Option<
unsafe extern "C" fn(
object: *mut ::std::os::raw::c_void,
object_clone: *mut *mut ::std::os::raw::c_void,
),
>;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _zend_object_store_bucket {
pub destructor_called: zend_bool,
pub valid: zend_bool,
pub apply_count: zend_uchar,
pub bucket: _zend_object_store_bucket__store_bucket,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _zend_object_store_bucket__store_bucket {
pub obj: _zend_object_store_bucket__store_bucket__store_object,
pub free_list: _zend_object_store_bucket__store_bucket__bindgen_ty_1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_object_store_bucket__store_bucket__store_object {
pub object: *mut ::std::os::raw::c_void,
pub dtor: zend_objects_store_dtor_t,
pub free_storage: zend_objects_free_object_storage_t,
pub clone: zend_objects_store_clone_t,
pub handlers: *const zend_object_handlers,
pub refcount: zend_uint,
pub buffered: *mut gc_root_buffer,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_object_store_bucket__store_bucket__store_object"]
[::std::mem::size_of::<_zend_object_store_bucket__store_bucket__store_object>() - 56usize];
["Alignment of _zend_object_store_bucket__store_bucket__store_object"]
[::std::mem::align_of::<_zend_object_store_bucket__store_bucket__store_object>() - 8usize];
["Offset of field: _zend_object_store_bucket__store_bucket__store_object::object"][::std::mem::offset_of!(
_zend_object_store_bucket__store_bucket__store_object,
object
) - 0usize];
["Offset of field: _zend_object_store_bucket__store_bucket__store_object::dtor"][::std::mem::offset_of!(
_zend_object_store_bucket__store_bucket__store_object,
dtor
) - 8usize];
["Offset of field: _zend_object_store_bucket__store_bucket__store_object::free_storage"][::std::mem::offset_of!(
_zend_object_store_bucket__store_bucket__store_object,
free_storage
)
- 16usize];
["Offset of field: _zend_object_store_bucket__store_bucket__store_object::clone"][::std::mem::offset_of!(
_zend_object_store_bucket__store_bucket__store_object,
clone
) - 24usize];
["Offset of field: _zend_object_store_bucket__store_bucket__store_object::handlers"][::std::mem::offset_of!(
_zend_object_store_bucket__store_bucket__store_object,
handlers
)
- 32usize];
["Offset of field: _zend_object_store_bucket__store_bucket__store_object::refcount"][::std::mem::offset_of!(
_zend_object_store_bucket__store_bucket__store_object,
refcount
)
- 40usize];
["Offset of field: _zend_object_store_bucket__store_bucket__store_object::buffered"][::std::mem::offset_of!(
_zend_object_store_bucket__store_bucket__store_object,
buffered
)
- 48usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_object_store_bucket__store_bucket__bindgen_ty_1 {
pub next: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_object_store_bucket__store_bucket__bindgen_ty_1"]
[::std::mem::size_of::<_zend_object_store_bucket__store_bucket__bindgen_ty_1>() - 4usize];
["Alignment of _zend_object_store_bucket__store_bucket__bindgen_ty_1"]
[::std::mem::align_of::<_zend_object_store_bucket__store_bucket__bindgen_ty_1>() - 4usize];
["Offset of field: _zend_object_store_bucket__store_bucket__bindgen_ty_1::next"][::std::mem::offset_of!(
_zend_object_store_bucket__store_bucket__bindgen_ty_1,
next
) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_object_store_bucket__store_bucket"]
[::std::mem::size_of::<_zend_object_store_bucket__store_bucket>() - 56usize];
["Alignment of _zend_object_store_bucket__store_bucket"]
[::std::mem::align_of::<_zend_object_store_bucket__store_bucket>() - 8usize];
["Offset of field: _zend_object_store_bucket__store_bucket::obj"]
[::std::mem::offset_of!(_zend_object_store_bucket__store_bucket, obj) - 0usize];
["Offset of field: _zend_object_store_bucket__store_bucket::free_list"]
[::std::mem::offset_of!(_zend_object_store_bucket__store_bucket, free_list) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_object_store_bucket"]
[::std::mem::size_of::<_zend_object_store_bucket>() - 64usize];
["Alignment of _zend_object_store_bucket"]
[::std::mem::align_of::<_zend_object_store_bucket>() - 8usize];
["Offset of field: _zend_object_store_bucket::destructor_called"]
[::std::mem::offset_of!(_zend_object_store_bucket, destructor_called) - 0usize];
["Offset of field: _zend_object_store_bucket::valid"]
[::std::mem::offset_of!(_zend_object_store_bucket, valid) - 1usize];
["Offset of field: _zend_object_store_bucket::apply_count"]
[::std::mem::offset_of!(_zend_object_store_bucket, apply_count) - 2usize];
["Offset of field: _zend_object_store_bucket::bucket"]
[::std::mem::offset_of!(_zend_object_store_bucket, bucket) - 8usize];
};
pub type zend_object_store_bucket = _zend_object_store_bucket;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_objects_store {
pub object_buckets: *mut zend_object_store_bucket,
pub top: zend_uint,
pub size: zend_uint,
pub free_list_head: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_objects_store"][::std::mem::size_of::<_zend_objects_store>() - 24usize];
["Alignment of _zend_objects_store"][::std::mem::align_of::<_zend_objects_store>() - 8usize];
["Offset of field: _zend_objects_store::object_buckets"]
[::std::mem::offset_of!(_zend_objects_store, object_buckets) - 0usize];
["Offset of field: _zend_objects_store::top"]
[::std::mem::offset_of!(_zend_objects_store, top) - 8usize];
["Offset of field: _zend_objects_store::size"]
[::std::mem::offset_of!(_zend_objects_store, size) - 12usize];
["Offset of field: _zend_objects_store::free_list_head"]
[::std::mem::offset_of!(_zend_objects_store, free_list_head) - 16usize];
};
pub type zend_objects_store = _zend_objects_store;
extern "C" {
pub fn zend_objects_store_init(objects: *mut zend_objects_store, init_size: zend_uint);
}
extern "C" {
pub fn zend_objects_store_call_destructors(objects: *mut zend_objects_store);
}
extern "C" {
pub fn zend_objects_store_mark_destructed(objects: *mut zend_objects_store);
}
extern "C" {
pub fn zend_objects_store_destroy(objects: *mut zend_objects_store);
}
extern "C" {
pub fn zend_objects_store_put(
object: *mut ::std::os::raw::c_void,
dtor: zend_objects_store_dtor_t,
storage: zend_objects_free_object_storage_t,
clone: zend_objects_store_clone_t,
) -> zend_object_handle;
}
extern "C" {
pub fn zend_objects_store_add_ref(object: *mut zval);
}
extern "C" {
pub fn zend_objects_store_del_ref(object: *mut zval);
}
extern "C" {
pub fn zend_objects_store_add_ref_by_handle(handle: zend_object_handle);
}
extern "C" {
pub fn zend_objects_store_del_ref_by_handle_ex(
handle: zend_object_handle,
handlers: *const zend_object_handlers,
);
}
extern "C" {
pub fn zend_objects_store_get_refcount(object: *mut zval) -> zend_uint;
}
extern "C" {
pub fn zend_objects_store_clone_obj(object: *mut zval) -> zend_object_value;
}
extern "C" {
pub fn zend_object_store_get_object(object: *const zval) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn zend_object_store_get_object_by_handle(
handle: zend_object_handle,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn zend_object_store_set_object(zobject: *mut zval, object: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn zend_object_store_ctor_failed(zobject: *mut zval);
}
extern "C" {
pub fn zend_objects_store_free_object_storage(objects: *mut zend_objects_store);
}
extern "C" {
pub fn zend_object_create_proxy(object: *mut zval, member: *mut zval) -> *mut zval;
}
extern "C" {
pub fn zend_get_std_object_handlers() -> *mut zend_object_handlers;
}
extern "C" {
pub fn zend_init_fpu();
}
extern "C" {
pub fn zend_shutdown_fpu();
}
extern "C" {
pub fn zend_ensure_fpu_mode();
}
pub type fpu_control_t = ::std::os::raw::c_ushort;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_encoding {
_unused: [u8; 0],
}
pub type zend_encoding = _zend_encoding;
pub type zend_encoding_filter = ::std::option::Option<
unsafe extern "C" fn(
str_: *mut *mut ::std::os::raw::c_uchar,
str_length: *mut usize,
buf: *const ::std::os::raw::c_uchar,
length: usize,
) -> usize,
>;
pub type zend_encoding_fetcher = ::std::option::Option<
unsafe extern "C" fn(encoding_name: *const ::std::os::raw::c_char) -> *const zend_encoding,
>;
pub type zend_encoding_name_getter = ::std::option::Option<
unsafe extern "C" fn(encoding: *const zend_encoding) -> *const ::std::os::raw::c_char,
>;
pub type zend_encoding_lexer_compatibility_checker = ::std::option::Option<
unsafe extern "C" fn(encoding: *const zend_encoding) -> ::std::os::raw::c_int,
>;
pub type zend_encoding_detector = ::std::option::Option<
unsafe extern "C" fn(
string: *const ::std::os::raw::c_uchar,
length: usize,
list: *mut *const zend_encoding,
list_size: usize,
) -> *const zend_encoding,
>;
pub type zend_encoding_converter = ::std::option::Option<
unsafe extern "C" fn(
to: *mut *mut ::std::os::raw::c_uchar,
to_length: *mut usize,
from: *const ::std::os::raw::c_uchar,
from_length: usize,
encoding_to: *const zend_encoding,
encoding_from: *const zend_encoding,
) -> usize,
>;
pub type zend_encoding_list_parser = ::std::option::Option<
unsafe extern "C" fn(
encoding_list: *const ::std::os::raw::c_char,
encoding_list_len: usize,
return_list: *mut *mut *const zend_encoding,
return_size: *mut usize,
persistent: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>;
pub type zend_encoding_internal_encoding_getter =
::std::option::Option<unsafe extern "C" fn() -> *const zend_encoding>;
pub type zend_encoding_internal_encoding_setter = ::std::option::Option<
unsafe extern "C" fn(encoding: *const zend_encoding) -> ::std::os::raw::c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_multibyte_functions {
pub provider_name: *const ::std::os::raw::c_char,
pub encoding_fetcher: zend_encoding_fetcher,
pub encoding_name_getter: zend_encoding_name_getter,
pub lexer_compatibility_checker: zend_encoding_lexer_compatibility_checker,
pub encoding_detector: zend_encoding_detector,
pub encoding_converter: zend_encoding_converter,
pub encoding_list_parser: zend_encoding_list_parser,
pub internal_encoding_getter: zend_encoding_internal_encoding_getter,
pub internal_encoding_setter: zend_encoding_internal_encoding_setter,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_multibyte_functions"]
[::std::mem::size_of::<_zend_multibyte_functions>() - 72usize];
["Alignment of _zend_multibyte_functions"]
[::std::mem::align_of::<_zend_multibyte_functions>() - 8usize];
["Offset of field: _zend_multibyte_functions::provider_name"]
[::std::mem::offset_of!(_zend_multibyte_functions, provider_name) - 0usize];
["Offset of field: _zend_multibyte_functions::encoding_fetcher"]
[::std::mem::offset_of!(_zend_multibyte_functions, encoding_fetcher) - 8usize];
["Offset of field: _zend_multibyte_functions::encoding_name_getter"]
[::std::mem::offset_of!(_zend_multibyte_functions, encoding_name_getter) - 16usize];
["Offset of field: _zend_multibyte_functions::lexer_compatibility_checker"]
[::std::mem::offset_of!(_zend_multibyte_functions, lexer_compatibility_checker) - 24usize];
["Offset of field: _zend_multibyte_functions::encoding_detector"]
[::std::mem::offset_of!(_zend_multibyte_functions, encoding_detector) - 32usize];
["Offset of field: _zend_multibyte_functions::encoding_converter"]
[::std::mem::offset_of!(_zend_multibyte_functions, encoding_converter) - 40usize];
["Offset of field: _zend_multibyte_functions::encoding_list_parser"]
[::std::mem::offset_of!(_zend_multibyte_functions, encoding_list_parser) - 48usize];
["Offset of field: _zend_multibyte_functions::internal_encoding_getter"]
[::std::mem::offset_of!(_zend_multibyte_functions, internal_encoding_getter) - 56usize];
["Offset of field: _zend_multibyte_functions::internal_encoding_setter"]
[::std::mem::offset_of!(_zend_multibyte_functions, internal_encoding_setter) - 64usize];
};
pub type zend_multibyte_functions = _zend_multibyte_functions;
extern "C" {
pub static mut zend_multibyte_encoding_utf32be: *const zend_encoding;
}
extern "C" {
pub static mut zend_multibyte_encoding_utf32le: *const zend_encoding;
}
extern "C" {
pub static mut zend_multibyte_encoding_utf16be: *const zend_encoding;
}
extern "C" {
pub static mut zend_multibyte_encoding_utf16le: *const zend_encoding;
}
extern "C" {
pub static mut zend_multibyte_encoding_utf8: *const zend_encoding;
}
extern "C" {
pub fn zend_multibyte_set_functions(
functions: *const zend_multibyte_functions,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_multibyte_get_functions() -> *const zend_multibyte_functions;
}
extern "C" {
pub fn zend_multibyte_fetch_encoding(
name: *const ::std::os::raw::c_char,
) -> *const zend_encoding;
}
extern "C" {
pub fn zend_multibyte_get_encoding_name(
encoding: *const zend_encoding,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_multibyte_check_lexer_compatibility(
encoding: *const zend_encoding,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_multibyte_encoding_detector(
string: *const ::std::os::raw::c_uchar,
length: usize,
list: *mut *const zend_encoding,
list_size: usize,
) -> *const zend_encoding;
}
extern "C" {
pub fn zend_multibyte_encoding_converter(
to: *mut *mut ::std::os::raw::c_uchar,
to_length: *mut usize,
from: *const ::std::os::raw::c_uchar,
from_length: usize,
encoding_to: *const zend_encoding,
encoding_from: *const zend_encoding,
) -> usize;
}
extern "C" {
pub fn zend_multibyte_parse_encoding_list(
encoding_list: *const ::std::os::raw::c_char,
encoding_list_len: usize,
return_list: *mut *mut *const zend_encoding,
return_size: *mut usize,
persistent: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_multibyte_get_internal_encoding() -> *const zend_encoding;
}
extern "C" {
pub fn zend_multibyte_get_script_encoding() -> *const zend_encoding;
}
extern "C" {
pub fn zend_multibyte_set_script_encoding(
encoding_list: *mut *const zend_encoding,
encoding_list_size: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_multibyte_set_internal_encoding(
encoding: *const zend_encoding,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_multibyte_set_script_encoding_by_string(
new_value: *const ::std::os::raw::c_char,
new_value_length: usize,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _zend_declarables {
pub ticks: zval,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_declarables"][::std::mem::size_of::<_zend_declarables>() - 24usize];
["Alignment of _zend_declarables"][::std::mem::align_of::<_zend_declarables>() - 8usize];
["Offset of field: _zend_declarables::ticks"]
[::std::mem::offset_of!(_zend_declarables, ticks) - 0usize];
};
pub type zend_declarables = _zend_declarables;
pub type zend_vm_stack = *mut _zend_vm_stack;
pub type zend_ini_entry = _zend_ini_entry;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _zend_executor_globals {
pub return_value_ptr_ptr: *mut *mut zval,
pub uninitialized_zval: zval,
pub uninitialized_zval_ptr: *mut zval,
pub error_zval: zval,
pub error_zval_ptr: *mut zval,
pub arg_types_stack: zend_ptr_stack,
pub symtable_cache: [*mut HashTable; 32usize],
pub symtable_cache_limit: *mut *mut HashTable,
pub symtable_cache_ptr: *mut *mut HashTable,
pub opline_ptr: *mut *mut zend_op,
pub active_symbol_table: *mut HashTable,
pub symbol_table: HashTable,
pub included_files: HashTable,
pub bailout: *mut jmp_buf,
pub error_reporting: ::std::os::raw::c_int,
pub orig_error_reporting: ::std::os::raw::c_int,
pub exit_status: ::std::os::raw::c_int,
pub active_op_array: *mut zend_op_array,
pub function_table: *mut HashTable,
pub class_table: *mut HashTable,
pub zend_constants: *mut HashTable,
pub scope: *mut zend_class_entry,
pub called_scope: *mut zend_class_entry,
pub This: *mut zval,
pub precision: ::std::os::raw::c_long,
pub ticks_count: ::std::os::raw::c_int,
pub in_execution: zend_bool,
pub in_autoload: *mut HashTable,
pub autoload_func: *mut zend_function,
pub full_tables_cleanup: zend_bool,
pub no_extensions: zend_bool,
pub regular_list: HashTable,
pub persistent_list: HashTable,
pub argument_stack: zend_vm_stack,
pub user_error_handler_error_reporting: ::std::os::raw::c_int,
pub user_error_handler: *mut zval,
pub user_exception_handler: *mut zval,
pub user_error_handlers_error_reporting: zend_stack,
pub user_error_handlers: zend_ptr_stack,
pub user_exception_handlers: zend_ptr_stack,
pub error_handling: zend_error_handling_t,
pub exception_class: *mut zend_class_entry,
pub timeout_seconds: ::std::os::raw::c_int,
pub lambda_count: ::std::os::raw::c_int,
pub ini_directives: *mut HashTable,
pub modified_ini_directives: *mut HashTable,
pub error_reporting_ini_entry: *mut zend_ini_entry,
pub objects_store: zend_objects_store,
pub exception: *mut zval,
pub prev_exception: *mut zval,
pub opline_before_exception: *mut zend_op,
pub exception_op: [zend_op; 3usize],
pub current_execute_data: *mut _zend_execute_data,
pub current_module: *mut _zend_module_entry,
pub std_property_info: zend_property_info,
pub active: zend_bool,
pub start_op: *mut zend_op,
pub saved_fpu_cw_ptr: *mut ::std::os::raw::c_void,
pub saved_fpu_cw: fpu_control_t,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_executor_globals"][::std::mem::size_of::<_zend_executor_globals>() - 1296usize];
["Alignment of _zend_executor_globals"]
[::std::mem::align_of::<_zend_executor_globals>() - 8usize];
["Offset of field: _zend_executor_globals::return_value_ptr_ptr"]
[::std::mem::offset_of!(_zend_executor_globals, return_value_ptr_ptr) - 0usize];
["Offset of field: _zend_executor_globals::uninitialized_zval"]
[::std::mem::offset_of!(_zend_executor_globals, uninitialized_zval) - 8usize];
["Offset of field: _zend_executor_globals::uninitialized_zval_ptr"]
[::std::mem::offset_of!(_zend_executor_globals, uninitialized_zval_ptr) - 32usize];
["Offset of field: _zend_executor_globals::error_zval"]
[::std::mem::offset_of!(_zend_executor_globals, error_zval) - 40usize];
["Offset of field: _zend_executor_globals::error_zval_ptr"]
[::std::mem::offset_of!(_zend_executor_globals, error_zval_ptr) - 64usize];
["Offset of field: _zend_executor_globals::arg_types_stack"]
[::std::mem::offset_of!(_zend_executor_globals, arg_types_stack) - 72usize];
["Offset of field: _zend_executor_globals::symtable_cache"]
[::std::mem::offset_of!(_zend_executor_globals, symtable_cache) - 104usize];
["Offset of field: _zend_executor_globals::symtable_cache_limit"]
[::std::mem::offset_of!(_zend_executor_globals, symtable_cache_limit) - 360usize];
["Offset of field: _zend_executor_globals::symtable_cache_ptr"]
[::std::mem::offset_of!(_zend_executor_globals, symtable_cache_ptr) - 368usize];
["Offset of field: _zend_executor_globals::opline_ptr"]
[::std::mem::offset_of!(_zend_executor_globals, opline_ptr) - 376usize];
["Offset of field: _zend_executor_globals::active_symbol_table"]
[::std::mem::offset_of!(_zend_executor_globals, active_symbol_table) - 384usize];
["Offset of field: _zend_executor_globals::symbol_table"]
[::std::mem::offset_of!(_zend_executor_globals, symbol_table) - 392usize];
["Offset of field: _zend_executor_globals::included_files"]
[::std::mem::offset_of!(_zend_executor_globals, included_files) - 464usize];
["Offset of field: _zend_executor_globals::bailout"]
[::std::mem::offset_of!(_zend_executor_globals, bailout) - 536usize];
["Offset of field: _zend_executor_globals::error_reporting"]
[::std::mem::offset_of!(_zend_executor_globals, error_reporting) - 544usize];
["Offset of field: _zend_executor_globals::orig_error_reporting"]
[::std::mem::offset_of!(_zend_executor_globals, orig_error_reporting) - 548usize];
["Offset of field: _zend_executor_globals::exit_status"]
[::std::mem::offset_of!(_zend_executor_globals, exit_status) - 552usize];
["Offset of field: _zend_executor_globals::active_op_array"]
[::std::mem::offset_of!(_zend_executor_globals, active_op_array) - 560usize];
["Offset of field: _zend_executor_globals::function_table"]
[::std::mem::offset_of!(_zend_executor_globals, function_table) - 568usize];
["Offset of field: _zend_executor_globals::class_table"]
[::std::mem::offset_of!(_zend_executor_globals, class_table) - 576usize];
["Offset of field: _zend_executor_globals::zend_constants"]
[::std::mem::offset_of!(_zend_executor_globals, zend_constants) - 584usize];
["Offset of field: _zend_executor_globals::scope"]
[::std::mem::offset_of!(_zend_executor_globals, scope) - 592usize];
["Offset of field: _zend_executor_globals::called_scope"]
[::std::mem::offset_of!(_zend_executor_globals, called_scope) - 600usize];
["Offset of field: _zend_executor_globals::This"]
[::std::mem::offset_of!(_zend_executor_globals, This) - 608usize];
["Offset of field: _zend_executor_globals::precision"]
[::std::mem::offset_of!(_zend_executor_globals, precision) - 616usize];
["Offset of field: _zend_executor_globals::ticks_count"]
[::std::mem::offset_of!(_zend_executor_globals, ticks_count) - 624usize];
["Offset of field: _zend_executor_globals::in_execution"]
[::std::mem::offset_of!(_zend_executor_globals, in_execution) - 628usize];
["Offset of field: _zend_executor_globals::in_autoload"]
[::std::mem::offset_of!(_zend_executor_globals, in_autoload) - 632usize];
["Offset of field: _zend_executor_globals::autoload_func"]
[::std::mem::offset_of!(_zend_executor_globals, autoload_func) - 640usize];
["Offset of field: _zend_executor_globals::full_tables_cleanup"]
[::std::mem::offset_of!(_zend_executor_globals, full_tables_cleanup) - 648usize];
["Offset of field: _zend_executor_globals::no_extensions"]
[::std::mem::offset_of!(_zend_executor_globals, no_extensions) - 649usize];
["Offset of field: _zend_executor_globals::regular_list"]
[::std::mem::offset_of!(_zend_executor_globals, regular_list) - 656usize];
["Offset of field: _zend_executor_globals::persistent_list"]
[::std::mem::offset_of!(_zend_executor_globals, persistent_list) - 728usize];
["Offset of field: _zend_executor_globals::argument_stack"]
[::std::mem::offset_of!(_zend_executor_globals, argument_stack) - 800usize];
["Offset of field: _zend_executor_globals::user_error_handler_error_reporting"][::std::mem::offset_of!(
_zend_executor_globals,
user_error_handler_error_reporting
) - 808usize];
["Offset of field: _zend_executor_globals::user_error_handler"]
[::std::mem::offset_of!(_zend_executor_globals, user_error_handler) - 816usize];
["Offset of field: _zend_executor_globals::user_exception_handler"]
[::std::mem::offset_of!(_zend_executor_globals, user_exception_handler) - 824usize];
["Offset of field: _zend_executor_globals::user_error_handlers_error_reporting"][::std::mem::offset_of!(
_zend_executor_globals,
user_error_handlers_error_reporting
) - 832usize];
["Offset of field: _zend_executor_globals::user_error_handlers"]
[::std::mem::offset_of!(_zend_executor_globals, user_error_handlers) - 848usize];
["Offset of field: _zend_executor_globals::user_exception_handlers"]
[::std::mem::offset_of!(_zend_executor_globals, user_exception_handlers) - 880usize];
["Offset of field: _zend_executor_globals::error_handling"]
[::std::mem::offset_of!(_zend_executor_globals, error_handling) - 912usize];
["Offset of field: _zend_executor_globals::exception_class"]
[::std::mem::offset_of!(_zend_executor_globals, exception_class) - 920usize];
["Offset of field: _zend_executor_globals::timeout_seconds"]
[::std::mem::offset_of!(_zend_executor_globals, timeout_seconds) - 928usize];
["Offset of field: _zend_executor_globals::lambda_count"]
[::std::mem::offset_of!(_zend_executor_globals, lambda_count) - 932usize];
["Offset of field: _zend_executor_globals::ini_directives"]
[::std::mem::offset_of!(_zend_executor_globals, ini_directives) - 936usize];
["Offset of field: _zend_executor_globals::modified_ini_directives"]
[::std::mem::offset_of!(_zend_executor_globals, modified_ini_directives) - 944usize];
["Offset of field: _zend_executor_globals::error_reporting_ini_entry"]
[::std::mem::offset_of!(_zend_executor_globals, error_reporting_ini_entry) - 952usize];
["Offset of field: _zend_executor_globals::objects_store"]
[::std::mem::offset_of!(_zend_executor_globals, objects_store) - 960usize];
["Offset of field: _zend_executor_globals::exception"]
[::std::mem::offset_of!(_zend_executor_globals, exception) - 984usize];
["Offset of field: _zend_executor_globals::prev_exception"]
[::std::mem::offset_of!(_zend_executor_globals, prev_exception) - 992usize];
["Offset of field: _zend_executor_globals::opline_before_exception"]
[::std::mem::offset_of!(_zend_executor_globals, opline_before_exception) - 1000usize];
["Offset of field: _zend_executor_globals::exception_op"]
[::std::mem::offset_of!(_zend_executor_globals, exception_op) - 1008usize];
["Offset of field: _zend_executor_globals::current_execute_data"]
[::std::mem::offset_of!(_zend_executor_globals, current_execute_data) - 1152usize];
["Offset of field: _zend_executor_globals::current_module"]
[::std::mem::offset_of!(_zend_executor_globals, current_module) - 1160usize];
["Offset of field: _zend_executor_globals::std_property_info"]
[::std::mem::offset_of!(_zend_executor_globals, std_property_info) - 1168usize];
["Offset of field: _zend_executor_globals::active"]
[::std::mem::offset_of!(_zend_executor_globals, active) - 1232usize];
["Offset of field: _zend_executor_globals::start_op"]
[::std::mem::offset_of!(_zend_executor_globals, start_op) - 1240usize];
["Offset of field: _zend_executor_globals::saved_fpu_cw_ptr"]
[::std::mem::offset_of!(_zend_executor_globals, saved_fpu_cw_ptr) - 1248usize];
["Offset of field: _zend_executor_globals::saved_fpu_cw"]
[::std::mem::offset_of!(_zend_executor_globals, saved_fpu_cw) - 1256usize];
["Offset of field: _zend_executor_globals::reserved"]
[::std::mem::offset_of!(_zend_executor_globals, reserved) - 1264usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_ini_scanner_globals {
pub yy_in: *mut zend_file_handle,
pub yy_out: *mut zend_file_handle,
pub yy_leng: ::std::os::raw::c_uint,
pub yy_start: *mut ::std::os::raw::c_uchar,
pub yy_text: *mut ::std::os::raw::c_uchar,
pub yy_cursor: *mut ::std::os::raw::c_uchar,
pub yy_marker: *mut ::std::os::raw::c_uchar,
pub yy_limit: *mut ::std::os::raw::c_uchar,
pub yy_state: ::std::os::raw::c_int,
pub state_stack: zend_stack,
pub filename: *mut ::std::os::raw::c_char,
pub lineno: ::std::os::raw::c_int,
pub scanner_mode: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_ini_scanner_globals"]
[::std::mem::size_of::<_zend_ini_scanner_globals>() - 104usize];
["Alignment of _zend_ini_scanner_globals"]
[::std::mem::align_of::<_zend_ini_scanner_globals>() - 8usize];
["Offset of field: _zend_ini_scanner_globals::yy_in"]
[::std::mem::offset_of!(_zend_ini_scanner_globals, yy_in) - 0usize];
["Offset of field: _zend_ini_scanner_globals::yy_out"]
[::std::mem::offset_of!(_zend_ini_scanner_globals, yy_out) - 8usize];
["Offset of field: _zend_ini_scanner_globals::yy_leng"]
[::std::mem::offset_of!(_zend_ini_scanner_globals, yy_leng) - 16usize];
["Offset of field: _zend_ini_scanner_globals::yy_start"]
[::std::mem::offset_of!(_zend_ini_scanner_globals, yy_start) - 24usize];
["Offset of field: _zend_ini_scanner_globals::yy_text"]
[::std::mem::offset_of!(_zend_ini_scanner_globals, yy_text) - 32usize];
["Offset of field: _zend_ini_scanner_globals::yy_cursor"]
[::std::mem::offset_of!(_zend_ini_scanner_globals, yy_cursor) - 40usize];
["Offset of field: _zend_ini_scanner_globals::yy_marker"]
[::std::mem::offset_of!(_zend_ini_scanner_globals, yy_marker) - 48usize];
["Offset of field: _zend_ini_scanner_globals::yy_limit"]
[::std::mem::offset_of!(_zend_ini_scanner_globals, yy_limit) - 56usize];
["Offset of field: _zend_ini_scanner_globals::yy_state"]
[::std::mem::offset_of!(_zend_ini_scanner_globals, yy_state) - 64usize];
["Offset of field: _zend_ini_scanner_globals::state_stack"]
[::std::mem::offset_of!(_zend_ini_scanner_globals, state_stack) - 72usize];
["Offset of field: _zend_ini_scanner_globals::filename"]
[::std::mem::offset_of!(_zend_ini_scanner_globals, filename) - 88usize];
["Offset of field: _zend_ini_scanner_globals::lineno"]
[::std::mem::offset_of!(_zend_ini_scanner_globals, lineno) - 96usize];
["Offset of field: _zend_ini_scanner_globals::scanner_mode"]
[::std::mem::offset_of!(_zend_ini_scanner_globals, scanner_mode) - 100usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_php_scanner_globals {
pub yy_in: *mut zend_file_handle,
pub yy_out: *mut zend_file_handle,
pub yy_leng: ::std::os::raw::c_uint,
pub yy_start: *mut ::std::os::raw::c_uchar,
pub yy_text: *mut ::std::os::raw::c_uchar,
pub yy_cursor: *mut ::std::os::raw::c_uchar,
pub yy_marker: *mut ::std::os::raw::c_uchar,
pub yy_limit: *mut ::std::os::raw::c_uchar,
pub yy_state: ::std::os::raw::c_int,
pub state_stack: zend_stack,
pub script_org: *mut ::std::os::raw::c_uchar,
pub script_org_size: usize,
pub script_filtered: *mut ::std::os::raw::c_uchar,
pub script_filtered_size: usize,
pub input_filter: zend_encoding_filter,
pub output_filter: zend_encoding_filter,
pub script_encoding: *const zend_encoding,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_php_scanner_globals"]
[::std::mem::size_of::<_zend_php_scanner_globals>() - 144usize];
["Alignment of _zend_php_scanner_globals"]
[::std::mem::align_of::<_zend_php_scanner_globals>() - 8usize];
["Offset of field: _zend_php_scanner_globals::yy_in"]
[::std::mem::offset_of!(_zend_php_scanner_globals, yy_in) - 0usize];
["Offset of field: _zend_php_scanner_globals::yy_out"]
[::std::mem::offset_of!(_zend_php_scanner_globals, yy_out) - 8usize];
["Offset of field: _zend_php_scanner_globals::yy_leng"]
[::std::mem::offset_of!(_zend_php_scanner_globals, yy_leng) - 16usize];
["Offset of field: _zend_php_scanner_globals::yy_start"]
[::std::mem::offset_of!(_zend_php_scanner_globals, yy_start) - 24usize];
["Offset of field: _zend_php_scanner_globals::yy_text"]
[::std::mem::offset_of!(_zend_php_scanner_globals, yy_text) - 32usize];
["Offset of field: _zend_php_scanner_globals::yy_cursor"]
[::std::mem::offset_of!(_zend_php_scanner_globals, yy_cursor) - 40usize];
["Offset of field: _zend_php_scanner_globals::yy_marker"]
[::std::mem::offset_of!(_zend_php_scanner_globals, yy_marker) - 48usize];
["Offset of field: _zend_php_scanner_globals::yy_limit"]
[::std::mem::offset_of!(_zend_php_scanner_globals, yy_limit) - 56usize];
["Offset of field: _zend_php_scanner_globals::yy_state"]
[::std::mem::offset_of!(_zend_php_scanner_globals, yy_state) - 64usize];
["Offset of field: _zend_php_scanner_globals::state_stack"]
[::std::mem::offset_of!(_zend_php_scanner_globals, state_stack) - 72usize];
["Offset of field: _zend_php_scanner_globals::script_org"]
[::std::mem::offset_of!(_zend_php_scanner_globals, script_org) - 88usize];
["Offset of field: _zend_php_scanner_globals::script_org_size"]
[::std::mem::offset_of!(_zend_php_scanner_globals, script_org_size) - 96usize];
["Offset of field: _zend_php_scanner_globals::script_filtered"]
[::std::mem::offset_of!(_zend_php_scanner_globals, script_filtered) - 104usize];
["Offset of field: _zend_php_scanner_globals::script_filtered_size"]
[::std::mem::offset_of!(_zend_php_scanner_globals, script_filtered_size) - 112usize];
["Offset of field: _zend_php_scanner_globals::input_filter"]
[::std::mem::offset_of!(_zend_php_scanner_globals, input_filter) - 120usize];
["Offset of field: _zend_php_scanner_globals::output_filter"]
[::std::mem::offset_of!(_zend_php_scanner_globals, output_filter) - 128usize];
["Offset of field: _zend_php_scanner_globals::script_encoding"]
[::std::mem::offset_of!(_zend_php_scanner_globals, script_encoding) - 136usize];
};
extern "C" {
pub fn zend_init_compiler_data_structures();
}
extern "C" {
pub fn zend_init_compiler_context();
}
extern "C" {
pub static mut zend_compile_file: ::std::option::Option<
unsafe extern "C" fn(
file_handle: *mut zend_file_handle,
type_: ::std::os::raw::c_int,
) -> *mut zend_op_array,
>;
}
extern "C" {
pub static mut zend_compile_string: ::std::option::Option<
unsafe extern "C" fn(
source_string: *mut zval,
filename: *mut ::std::os::raw::c_char,
) -> *mut zend_op_array,
>;
}
extern "C" {
pub fn zend_set_compiled_filename(
new_compiled_filename: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_restore_compiled_filename(original_compiled_filename: *mut ::std::os::raw::c_char);
}
extern "C" {
pub fn zend_get_compiled_filename() -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_get_compiled_lineno() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_get_scanned_file_offset() -> usize;
}
extern "C" {
pub fn zend_resolve_non_class_name(element_name: *mut znode, check_namespace: zend_bool);
}
extern "C" {
pub fn zend_resolve_class_name(
class_name: *mut znode,
fetch_type: ulong,
check_ns_name: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_get_compiled_variable_name(
op_array: *const zend_op_array,
var: zend_uint,
name_len: *mut ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_do_binary_op(
op: zend_uchar,
result: *mut znode,
op1: *const znode,
op2: *const znode,
);
}
extern "C" {
pub fn zend_do_unary_op(op: zend_uchar, result: *mut znode, op1: *const znode);
}
extern "C" {
pub fn zend_do_binary_assign_op(
op: zend_uchar,
result: *mut znode,
op1: *const znode,
op2: *const znode,
);
}
extern "C" {
pub fn zend_do_assign(result: *mut znode, variable: *mut znode, value: *mut znode);
}
extern "C" {
pub fn zend_do_assign_ref(result: *mut znode, lvar: *const znode, rvar: *const znode);
}
extern "C" {
pub fn zend_do_indirect_references(
result: *mut znode,
num_references: *const znode,
variable: *mut znode,
);
}
extern "C" {
pub fn zend_do_fetch_static_variable(
varname: *mut znode,
static_assignment: *const znode,
fetch_type: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_do_fetch_global_variable(
varname: *mut znode,
static_assignment: *const znode,
fetch_type: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_do_fetch_static_member(result: *mut znode, class_znode: *mut znode);
}
extern "C" {
pub fn zend_do_print(result: *mut znode, arg: *const znode);
}
extern "C" {
pub fn zend_do_echo(arg: *const znode);
}
extern "C" {
pub fn zend_do_while_cond(expr: *const znode, close_bracket_token: *mut znode);
}
extern "C" {
pub fn zend_do_while_end(while_token: *const znode, close_bracket_token: *const znode);
}
extern "C" {
pub fn zend_do_do_while_begin();
}
extern "C" {
pub fn zend_do_do_while_end(
do_token: *const znode,
expr_open_bracket: *const znode,
expr: *const znode,
);
}
extern "C" {
pub fn zend_do_if_cond(cond: *const znode, closing_bracket_token: *mut znode);
}
extern "C" {
pub fn zend_do_if_after_statement(
closing_bracket_token: *const znode,
initialize: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn zend_do_if_end();
}
extern "C" {
pub fn zend_do_for_cond(expr: *const znode, second_semicolon_token: *mut znode);
}
extern "C" {
pub fn zend_do_for_before_statement(
cond_start: *const znode,
second_semicolon_token: *const znode,
);
}
extern "C" {
pub fn zend_do_for_end(second_semicolon_token: *const znode);
}
extern "C" {
pub fn zend_do_pre_incdec(result: *mut znode, op1: *const znode, op: zend_uchar);
}
extern "C" {
pub fn zend_do_post_incdec(result: *mut znode, op1: *const znode, op: zend_uchar);
}
extern "C" {
pub fn zend_do_begin_variable_parse();
}
extern "C" {
pub fn zend_do_end_variable_parse(
variable: *mut znode,
type_: ::std::os::raw::c_int,
arg_offset: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_check_writable_variable(variable: *const znode);
}
extern "C" {
pub fn zend_do_free(op1: *mut znode);
}
extern "C" {
pub fn zend_do_add_string(result: *mut znode, op1: *const znode, op2: *mut znode);
}
extern "C" {
pub fn zend_do_add_variable(result: *mut znode, op1: *const znode, op2: *const znode);
}
extern "C" {
pub fn zend_do_verify_access_types(
current_access_type: *const znode,
new_modifier: *const znode,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_do_begin_function_declaration(
function_token: *mut znode,
function_name: *mut znode,
is_method: ::std::os::raw::c_int,
return_reference: ::std::os::raw::c_int,
fn_flags_znode: *mut znode,
);
}
extern "C" {
pub fn zend_do_end_function_declaration(function_token: *const znode);
}
extern "C" {
pub fn zend_do_receive_arg(
op: zend_uchar,
varname: *mut znode,
offset: *const znode,
initialization: *const znode,
class_type: *mut znode,
pass_by_reference: zend_bool,
);
}
extern "C" {
pub fn zend_do_begin_function_call(
function_name: *mut znode,
check_namespace: zend_bool,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_do_begin_method_call(left_bracket: *mut znode);
}
extern "C" {
pub fn zend_do_clone(result: *mut znode, expr: *const znode);
}
extern "C" {
pub fn zend_do_begin_dynamic_function_call(
function_name: *mut znode,
prefix_len: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_do_fetch_class(result: *mut znode, class_name: *mut znode);
}
extern "C" {
pub fn zend_do_build_full_name(
result: *mut znode,
prefix: *mut znode,
name: *mut znode,
is_class_member: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_do_begin_class_member_function_call(
class_name: *mut znode,
method_name: *mut znode,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_do_end_function_call(
function_name: *mut znode,
result: *mut znode,
argument_list: *const znode,
is_method: ::std::os::raw::c_int,
is_dynamic_fcall: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_do_return(expr: *mut znode, do_end_vparse: ::std::os::raw::c_int);
}
extern "C" {
pub fn zend_do_handle_exception();
}
extern "C" {
pub fn zend_do_begin_lambda_function_declaration(
result: *mut znode,
function_token: *mut znode,
return_reference: ::std::os::raw::c_int,
is_static: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_do_fetch_lexical_variable(varname: *mut znode, is_ref: zend_bool);
}
extern "C" {
pub fn zend_do_try(try_token: *mut znode);
}
extern "C" {
pub fn zend_do_begin_catch(
try_token: *mut znode,
catch_class: *mut znode,
catch_var: *mut znode,
first_catch: *mut znode,
);
}
extern "C" {
pub fn zend_do_end_catch(try_token: *const znode);
}
extern "C" {
pub fn zend_do_throw(expr: *const znode);
}
extern "C" {
pub fn zend_do_inherit_interfaces(ce: *mut zend_class_entry, iface: *const zend_class_entry);
}
extern "C" {
pub fn zend_do_implement_interface(ce: *mut zend_class_entry, iface: *mut zend_class_entry);
}
extern "C" {
pub fn zend_do_implements_interface(interface_znode: *mut znode);
}
extern "C" {
pub fn zend_do_use_trait(trait_znode: *mut znode);
}
extern "C" {
pub fn zend_prepare_reference(
result: *mut znode,
class_name: *mut znode,
method_name: *mut znode,
);
}
extern "C" {
pub fn zend_add_trait_precedence(method_reference: *mut znode, trait_list: *mut znode);
}
extern "C" {
pub fn zend_add_trait_alias(
method_reference: *mut znode,
modifiers: *mut znode,
alias: *mut znode,
);
}
extern "C" {
pub fn zend_do_implement_trait(ce: *mut zend_class_entry, trait_: *mut zend_class_entry);
}
extern "C" {
pub fn zend_do_bind_traits(ce: *mut zend_class_entry);
}
extern "C" {
pub fn zend_do_inheritance(ce: *mut zend_class_entry, parent_ce: *mut zend_class_entry);
}
extern "C" {
pub fn zend_do_early_binding();
}
extern "C" {
pub fn zend_do_delayed_early_binding(op_array: *const zend_op_array);
}
extern "C" {
pub fn zend_do_pass_param(param: *mut znode, op: zend_uchar, offset: ::std::os::raw::c_int);
}
extern "C" {
pub fn zend_do_boolean_or_begin(expr1: *mut znode, op_token: *mut znode);
}
extern "C" {
pub fn zend_do_boolean_or_end(
result: *mut znode,
expr1: *const znode,
expr2: *const znode,
op_token: *mut znode,
);
}
extern "C" {
pub fn zend_do_boolean_and_begin(expr1: *mut znode, op_token: *mut znode);
}
extern "C" {
pub fn zend_do_boolean_and_end(
result: *mut znode,
expr1: *const znode,
expr2: *const znode,
op_token: *const znode,
);
}
extern "C" {
pub fn zend_do_brk_cont(op: zend_uchar, expr: *const znode);
}
extern "C" {
pub fn zend_do_switch_cond(cond: *const znode);
}
extern "C" {
pub fn zend_do_switch_end(case_list: *const znode);
}
extern "C" {
pub fn zend_do_case_before_statement(
case_list: *const znode,
case_token: *mut znode,
case_expr: *const znode,
);
}
extern "C" {
pub fn zend_do_case_after_statement(result: *mut znode, case_token: *const znode);
}
extern "C" {
pub fn zend_do_default_before_statement(case_list: *const znode, default_token: *mut znode);
}
extern "C" {
pub fn zend_do_begin_class_declaration(
class_token: *const znode,
class_name: *mut znode,
parent_class_name: *const znode,
);
}
extern "C" {
pub fn zend_do_end_class_declaration(class_token: *const znode, parent_token: *const znode);
}
extern "C" {
pub fn zend_do_declare_property(
var_name: *const znode,
value: *const znode,
access_type: zend_uint,
);
}
extern "C" {
pub fn zend_do_declare_class_constant(var_name: *mut znode, value: *const znode);
}
extern "C" {
pub fn zend_do_fetch_property(result: *mut znode, object: *mut znode, property: *const znode);
}
extern "C" {
pub fn zend_do_halt_compiler_register();
}
extern "C" {
pub fn zend_do_push_object(object: *const znode);
}
extern "C" {
pub fn zend_do_pop_object(object: *mut znode);
}
extern "C" {
pub fn zend_do_begin_new_object(new_token: *mut znode, class_type: *mut znode);
}
extern "C" {
pub fn zend_do_end_new_object(
result: *mut znode,
new_token: *const znode,
argument_list: *const znode,
);
}
extern "C" {
pub fn zend_do_fetch_constant(
result: *mut znode,
constant_container: *mut znode,
constant_name: *mut znode,
mode: ::std::os::raw::c_int,
check_namespace: zend_bool,
);
}
extern "C" {
pub fn zend_do_shell_exec(result: *mut znode, cmd: *const znode);
}
extern "C" {
pub fn zend_do_init_array(
result: *mut znode,
expr: *const znode,
offset: *const znode,
is_ref: zend_bool,
);
}
extern "C" {
pub fn zend_do_add_array_element(
result: *mut znode,
expr: *const znode,
offset: *const znode,
is_ref: zend_bool,
);
}
extern "C" {
pub fn zend_do_add_static_array_element(
result: *mut znode,
offset: *mut znode,
expr: *const znode,
);
}
extern "C" {
pub fn zend_do_list_init();
}
extern "C" {
pub fn zend_do_list_end(result: *mut znode, expr: *mut znode);
}
extern "C" {
pub fn zend_do_add_list_element(element: *const znode);
}
extern "C" {
pub fn zend_do_new_list_begin();
}
extern "C" {
pub fn zend_do_new_list_end();
}
extern "C" {
pub fn zend_init_list(result: *mut ::std::os::raw::c_void, item: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn zend_add_to_list(result: *mut ::std::os::raw::c_void, item: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn zend_do_cast(result: *mut znode, expr: *const znode, type_: ::std::os::raw::c_int);
}
extern "C" {
pub fn zend_do_include_or_eval(
type_: ::std::os::raw::c_int,
result: *mut znode,
op1: *const znode,
);
}
extern "C" {
pub fn zend_do_unset(variable: *const znode);
}
extern "C" {
pub fn zend_do_isset_or_isempty(
type_: ::std::os::raw::c_int,
result: *mut znode,
variable: *mut znode,
);
}
extern "C" {
pub fn zend_do_instanceof(
result: *mut znode,
expr: *const znode,
class_znode: *const znode,
type_: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_do_foreach_begin(
foreach_token: *mut znode,
open_brackets_token: *mut znode,
array: *mut znode,
as_token: *mut znode,
variable: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_do_foreach_cont(
foreach_token: *mut znode,
open_brackets_token: *const znode,
as_token: *const znode,
value: *mut znode,
key: *mut znode,
);
}
extern "C" {
pub fn zend_do_foreach_end(foreach_token: *const znode, as_token: *const znode);
}
extern "C" {
pub fn zend_do_declare_begin();
}
extern "C" {
pub fn zend_do_declare_stmt(var: *mut znode, val: *mut znode);
}
extern "C" {
pub fn zend_do_declare_end(declare_token: *const znode);
}
extern "C" {
pub fn zend_do_exit(result: *mut znode, message: *const znode);
}
extern "C" {
pub fn zend_do_begin_silence(strudel_token: *mut znode);
}
extern "C" {
pub fn zend_do_end_silence(strudel_token: *const znode);
}
extern "C" {
pub fn zend_do_jmp_set(value: *const znode, jmp_token: *mut znode, colon_token: *mut znode);
}
extern "C" {
pub fn zend_do_jmp_set_else(
result: *mut znode,
false_value: *const znode,
jmp_token: *const znode,
colon_token: *const znode,
);
}
extern "C" {
pub fn zend_do_begin_qm_op(cond: *const znode, qm_token: *mut znode);
}
extern "C" {
pub fn zend_do_qm_true(true_value: *const znode, qm_token: *mut znode, colon_token: *mut znode);
}
extern "C" {
pub fn zend_do_qm_false(
result: *mut znode,
false_value: *const znode,
qm_token: *const znode,
colon_token: *const znode,
);
}
extern "C" {
pub fn zend_do_extended_info();
}
extern "C" {
pub fn zend_do_extended_fcall_begin();
}
extern "C" {
pub fn zend_do_extended_fcall_end();
}
extern "C" {
pub fn zend_do_ticks();
}
extern "C" {
pub fn zend_do_abstract_method(
function_name: *const znode,
modifiers: *mut znode,
body: *const znode,
);
}
extern "C" {
pub fn zend_do_declare_constant(name: *mut znode, value: *mut znode);
}
extern "C" {
pub fn zend_do_build_namespace_name(result: *mut znode, prefix: *mut znode, name: *mut znode);
}
extern "C" {
pub fn zend_do_begin_namespace(name: *const znode, with_brackets: zend_bool);
}
extern "C" {
pub fn zend_do_end_namespace();
}
extern "C" {
pub fn zend_verify_namespace();
}
extern "C" {
pub fn zend_do_use(name: *mut znode, new_name: *mut znode, is_global: ::std::os::raw::c_int);
}
extern "C" {
pub fn zend_do_end_compilation();
}
extern "C" {
pub fn zend_do_label(label: *mut znode);
}
extern "C" {
pub fn zend_do_goto(label: *const znode);
}
extern "C" {
pub fn zend_resolve_goto_label(
op_array: *mut zend_op_array,
opline: *mut zend_op,
pass2: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_release_labels(temporary: ::std::os::raw::c_int);
}
extern "C" {
pub fn zend_execute_scripts(
type_: ::std::os::raw::c_int,
retval: *mut *mut zval,
file_count: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_destroy_file_handle(file_handle: *mut zend_file_handle);
}
extern "C" {
pub fn zend_cleanup_class_data(pce: *mut *mut zend_class_entry) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_cleanup_user_class_data(pce: *mut *mut zend_class_entry) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_cleanup_internal_class_data(ce: *mut zend_class_entry);
}
extern "C" {
pub fn zend_cleanup_internal_classes();
}
extern "C" {
pub fn zend_cleanup_function_data(function: *mut zend_function) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_cleanup_function_data_full(function: *mut zend_function) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_function_dtor(function: *mut zend_function);
}
extern "C" {
pub fn zend_class_add_ref(ce: *mut *mut zend_class_entry);
}
extern "C" {
pub fn zend_mangle_property_name(
dest: *mut *mut ::std::os::raw::c_char,
dest_length: *mut ::std::os::raw::c_int,
src1: *const ::std::os::raw::c_char,
src1_length: ::std::os::raw::c_int,
src2: *const ::std::os::raw::c_char,
src2_length: ::std::os::raw::c_int,
internal: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_unmangle_property_name(
mangled_property: *const ::std::os::raw::c_char,
mangled_property_len: ::std::os::raw::c_int,
class_name: *mut *const ::std::os::raw::c_char,
prop_name: *mut *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_do_first_catch(open_parentheses: *mut znode);
}
extern "C" {
pub fn zend_initialize_try_catch_element(try_token: *const znode);
}
extern "C" {
pub fn zend_do_mark_last_catch(first_catch: *const znode, last_additional_catch: *const znode);
}
extern "C" {
pub fn zend_is_compiling() -> zend_bool;
}
extern "C" {
pub fn zend_make_compiled_string_description(
name: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_initialize_class_data(ce: *mut zend_class_entry, nullify_handlers: zend_bool);
}
extern "C" {
pub fn zend_get_class_fetch_type(
class_name: *const ::std::os::raw::c_char,
class_name_len: uint,
) -> ::std::os::raw::c_int;
}
pub type zend_auto_global_callback = ::std::option::Option<
unsafe extern "C" fn(name: *const ::std::os::raw::c_char, name_len: uint) -> zend_bool,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_auto_global {
pub name: *const ::std::os::raw::c_char,
pub name_len: uint,
pub auto_global_callback: zend_auto_global_callback,
pub jit: zend_bool,
pub armed: zend_bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_auto_global"][::std::mem::size_of::<_zend_auto_global>() - 32usize];
["Alignment of _zend_auto_global"][::std::mem::align_of::<_zend_auto_global>() - 8usize];
["Offset of field: _zend_auto_global::name"]
[::std::mem::offset_of!(_zend_auto_global, name) - 0usize];
["Offset of field: _zend_auto_global::name_len"]
[::std::mem::offset_of!(_zend_auto_global, name_len) - 8usize];
["Offset of field: _zend_auto_global::auto_global_callback"]
[::std::mem::offset_of!(_zend_auto_global, auto_global_callback) - 16usize];
["Offset of field: _zend_auto_global::jit"]
[::std::mem::offset_of!(_zend_auto_global, jit) - 24usize];
["Offset of field: _zend_auto_global::armed"]
[::std::mem::offset_of!(_zend_auto_global, armed) - 25usize];
};
pub type zend_auto_global = _zend_auto_global;
extern "C" {
pub fn zend_register_auto_global(
name: *const ::std::os::raw::c_char,
name_len: uint,
jit: zend_bool,
auto_global_callback: zend_auto_global_callback,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_activate_auto_globals();
}
extern "C" {
pub fn zend_is_auto_global(name: *const ::std::os::raw::c_char, name_len: uint) -> zend_bool;
}
extern "C" {
pub fn zend_is_auto_global_quick(
name: *const ::std::os::raw::c_char,
name_len: uint,
hashval: ulong,
) -> zend_bool;
}
extern "C" {
pub fn zend_dirname(path: *mut ::std::os::raw::c_char, len: usize) -> usize;
}
extern "C" {
pub fn zendlex(zendlval: *mut znode) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_add_literal(op_array: *mut zend_op_array, zv: *const zval)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_get_opcode_name(opcode: zend_uchar) -> *const ::std::os::raw::c_char;
}
pub type zend_module_entry = _zend_module_entry;
pub type zend_module_dep = _zend_module_dep;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_module_entry {
pub size: ::std::os::raw::c_ushort,
pub zend_api: ::std::os::raw::c_uint,
pub zend_debug: ::std::os::raw::c_uchar,
pub zts: ::std::os::raw::c_uchar,
pub ini_entry: *const _zend_ini_entry,
pub deps: *const _zend_module_dep,
pub name: *const ::std::os::raw::c_char,
pub functions: *const _zend_function_entry,
pub module_startup_func: ::std::option::Option<
unsafe extern "C" fn(
type_: ::std::os::raw::c_int,
module_number: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub module_shutdown_func: ::std::option::Option<
unsafe extern "C" fn(
type_: ::std::os::raw::c_int,
module_number: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub request_startup_func: ::std::option::Option<
unsafe extern "C" fn(
type_: ::std::os::raw::c_int,
module_number: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub request_shutdown_func: ::std::option::Option<
unsafe extern "C" fn(
type_: ::std::os::raw::c_int,
module_number: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub info_func: ::std::option::Option<unsafe extern "C" fn(zend_module: *mut zend_module_entry)>,
pub version: *const ::std::os::raw::c_char,
pub globals_size: usize,
pub globals_ptr: *mut ::std::os::raw::c_void,
pub globals_ctor:
::std::option::Option<unsafe extern "C" fn(global: *mut ::std::os::raw::c_void)>,
pub globals_dtor:
::std::option::Option<unsafe extern "C" fn(global: *mut ::std::os::raw::c_void)>,
pub post_deactivate_func:
::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>,
pub module_started: ::std::os::raw::c_int,
pub type_: ::std::os::raw::c_uchar,
pub handle: *mut ::std::os::raw::c_void,
pub module_number: ::std::os::raw::c_int,
pub build_id: *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_module_entry"][::std::mem::size_of::<_zend_module_entry>() - 168usize];
["Alignment of _zend_module_entry"][::std::mem::align_of::<_zend_module_entry>() - 8usize];
["Offset of field: _zend_module_entry::size"]
[::std::mem::offset_of!(_zend_module_entry, size) - 0usize];
["Offset of field: _zend_module_entry::zend_api"]
[::std::mem::offset_of!(_zend_module_entry, zend_api) - 4usize];
["Offset of field: _zend_module_entry::zend_debug"]
[::std::mem::offset_of!(_zend_module_entry, zend_debug) - 8usize];
["Offset of field: _zend_module_entry::zts"]
[::std::mem::offset_of!(_zend_module_entry, zts) - 9usize];
["Offset of field: _zend_module_entry::ini_entry"]
[::std::mem::offset_of!(_zend_module_entry, ini_entry) - 16usize];
["Offset of field: _zend_module_entry::deps"]
[::std::mem::offset_of!(_zend_module_entry, deps) - 24usize];
["Offset of field: _zend_module_entry::name"]
[::std::mem::offset_of!(_zend_module_entry, name) - 32usize];
["Offset of field: _zend_module_entry::functions"]
[::std::mem::offset_of!(_zend_module_entry, functions) - 40usize];
["Offset of field: _zend_module_entry::module_startup_func"]
[::std::mem::offset_of!(_zend_module_entry, module_startup_func) - 48usize];
["Offset of field: _zend_module_entry::module_shutdown_func"]
[::std::mem::offset_of!(_zend_module_entry, module_shutdown_func) - 56usize];
["Offset of field: _zend_module_entry::request_startup_func"]
[::std::mem::offset_of!(_zend_module_entry, request_startup_func) - 64usize];
["Offset of field: _zend_module_entry::request_shutdown_func"]
[::std::mem::offset_of!(_zend_module_entry, request_shutdown_func) - 72usize];
["Offset of field: _zend_module_entry::info_func"]
[::std::mem::offset_of!(_zend_module_entry, info_func) - 80usize];
["Offset of field: _zend_module_entry::version"]
[::std::mem::offset_of!(_zend_module_entry, version) - 88usize];
["Offset of field: _zend_module_entry::globals_size"]
[::std::mem::offset_of!(_zend_module_entry, globals_size) - 96usize];
["Offset of field: _zend_module_entry::globals_ptr"]
[::std::mem::offset_of!(_zend_module_entry, globals_ptr) - 104usize];
["Offset of field: _zend_module_entry::globals_ctor"]
[::std::mem::offset_of!(_zend_module_entry, globals_ctor) - 112usize];
["Offset of field: _zend_module_entry::globals_dtor"]
[::std::mem::offset_of!(_zend_module_entry, globals_dtor) - 120usize];
["Offset of field: _zend_module_entry::post_deactivate_func"]
[::std::mem::offset_of!(_zend_module_entry, post_deactivate_func) - 128usize];
["Offset of field: _zend_module_entry::module_started"]
[::std::mem::offset_of!(_zend_module_entry, module_started) - 136usize];
["Offset of field: _zend_module_entry::type_"]
[::std::mem::offset_of!(_zend_module_entry, type_) - 140usize];
["Offset of field: _zend_module_entry::handle"]
[::std::mem::offset_of!(_zend_module_entry, handle) - 144usize];
["Offset of field: _zend_module_entry::module_number"]
[::std::mem::offset_of!(_zend_module_entry, module_number) - 152usize];
["Offset of field: _zend_module_entry::build_id"]
[::std::mem::offset_of!(_zend_module_entry, build_id) - 160usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_module_dep {
pub name: *const ::std::os::raw::c_char,
pub rel: *const ::std::os::raw::c_char,
pub version: *const ::std::os::raw::c_char,
pub type_: ::std::os::raw::c_uchar,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_module_dep"][::std::mem::size_of::<_zend_module_dep>() - 32usize];
["Alignment of _zend_module_dep"][::std::mem::align_of::<_zend_module_dep>() - 8usize];
["Offset of field: _zend_module_dep::name"]
[::std::mem::offset_of!(_zend_module_dep, name) - 0usize];
["Offset of field: _zend_module_dep::rel"]
[::std::mem::offset_of!(_zend_module_dep, rel) - 8usize];
["Offset of field: _zend_module_dep::version"]
[::std::mem::offset_of!(_zend_module_dep, version) - 16usize];
["Offset of field: _zend_module_dep::type_"]
[::std::mem::offset_of!(_zend_module_dep, type_) - 24usize];
};
extern "C" {
pub static mut module_registry: HashTable;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_rsrc_list_entry {
pub ptr: *mut ::std::os::raw::c_void,
pub type_: ::std::os::raw::c_int,
pub refcount: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_rsrc_list_entry"][::std::mem::size_of::<_zend_rsrc_list_entry>() - 16usize];
["Alignment of _zend_rsrc_list_entry"]
[::std::mem::align_of::<_zend_rsrc_list_entry>() - 8usize];
["Offset of field: _zend_rsrc_list_entry::ptr"]
[::std::mem::offset_of!(_zend_rsrc_list_entry, ptr) - 0usize];
["Offset of field: _zend_rsrc_list_entry::type_"]
[::std::mem::offset_of!(_zend_rsrc_list_entry, type_) - 8usize];
["Offset of field: _zend_rsrc_list_entry::refcount"]
[::std::mem::offset_of!(_zend_rsrc_list_entry, refcount) - 12usize];
};
pub type zend_rsrc_list_entry = _zend_rsrc_list_entry;
pub type rsrc_dtor_func_t =
::std::option::Option<unsafe extern "C" fn(rsrc: *mut zend_rsrc_list_entry)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_rsrc_list_dtors_entry {
pub list_dtor: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
pub plist_dtor: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
pub list_dtor_ex: rsrc_dtor_func_t,
pub plist_dtor_ex: rsrc_dtor_func_t,
pub type_name: *const ::std::os::raw::c_char,
pub module_number: ::std::os::raw::c_int,
pub resource_id: ::std::os::raw::c_int,
pub type_: ::std::os::raw::c_uchar,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_rsrc_list_dtors_entry"]
[::std::mem::size_of::<_zend_rsrc_list_dtors_entry>() - 56usize];
["Alignment of _zend_rsrc_list_dtors_entry"]
[::std::mem::align_of::<_zend_rsrc_list_dtors_entry>() - 8usize];
["Offset of field: _zend_rsrc_list_dtors_entry::list_dtor"]
[::std::mem::offset_of!(_zend_rsrc_list_dtors_entry, list_dtor) - 0usize];
["Offset of field: _zend_rsrc_list_dtors_entry::plist_dtor"]
[::std::mem::offset_of!(_zend_rsrc_list_dtors_entry, plist_dtor) - 8usize];
["Offset of field: _zend_rsrc_list_dtors_entry::list_dtor_ex"]
[::std::mem::offset_of!(_zend_rsrc_list_dtors_entry, list_dtor_ex) - 16usize];
["Offset of field: _zend_rsrc_list_dtors_entry::plist_dtor_ex"]
[::std::mem::offset_of!(_zend_rsrc_list_dtors_entry, plist_dtor_ex) - 24usize];
["Offset of field: _zend_rsrc_list_dtors_entry::type_name"]
[::std::mem::offset_of!(_zend_rsrc_list_dtors_entry, type_name) - 32usize];
["Offset of field: _zend_rsrc_list_dtors_entry::module_number"]
[::std::mem::offset_of!(_zend_rsrc_list_dtors_entry, module_number) - 40usize];
["Offset of field: _zend_rsrc_list_dtors_entry::resource_id"]
[::std::mem::offset_of!(_zend_rsrc_list_dtors_entry, resource_id) - 44usize];
["Offset of field: _zend_rsrc_list_dtors_entry::type_"]
[::std::mem::offset_of!(_zend_rsrc_list_dtors_entry, type_) - 48usize];
};
pub type zend_rsrc_list_dtors_entry = _zend_rsrc_list_dtors_entry;
extern "C" {
pub fn zend_register_list_destructors(
ld: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
pld: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
module_number: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_register_list_destructors_ex(
ld: rsrc_dtor_func_t,
pld: rsrc_dtor_func_t,
type_name: *const ::std::os::raw::c_char,
module_number: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_clean_module_rsrc_dtors(module_number: ::std::os::raw::c_int);
}
extern "C" {
pub fn zend_init_rsrc_list() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_init_rsrc_plist() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_destroy_rsrc_list(ht: *mut HashTable);
}
extern "C" {
pub fn zend_init_rsrc_list_dtors() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_destroy_rsrc_list_dtors();
}
extern "C" {
pub fn zend_list_insert(
ptr: *mut ::std::os::raw::c_void,
type_: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _zend_list_addref(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _zend_list_delete(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _zend_list_find(
id: ::std::os::raw::c_int,
type_: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn zend_register_resource(
rsrc_result: *mut zval,
rsrc_pointer: *mut ::std::os::raw::c_void,
rsrc_type: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_fetch_resource(
passed_id: *mut *mut zval,
default_id: ::std::os::raw::c_int,
resource_type_name: *const ::std::os::raw::c_char,
found_resource_type: *mut ::std::os::raw::c_int,
num_resource_types: ::std::os::raw::c_int,
...
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn zend_rsrc_list_get_rsrc_type(
resource: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_fetch_list_dtor_id(type_name: *mut ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _temp_variable {
pub tmp_var: zval,
pub var: _temp_variable__bindgen_ty_1,
pub str_offset: _temp_variable__bindgen_ty_2,
pub fe: _temp_variable__bindgen_ty_3,
pub class_entry: *mut zend_class_entry,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _temp_variable__bindgen_ty_1 {
pub ptr_ptr: *mut *mut zval,
pub ptr: *mut zval,
pub fcall_returned_reference: zend_bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _temp_variable__bindgen_ty_1"]
[::std::mem::size_of::<_temp_variable__bindgen_ty_1>() - 24usize];
["Alignment of _temp_variable__bindgen_ty_1"]
[::std::mem::align_of::<_temp_variable__bindgen_ty_1>() - 8usize];
["Offset of field: _temp_variable__bindgen_ty_1::ptr_ptr"]
[::std::mem::offset_of!(_temp_variable__bindgen_ty_1, ptr_ptr) - 0usize];
["Offset of field: _temp_variable__bindgen_ty_1::ptr"]
[::std::mem::offset_of!(_temp_variable__bindgen_ty_1, ptr) - 8usize];
["Offset of field: _temp_variable__bindgen_ty_1::fcall_returned_reference"]
[::std::mem::offset_of!(_temp_variable__bindgen_ty_1, fcall_returned_reference) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _temp_variable__bindgen_ty_2 {
pub ptr_ptr: *mut *mut zval,
pub str_: *mut zval,
pub offset: zend_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _temp_variable__bindgen_ty_2"]
[::std::mem::size_of::<_temp_variable__bindgen_ty_2>() - 24usize];
["Alignment of _temp_variable__bindgen_ty_2"]
[::std::mem::align_of::<_temp_variable__bindgen_ty_2>() - 8usize];
["Offset of field: _temp_variable__bindgen_ty_2::ptr_ptr"]
[::std::mem::offset_of!(_temp_variable__bindgen_ty_2, ptr_ptr) - 0usize];
["Offset of field: _temp_variable__bindgen_ty_2::str_"]
[::std::mem::offset_of!(_temp_variable__bindgen_ty_2, str_) - 8usize];
["Offset of field: _temp_variable__bindgen_ty_2::offset"]
[::std::mem::offset_of!(_temp_variable__bindgen_ty_2, offset) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _temp_variable__bindgen_ty_3 {
pub ptr_ptr: *mut *mut zval,
pub ptr: *mut zval,
pub fe_pos: HashPointer,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _temp_variable__bindgen_ty_3"]
[::std::mem::size_of::<_temp_variable__bindgen_ty_3>() - 32usize];
["Alignment of _temp_variable__bindgen_ty_3"]
[::std::mem::align_of::<_temp_variable__bindgen_ty_3>() - 8usize];
["Offset of field: _temp_variable__bindgen_ty_3::ptr_ptr"]
[::std::mem::offset_of!(_temp_variable__bindgen_ty_3, ptr_ptr) - 0usize];
["Offset of field: _temp_variable__bindgen_ty_3::ptr"]
[::std::mem::offset_of!(_temp_variable__bindgen_ty_3, ptr) - 8usize];
["Offset of field: _temp_variable__bindgen_ty_3::fe_pos"]
[::std::mem::offset_of!(_temp_variable__bindgen_ty_3, fe_pos) - 16usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _temp_variable"][::std::mem::size_of::<_temp_variable>() - 32usize];
["Alignment of _temp_variable"][::std::mem::align_of::<_temp_variable>() - 8usize];
["Offset of field: _temp_variable::tmp_var"]
[::std::mem::offset_of!(_temp_variable, tmp_var) - 0usize];
["Offset of field: _temp_variable::var"][::std::mem::offset_of!(_temp_variable, var) - 0usize];
["Offset of field: _temp_variable::str_offset"]
[::std::mem::offset_of!(_temp_variable, str_offset) - 0usize];
["Offset of field: _temp_variable::fe"][::std::mem::offset_of!(_temp_variable, fe) - 0usize];
["Offset of field: _temp_variable::class_entry"]
[::std::mem::offset_of!(_temp_variable, class_entry) - 0usize];
};
pub type temp_variable = _temp_variable;
extern "C" {
pub static mut zend_execute:
::std::option::Option<unsafe extern "C" fn(op_array: *mut zend_op_array)>;
}
extern "C" {
pub static mut zend_execute_internal: ::std::option::Option<
unsafe extern "C" fn(
execute_data_ptr: *mut zend_execute_data,
return_value_used: ::std::os::raw::c_int,
),
>;
}
extern "C" {
pub fn zend_is_true(op: *mut zval) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_lookup_class(
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
ce: *mut *mut *mut zend_class_entry,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_lookup_class_ex(
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
key: *const zend_literal,
use_autoload: ::std::os::raw::c_int,
ce: *mut *mut *mut zend_class_entry,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_eval_string(
str_: *mut ::std::os::raw::c_char,
retval_ptr: *mut zval,
string_name: *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_eval_stringl(
str_: *mut ::std::os::raw::c_char,
str_len: ::std::os::raw::c_int,
retval_ptr: *mut zval,
string_name: *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_eval_string_ex(
str_: *mut ::std::os::raw::c_char,
retval_ptr: *mut zval,
string_name: *mut ::std::os::raw::c_char,
handle_exceptions: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_eval_stringl_ex(
str_: *mut ::std::os::raw::c_char,
str_len: ::std::os::raw::c_int,
retval_ptr: *mut zval,
string_name: *mut ::std::os::raw::c_char,
handle_exceptions: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_verify_arg_class_kind(
cur_arg_info: *const zend_arg_info,
fetch_type: ulong,
class_name: *mut *const ::std::os::raw::c_char,
pce: *mut *mut zend_class_entry,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_verify_arg_error(
error_type: ::std::os::raw::c_int,
zf: *const zend_function,
arg_num: zend_uint,
need_msg: *const ::std::os::raw::c_char,
need_kind: *const ::std::os::raw::c_char,
given_msg: *const ::std::os::raw::c_char,
given_kind: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_vm_stack {
pub top: *mut *mut ::std::os::raw::c_void,
pub end: *mut *mut ::std::os::raw::c_void,
pub prev: zend_vm_stack,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_vm_stack"][::std::mem::size_of::<_zend_vm_stack>() - 24usize];
["Alignment of _zend_vm_stack"][::std::mem::align_of::<_zend_vm_stack>() - 8usize];
["Offset of field: _zend_vm_stack::top"][::std::mem::offset_of!(_zend_vm_stack, top) - 0usize];
["Offset of field: _zend_vm_stack::end"][::std::mem::offset_of!(_zend_vm_stack, end) - 8usize];
["Offset of field: _zend_vm_stack::prev"]
[::std::mem::offset_of!(_zend_vm_stack, prev) - 16usize];
};
extern "C" {
pub fn zend_get_executed_filename() -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_get_executed_lineno() -> uint;
}
extern "C" {
pub fn zend_is_executing() -> zend_bool;
}
extern "C" {
pub fn zend_set_timeout(seconds: ::std::os::raw::c_long, reset_signals: ::std::os::raw::c_int);
}
extern "C" {
pub fn zend_unset_timeout();
}
extern "C" {
pub fn zend_timeout(dummy: ::std::os::raw::c_int);
}
extern "C" {
pub fn zend_fetch_class(
class_name: *const ::std::os::raw::c_char,
class_name_len: uint,
fetch_type: ::std::os::raw::c_int,
) -> *mut zend_class_entry;
}
extern "C" {
pub fn zend_fetch_class_by_name(
class_name: *const ::std::os::raw::c_char,
class_name_len: uint,
key: *const zend_literal,
fetch_type: ::std::os::raw::c_int,
) -> *mut zend_class_entry;
}
extern "C" {
pub fn zend_verify_abstract_class(ce: *mut zend_class_entry);
}
extern "C" {
pub fn zend_get_compiled_variable_value(
execute_data_ptr: *const zend_execute_data,
var: zend_uint,
) -> *mut *mut zval;
}
extern "C" {
pub fn zend_set_user_opcode_handler(
opcode: zend_uchar,
handler: user_opcode_handler_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_get_user_opcode_handler(opcode: zend_uchar) -> user_opcode_handler_t;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_free_op {
pub var: *mut zval,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_free_op"][::std::mem::size_of::<_zend_free_op>() - 8usize];
["Alignment of _zend_free_op"][::std::mem::align_of::<_zend_free_op>() - 8usize];
["Offset of field: _zend_free_op::var"][::std::mem::offset_of!(_zend_free_op, var) - 0usize];
};
pub type zend_free_op = _zend_free_op;
extern "C" {
pub fn zend_get_zval_ptr(
op_type: ::std::os::raw::c_int,
node: *const znode_op,
Ts: *const temp_variable,
should_free: *mut zend_free_op,
type_: ::std::os::raw::c_int,
) -> *mut zval;
}
extern "C" {
pub fn zend_get_zval_ptr_ptr(
op_type: ::std::os::raw::c_int,
node: *const znode_op,
Ts: *const temp_variable,
should_free: *mut zend_free_op,
type_: ::std::os::raw::c_int,
) -> *mut *mut zval;
}
extern "C" {
pub fn zend_do_fcall(execute_data: *mut zend_execute_data) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_function_entry {
pub fname: *const ::std::os::raw::c_char,
pub handler: ::std::option::Option<
unsafe extern "C" fn(
ht: ::std::os::raw::c_int,
return_value: *mut zval,
return_value_ptr: *mut *mut zval,
this_ptr: *mut zval,
return_value_used: ::std::os::raw::c_int,
),
>,
pub arg_info: *const _zend_arg_info,
pub num_args: zend_uint,
pub flags: zend_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_function_entry"][::std::mem::size_of::<_zend_function_entry>() - 32usize];
["Alignment of _zend_function_entry"][::std::mem::align_of::<_zend_function_entry>() - 8usize];
["Offset of field: _zend_function_entry::fname"]
[::std::mem::offset_of!(_zend_function_entry, fname) - 0usize];
["Offset of field: _zend_function_entry::handler"]
[::std::mem::offset_of!(_zend_function_entry, handler) - 8usize];
["Offset of field: _zend_function_entry::arg_info"]
[::std::mem::offset_of!(_zend_function_entry, arg_info) - 16usize];
["Offset of field: _zend_function_entry::num_args"]
[::std::mem::offset_of!(_zend_function_entry, num_args) - 24usize];
["Offset of field: _zend_function_entry::flags"]
[::std::mem::offset_of!(_zend_function_entry, flags) - 28usize];
};
pub type zend_function_entry = _zend_function_entry;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_fcall_info {
pub size: usize,
pub function_table: *mut HashTable,
pub function_name: *mut zval,
pub symbol_table: *mut HashTable,
pub retval_ptr_ptr: *mut *mut zval,
pub param_count: zend_uint,
pub params: *mut *mut *mut zval,
pub object_ptr: *mut zval,
pub no_separation: zend_bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_fcall_info"][::std::mem::size_of::<_zend_fcall_info>() - 72usize];
["Alignment of _zend_fcall_info"][::std::mem::align_of::<_zend_fcall_info>() - 8usize];
["Offset of field: _zend_fcall_info::size"]
[::std::mem::offset_of!(_zend_fcall_info, size) - 0usize];
["Offset of field: _zend_fcall_info::function_table"]
[::std::mem::offset_of!(_zend_fcall_info, function_table) - 8usize];
["Offset of field: _zend_fcall_info::function_name"]
[::std::mem::offset_of!(_zend_fcall_info, function_name) - 16usize];
["Offset of field: _zend_fcall_info::symbol_table"]
[::std::mem::offset_of!(_zend_fcall_info, symbol_table) - 24usize];
["Offset of field: _zend_fcall_info::retval_ptr_ptr"]
[::std::mem::offset_of!(_zend_fcall_info, retval_ptr_ptr) - 32usize];
["Offset of field: _zend_fcall_info::param_count"]
[::std::mem::offset_of!(_zend_fcall_info, param_count) - 40usize];
["Offset of field: _zend_fcall_info::params"]
[::std::mem::offset_of!(_zend_fcall_info, params) - 48usize];
["Offset of field: _zend_fcall_info::object_ptr"]
[::std::mem::offset_of!(_zend_fcall_info, object_ptr) - 56usize];
["Offset of field: _zend_fcall_info::no_separation"]
[::std::mem::offset_of!(_zend_fcall_info, no_separation) - 64usize];
};
pub type zend_fcall_info = _zend_fcall_info;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_fcall_info_cache {
pub initialized: zend_bool,
pub function_handler: *mut zend_function,
pub calling_scope: *mut zend_class_entry,
pub called_scope: *mut zend_class_entry,
pub object_ptr: *mut zval,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_fcall_info_cache"][::std::mem::size_of::<_zend_fcall_info_cache>() - 40usize];
["Alignment of _zend_fcall_info_cache"]
[::std::mem::align_of::<_zend_fcall_info_cache>() - 8usize];
["Offset of field: _zend_fcall_info_cache::initialized"]
[::std::mem::offset_of!(_zend_fcall_info_cache, initialized) - 0usize];
["Offset of field: _zend_fcall_info_cache::function_handler"]
[::std::mem::offset_of!(_zend_fcall_info_cache, function_handler) - 8usize];
["Offset of field: _zend_fcall_info_cache::calling_scope"]
[::std::mem::offset_of!(_zend_fcall_info_cache, calling_scope) - 16usize];
["Offset of field: _zend_fcall_info_cache::called_scope"]
[::std::mem::offset_of!(_zend_fcall_info_cache, called_scope) - 24usize];
["Offset of field: _zend_fcall_info_cache::object_ptr"]
[::std::mem::offset_of!(_zend_fcall_info_cache, object_ptr) - 32usize];
};
pub type zend_fcall_info_cache = _zend_fcall_info_cache;
extern "C" {
pub fn zend_next_free_module() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_get_parameters(
ht: ::std::os::raw::c_int,
param_count: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _zend_get_parameters_array(
ht: ::std::os::raw::c_int,
param_count: ::std::os::raw::c_int,
argument_array: *mut *mut zval,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_get_parameters_ex(param_count: ::std::os::raw::c_int, ...)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn _zend_get_parameters_array_ex(
param_count: ::std::os::raw::c_int,
argument_array: *mut *mut *mut zval,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_copy_parameters_array(
param_count: ::std::os::raw::c_int,
argument_array: *mut zval,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_parse_parameters(
num_args: ::std::os::raw::c_int,
type_spec: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_parse_parameters_ex(
flags: ::std::os::raw::c_int,
num_args: ::std::os::raw::c_int,
type_spec: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_zval_type_name(arg: *const zval) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_parse_method_parameters(
num_args: ::std::os::raw::c_int,
this_ptr: *mut zval,
type_spec: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_parse_method_parameters_ex(
flags: ::std::os::raw::c_int,
num_args: ::std::os::raw::c_int,
this_ptr: *mut zval,
type_spec: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_register_functions(
scope: *mut zend_class_entry,
functions: *const zend_function_entry,
function_table: *mut HashTable,
type_: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_unregister_functions(
functions: *const zend_function_entry,
count: ::std::os::raw::c_int,
function_table: *mut HashTable,
);
}
extern "C" {
pub fn zend_startup_module(module_entry: *mut zend_module_entry) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_register_internal_module(
module_entry: *mut zend_module_entry,
) -> *mut zend_module_entry;
}
extern "C" {
pub fn zend_register_module_ex(module: *mut zend_module_entry) -> *mut zend_module_entry;
}
extern "C" {
pub fn zend_startup_module_ex(module: *mut zend_module_entry) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_startup_modules() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_collect_module_handlers();
}
extern "C" {
pub fn zend_destroy_modules();
}
extern "C" {
pub fn zend_check_magic_method_implementation(
ce: *const zend_class_entry,
fptr: *const zend_function,
error_type: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_register_internal_class(
class_entry: *mut zend_class_entry,
) -> *mut zend_class_entry;
}
extern "C" {
pub fn zend_register_internal_class_ex(
class_entry: *mut zend_class_entry,
parent_ce: *mut zend_class_entry,
parent_name: *mut ::std::os::raw::c_char,
) -> *mut zend_class_entry;
}
extern "C" {
pub fn zend_register_internal_interface(
orig_class_entry: *mut zend_class_entry,
) -> *mut zend_class_entry;
}
extern "C" {
pub fn zend_class_implements(
class_entry: *mut zend_class_entry,
num_interfaces: ::std::os::raw::c_int,
...
);
}
extern "C" {
pub fn zend_register_class_alias_ex(
name: *const ::std::os::raw::c_char,
name_len: ::std::os::raw::c_int,
ce: *mut zend_class_entry,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_disable_function(
function_name: *mut ::std::os::raw::c_char,
function_name_length: uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_disable_class(
class_name: *mut ::std::os::raw::c_char,
class_name_length: uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_wrong_param_count();
}
extern "C" {
pub fn zend_is_callable_ex(
callable: *mut zval,
object_ptr: *mut zval,
check_flags: uint,
callable_name: *mut *mut ::std::os::raw::c_char,
callable_name_len: *mut ::std::os::raw::c_int,
fcc: *mut zend_fcall_info_cache,
error: *mut *mut ::std::os::raw::c_char,
) -> zend_bool;
}
extern "C" {
pub fn zend_is_callable(
callable: *mut zval,
check_flags: uint,
callable_name: *mut *mut ::std::os::raw::c_char,
) -> zend_bool;
}
extern "C" {
pub fn zend_make_callable(
callable: *mut zval,
callable_name: *mut *mut ::std::os::raw::c_char,
) -> zend_bool;
}
extern "C" {
pub fn zend_get_module_version(
module_name: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_get_module_started(
module_name: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_declare_property(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
property: *mut zval,
access_type: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_declare_property_ex(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
property: *mut zval,
access_type: ::std::os::raw::c_int,
doc_comment: *const ::std::os::raw::c_char,
doc_comment_len: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_declare_property_null(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
access_type: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_declare_property_bool(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: ::std::os::raw::c_long,
access_type: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_declare_property_long(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: ::std::os::raw::c_long,
access_type: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_declare_property_double(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: f64,
access_type: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_declare_property_string(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: *const ::std::os::raw::c_char,
access_type: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_declare_property_stringl(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: *const ::std::os::raw::c_char,
value_len: ::std::os::raw::c_int,
access_type: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_declare_class_constant(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: usize,
value: *mut zval,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_declare_class_constant_null(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_declare_class_constant_long(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: usize,
value: ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_declare_class_constant_bool(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: usize,
value: zend_bool,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_declare_class_constant_double(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: usize,
value: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_declare_class_constant_stringl(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: usize,
value: *const ::std::os::raw::c_char,
value_length: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_declare_class_constant_string(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: usize,
value: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_update_class_constants(class_type: *mut zend_class_entry);
}
extern "C" {
pub fn zend_update_property(
scope: *mut zend_class_entry,
object: *mut zval,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: *mut zval,
);
}
extern "C" {
pub fn zend_update_property_null(
scope: *mut zend_class_entry,
object: *mut zval,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_update_property_bool(
scope: *mut zend_class_entry,
object: *mut zval,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: ::std::os::raw::c_long,
);
}
extern "C" {
pub fn zend_update_property_long(
scope: *mut zend_class_entry,
object: *mut zval,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: ::std::os::raw::c_long,
);
}
extern "C" {
pub fn zend_update_property_double(
scope: *mut zend_class_entry,
object: *mut zval,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: f64,
);
}
extern "C" {
pub fn zend_update_property_string(
scope: *mut zend_class_entry,
object: *mut zval,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: *const ::std::os::raw::c_char,
);
}
extern "C" {
pub fn zend_update_property_stringl(
scope: *mut zend_class_entry,
object: *mut zval,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: *const ::std::os::raw::c_char,
value_length: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_update_static_property(
scope: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: *mut zval,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_update_static_property_null(
scope: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_update_static_property_bool(
scope: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_update_static_property_long(
scope: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_update_static_property_double(
scope: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_update_static_property_string(
scope: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_update_static_property_stringl(
scope: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
value: *const ::std::os::raw::c_char,
value_length: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_read_property(
scope: *mut zend_class_entry,
object: *mut zval,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
silent: zend_bool,
) -> *mut zval;
}
extern "C" {
pub fn zend_read_static_property(
scope: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
silent: zend_bool,
) -> *mut zval;
}
extern "C" {
pub fn zend_get_class_entry(zobject: *const zval) -> *mut zend_class_entry;
}
extern "C" {
pub fn zend_get_object_classname(
object: *const zval,
class_name: *mut *const ::std::os::raw::c_char,
class_name_len: *mut zend_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_get_type_by_const(type_: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_merge_properties(
obj: *mut zval,
properties: *mut HashTable,
destroy_ht: ::std::os::raw::c_int,
);
}
extern "C" {
pub static empty_fcall_info: zend_fcall_info;
}
extern "C" {
pub static empty_fcall_info_cache: zend_fcall_info_cache;
}
extern "C" {
#[doc = " Build zend_call_info/cache from a zval*\n\n Caller is responsible to provide a return value, otherwise the we will crash.\n fci->retval_ptr_ptr = NULL;\n In order to pass parameters the following members need to be set:\n fci->param_count = 0;\n fci->params = NULL;\n The callable_name argument may be NULL.\n Set check_flags to IS_CALLABLE_STRICT for every new usage!"]
pub fn zend_fcall_info_init(
callable: *mut zval,
check_flags: uint,
fci: *mut zend_fcall_info,
fcc: *mut zend_fcall_info_cache,
callable_name: *mut *mut ::std::os::raw::c_char,
error: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[doc = " Clear arguments connected with zend_fcall_info *fci\n If free_mem is not zero then the params array gets free'd as well"]
pub fn zend_fcall_info_args_clear(fci: *mut zend_fcall_info, free_mem: ::std::os::raw::c_int);
}
extern "C" {
#[doc = " Save current arguments from zend_fcall_info *fci\n params array will be set to NULL"]
pub fn zend_fcall_info_args_save(
fci: *mut zend_fcall_info,
param_count: *mut ::std::os::raw::c_int,
params: *mut *mut *mut *mut zval,
);
}
extern "C" {
#[doc = " Free arguments connected with zend_fcall_info *fci andset back saved ones."]
pub fn zend_fcall_info_args_restore(
fci: *mut zend_fcall_info,
param_count: ::std::os::raw::c_int,
params: *mut *mut *mut zval,
);
}
extern "C" {
#[doc = " Set or clear the arguments in the zend_call_info struct taking care of\n refcount. If args is NULL and arguments are set then those are cleared."]
pub fn zend_fcall_info_args(
fci: *mut zend_fcall_info,
args: *mut zval,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[doc = " Set arguments in the zend_fcall_info struct taking care of refcount.\n If argc is 0 the arguments which are set will be cleared, else pass\n a variable amount of zval** arguments."]
pub fn zend_fcall_info_argp(
fci: *mut zend_fcall_info,
argc: ::std::os::raw::c_int,
argv: *mut *mut *mut zval,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[doc = " Set arguments in the zend_fcall_info struct taking care of refcount.\n If argc is 0 the arguments which are set will be cleared, else pass\n a variable amount of zval** arguments."]
pub fn zend_fcall_info_argv(
fci: *mut zend_fcall_info,
argc: ::std::os::raw::c_int,
argv: *mut va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[doc = " Set arguments in the zend_fcall_info struct taking care of refcount.\n If argc is 0 the arguments which are set will be cleared, else pass\n a variable amount of zval** arguments."]
pub fn zend_fcall_info_argn(
fci: *mut zend_fcall_info,
argc: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
#[doc = " Call a function using information created by zend_fcall_info_init()/args().\n If args is given then those replace the argument info in fci is temporarily."]
pub fn zend_fcall_info_call(
fci: *mut zend_fcall_info,
fcc: *mut zend_fcall_info_cache,
retval: *mut *mut zval,
args: *mut zval,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_call_function(
fci: *mut zend_fcall_info,
fci_cache: *mut zend_fcall_info_cache,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_set_hash_symbol(
symbol: *mut zval,
name: *const ::std::os::raw::c_char,
name_length: ::std::os::raw::c_int,
is_ref: zend_bool,
num_symbol_tables: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_delete_variable(
ex: *mut zend_execute_data,
ht: *mut HashTable,
name: *const ::std::os::raw::c_char,
name_len: ::std::os::raw::c_int,
hash_value: ulong,
);
}
extern "C" {
pub fn zend_delete_global_variable(
name: *const ::std::os::raw::c_char,
name_len: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_delete_global_variable_ex(
name: *const ::std::os::raw::c_char,
name_len: ::std::os::raw::c_int,
hash_value: ulong,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_reset_all_cv(symbol_table: *mut HashTable);
}
extern "C" {
pub fn zend_rebuild_symbol_table();
}
extern "C" {
pub fn zend_find_alias_name(
ce: *mut zend_class_entry,
name: *const ::std::os::raw::c_char,
len: zend_uint,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_resolve_method_name(
ce: *mut zend_class_entry,
f: *mut zend_function,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn php_strlcpy(
dst: *mut ::std::os::raw::c_char,
src: *const ::std::os::raw::c_char,
siz: usize,
) -> usize;
}
extern "C" {
pub fn php_strlcat(
dst: *mut ::std::os::raw::c_char,
src: *const ::std::os::raw::c_char,
siz: usize,
) -> usize;
}
pub type socklen_t = __socklen_t;
pub type bool_int = ::std::os::raw::c_int;
pub const boolean_e_NO: boolean_e = 0;
pub const boolean_e_YES: boolean_e = 1;
pub type boolean_e = ::std::os::raw::c_uint;
extern "C" {
pub fn php_sprintf(
s: *mut ::std::os::raw::c_char,
format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_gcvt(
value: f64,
ndigit: ::std::os::raw::c_int,
dec_point: ::std::os::raw::c_char,
exponent: ::std::os::raw::c_char,
buf: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn php_conv_fp(
format: ::std::os::raw::c_char,
num: f64,
add_dp: boolean_e,
precision: ::std::os::raw::c_int,
dec_point: ::std::os::raw::c_char,
is_negative: *mut bool_int,
buf: *mut ::std::os::raw::c_char,
len: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn php_write(buf: *mut ::std::os::raw::c_void, size: uint) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_printf(format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_get_module_initialized() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_log_err(log_message: *mut ::std::os::raw::c_char);
}
extern "C" {
pub fn php_verror(
docref: *const ::std::os::raw::c_char,
params: *const ::std::os::raw::c_char,
type_: ::std::os::raw::c_int,
format: *const ::std::os::raw::c_char,
args: *mut __va_list_tag,
);
}
extern "C" {
pub fn php_error_docref0(
docref: *const ::std::os::raw::c_char,
type_: ::std::os::raw::c_int,
format: *const ::std::os::raw::c_char,
...
);
}
extern "C" {
pub fn php_error_docref1(
docref: *const ::std::os::raw::c_char,
param1: *const ::std::os::raw::c_char,
type_: ::std::os::raw::c_int,
format: *const ::std::os::raw::c_char,
...
);
}
extern "C" {
pub fn php_error_docref2(
docref: *const ::std::os::raw::c_char,
param1: *const ::std::os::raw::c_char,
param2: *const ::std::os::raw::c_char,
type_: ::std::os::raw::c_int,
format: *const ::std::os::raw::c_char,
...
);
}
extern "C" {
pub static mut php_register_internal_extensions_func:
::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>;
}
extern "C" {
pub fn php_register_internal_extensions() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_mergesort(
base: *mut ::std::os::raw::c_void,
nmemb: usize,
size: usize,
cmp: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_register_pre_request_shutdown(
func: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
userdata: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn php_com_initialize();
}
extern "C" {
pub fn php_get_current_user() -> *mut ::std::os::raw::c_char;
}
pub const _php_output_handler_hook_t_PHP_OUTPUT_HANDLER_HOOK_GET_OPAQ: _php_output_handler_hook_t =
0;
pub const _php_output_handler_hook_t_PHP_OUTPUT_HANDLER_HOOK_GET_FLAGS: _php_output_handler_hook_t =
1;
pub const _php_output_handler_hook_t_PHP_OUTPUT_HANDLER_HOOK_GET_LEVEL: _php_output_handler_hook_t =
2;
pub const _php_output_handler_hook_t_PHP_OUTPUT_HANDLER_HOOK_IMMUTABLE: _php_output_handler_hook_t =
3;
pub const _php_output_handler_hook_t_PHP_OUTPUT_HANDLER_HOOK_DISABLE: _php_output_handler_hook_t =
4;
pub const _php_output_handler_hook_t_PHP_OUTPUT_HANDLER_HOOK_LAST: _php_output_handler_hook_t = 5;
pub type _php_output_handler_hook_t = ::std::os::raw::c_uint;
pub use self::_php_output_handler_hook_t as php_output_handler_hook_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_output_buffer {
pub data: *mut ::std::os::raw::c_char,
pub size: usize,
pub used: usize,
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub __bindgen_padding_0: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_output_buffer"][::std::mem::size_of::<_php_output_buffer>() - 32usize];
["Alignment of _php_output_buffer"][::std::mem::align_of::<_php_output_buffer>() - 8usize];
["Offset of field: _php_output_buffer::data"]
[::std::mem::offset_of!(_php_output_buffer, data) - 0usize];
["Offset of field: _php_output_buffer::size"]
[::std::mem::offset_of!(_php_output_buffer, size) - 8usize];
["Offset of field: _php_output_buffer::used"]
[::std::mem::offset_of!(_php_output_buffer, used) - 16usize];
};
impl _php_output_buffer {
#[inline]
pub fn free(&self) -> uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
}
#[inline]
pub fn set_free(&mut self, val: uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 1u8, val as u64)
}
}
#[inline]
pub fn _res(&self) -> uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) }
}
#[inline]
pub fn set__res(&mut self, val: uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(1usize, 31u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(free: uint, _res: uint) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let free: u32 = unsafe { ::std::mem::transmute(free) };
free as u64
});
__bindgen_bitfield_unit.set(1usize, 31u8, {
let _res: u32 = unsafe { ::std::mem::transmute(_res) };
_res as u64
});
__bindgen_bitfield_unit
}
}
pub type php_output_buffer = _php_output_buffer;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_output_context {
pub op: ::std::os::raw::c_int,
pub in_: php_output_buffer,
pub out: php_output_buffer,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_output_context"][::std::mem::size_of::<_php_output_context>() - 72usize];
["Alignment of _php_output_context"][::std::mem::align_of::<_php_output_context>() - 8usize];
["Offset of field: _php_output_context::op"]
[::std::mem::offset_of!(_php_output_context, op) - 0usize];
["Offset of field: _php_output_context::in_"]
[::std::mem::offset_of!(_php_output_context, in_) - 8usize];
["Offset of field: _php_output_context::out"]
[::std::mem::offset_of!(_php_output_context, out) - 40usize];
};
pub type php_output_context = _php_output_context;
pub type php_output_handler_func_t = ::std::option::Option<
unsafe extern "C" fn(
output: *mut ::std::os::raw::c_char,
output_len: uint,
handled_output: *mut *mut ::std::os::raw::c_char,
handled_output_len: *mut uint,
mode: ::std::os::raw::c_int,
),
>;
pub type php_output_handler_context_func_t = ::std::option::Option<
unsafe extern "C" fn(
handler_context: *mut *mut ::std::os::raw::c_void,
output_context: *mut php_output_context,
) -> ::std::os::raw::c_int,
>;
pub type php_output_handler_conflict_check_t = ::std::option::Option<
unsafe extern "C" fn(
handler_name: *const ::std::os::raw::c_char,
handler_name_len: usize,
) -> ::std::os::raw::c_int,
>;
pub type php_output_handler_alias_ctor_t = ::std::option::Option<
unsafe extern "C" fn(
handler_name: *const ::std::os::raw::c_char,
handler_name_len: usize,
chunk_size: usize,
flags: ::std::os::raw::c_int,
) -> *mut _php_output_handler,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_output_handler_user_func_t {
pub fci: zend_fcall_info,
pub fcc: zend_fcall_info_cache,
pub zoh: *mut zval,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_output_handler_user_func_t"]
[::std::mem::size_of::<_php_output_handler_user_func_t>() - 120usize];
["Alignment of _php_output_handler_user_func_t"]
[::std::mem::align_of::<_php_output_handler_user_func_t>() - 8usize];
["Offset of field: _php_output_handler_user_func_t::fci"]
[::std::mem::offset_of!(_php_output_handler_user_func_t, fci) - 0usize];
["Offset of field: _php_output_handler_user_func_t::fcc"]
[::std::mem::offset_of!(_php_output_handler_user_func_t, fcc) - 72usize];
["Offset of field: _php_output_handler_user_func_t::zoh"]
[::std::mem::offset_of!(_php_output_handler_user_func_t, zoh) - 112usize];
};
pub type php_output_handler_user_func_t = _php_output_handler_user_func_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _php_output_handler {
pub name: *mut ::std::os::raw::c_char,
pub name_len: usize,
pub flags: ::std::os::raw::c_int,
pub level: ::std::os::raw::c_int,
pub size: usize,
pub buffer: php_output_buffer,
pub opaq: *mut ::std::os::raw::c_void,
pub dtor: ::std::option::Option<unsafe extern "C" fn(opaq: *mut ::std::os::raw::c_void)>,
pub func: _php_output_handler__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _php_output_handler__bindgen_ty_1 {
pub user: *mut php_output_handler_user_func_t,
pub internal: php_output_handler_context_func_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_output_handler__bindgen_ty_1"]
[::std::mem::size_of::<_php_output_handler__bindgen_ty_1>() - 8usize];
["Alignment of _php_output_handler__bindgen_ty_1"]
[::std::mem::align_of::<_php_output_handler__bindgen_ty_1>() - 8usize];
["Offset of field: _php_output_handler__bindgen_ty_1::user"]
[::std::mem::offset_of!(_php_output_handler__bindgen_ty_1, user) - 0usize];
["Offset of field: _php_output_handler__bindgen_ty_1::internal"]
[::std::mem::offset_of!(_php_output_handler__bindgen_ty_1, internal) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_output_handler"][::std::mem::size_of::<_php_output_handler>() - 88usize];
["Alignment of _php_output_handler"][::std::mem::align_of::<_php_output_handler>() - 8usize];
["Offset of field: _php_output_handler::name"]
[::std::mem::offset_of!(_php_output_handler, name) - 0usize];
["Offset of field: _php_output_handler::name_len"]
[::std::mem::offset_of!(_php_output_handler, name_len) - 8usize];
["Offset of field: _php_output_handler::flags"]
[::std::mem::offset_of!(_php_output_handler, flags) - 16usize];
["Offset of field: _php_output_handler::level"]
[::std::mem::offset_of!(_php_output_handler, level) - 20usize];
["Offset of field: _php_output_handler::size"]
[::std::mem::offset_of!(_php_output_handler, size) - 24usize];
["Offset of field: _php_output_handler::buffer"]
[::std::mem::offset_of!(_php_output_handler, buffer) - 32usize];
["Offset of field: _php_output_handler::opaq"]
[::std::mem::offset_of!(_php_output_handler, opaq) - 64usize];
["Offset of field: _php_output_handler::dtor"]
[::std::mem::offset_of!(_php_output_handler, dtor) - 72usize];
["Offset of field: _php_output_handler::func"]
[::std::mem::offset_of!(_php_output_handler, func) - 80usize];
};
pub type php_output_handler = _php_output_handler;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_output_globals {
pub flags: ::std::os::raw::c_int,
pub handlers: zend_stack,
pub active: *mut php_output_handler,
pub running: *mut php_output_handler,
pub output_start_filename: *const ::std::os::raw::c_char,
pub output_start_lineno: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_output_globals"][::std::mem::size_of::<_zend_output_globals>() - 56usize];
["Alignment of _zend_output_globals"][::std::mem::align_of::<_zend_output_globals>() - 8usize];
["Offset of field: _zend_output_globals::flags"]
[::std::mem::offset_of!(_zend_output_globals, flags) - 0usize];
["Offset of field: _zend_output_globals::handlers"]
[::std::mem::offset_of!(_zend_output_globals, handlers) - 8usize];
["Offset of field: _zend_output_globals::active"]
[::std::mem::offset_of!(_zend_output_globals, active) - 24usize];
["Offset of field: _zend_output_globals::running"]
[::std::mem::offset_of!(_zend_output_globals, running) - 32usize];
["Offset of field: _zend_output_globals::output_start_filename"]
[::std::mem::offset_of!(_zend_output_globals, output_start_filename) - 40usize];
["Offset of field: _zend_output_globals::output_start_lineno"]
[::std::mem::offset_of!(_zend_output_globals, output_start_lineno) - 48usize];
};
pub type zend_output_globals = _zend_output_globals;
extern "C" {
pub static php_output_default_handler_name: [::std::os::raw::c_char; 23usize];
}
extern "C" {
pub static php_output_devnull_handler_name: [::std::os::raw::c_char; 20usize];
}
extern "C" {
pub fn php_output_startup();
}
extern "C" {
pub fn php_output_shutdown();
}
extern "C" {
pub fn php_output_register_constants();
}
extern "C" {
pub fn php_output_activate() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_deactivate();
}
extern "C" {
pub fn php_output_set_status(status: ::std::os::raw::c_int);
}
extern "C" {
pub fn php_output_get_status() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_set_implicit_flush(flush: ::std::os::raw::c_int);
}
extern "C" {
pub fn php_output_get_start_filename() -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn php_output_get_start_lineno() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_write_unbuffered(
str_: *const ::std::os::raw::c_char,
len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_write(
str_: *const ::std::os::raw::c_char,
len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_flush() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_flush_all();
}
extern "C" {
pub fn php_output_clean() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_clean_all();
}
extern "C" {
pub fn php_output_end() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_end_all();
}
extern "C" {
pub fn php_output_discard() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_discard_all();
}
extern "C" {
pub fn php_output_get_contents(p: *mut zval) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_get_length(p: *mut zval) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_get_level() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_get_active_handler() -> *mut php_output_handler;
}
extern "C" {
pub fn php_output_start_default() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_start_devnull() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_start_user(
output_handler: *mut zval,
chunk_size: usize,
flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_start_internal(
name: *const ::std::os::raw::c_char,
name_len: usize,
output_handler: php_output_handler_func_t,
chunk_size: usize,
flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_handler_create_user(
handler: *mut zval,
chunk_size: usize,
flags: ::std::os::raw::c_int,
) -> *mut php_output_handler;
}
extern "C" {
pub fn php_output_handler_create_internal(
name: *const ::std::os::raw::c_char,
name_len: usize,
handler: php_output_handler_context_func_t,
chunk_size: usize,
flags: ::std::os::raw::c_int,
) -> *mut php_output_handler;
}
extern "C" {
pub fn php_output_handler_set_context(
handler: *mut php_output_handler,
opaq: *mut ::std::os::raw::c_void,
dtor: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
);
}
extern "C" {
pub fn php_output_handler_start(handler: *mut php_output_handler) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_handler_started(
name: *const ::std::os::raw::c_char,
name_len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_handler_hook(
type_: php_output_handler_hook_t,
arg: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_handler_dtor(handler: *mut php_output_handler);
}
extern "C" {
pub fn php_output_handler_free(handler: *mut *mut php_output_handler);
}
extern "C" {
pub fn php_output_handler_conflict(
handler_new: *const ::std::os::raw::c_char,
handler_new_len: usize,
handler_set: *const ::std::os::raw::c_char,
handler_set_len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_handler_conflict_register(
handler_name: *const ::std::os::raw::c_char,
handler_name_len: usize,
check_func: php_output_handler_conflict_check_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_handler_reverse_conflict_register(
handler_name: *const ::std::os::raw::c_char,
handler_name_len: usize,
check_func: php_output_handler_conflict_check_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_output_handler_alias(
handler_name: *const ::std::os::raw::c_char,
handler_name_len: usize,
) -> *mut php_output_handler_alias_ctor_t;
}
extern "C" {
pub fn php_output_handler_alias_register(
handler_name: *const ::std::os::raw::c_char,
handler_name_len: usize,
func: php_output_handler_alias_ctor_t,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct stat {
pub st_dev: __dev_t,
pub st_ino: __ino_t,
pub st_nlink: __nlink_t,
pub st_mode: __mode_t,
pub st_uid: __uid_t,
pub st_gid: __gid_t,
pub __pad0: ::std::os::raw::c_int,
pub st_rdev: __dev_t,
pub st_size: __off_t,
pub st_blksize: __blksize_t,
pub st_blocks: __blkcnt_t,
pub st_atim: timespec,
pub st_mtim: timespec,
pub st_ctim: timespec,
pub __glibc_reserved: [__syscall_slong_t; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of stat"][::std::mem::size_of::<stat>() - 144usize];
["Alignment of stat"][::std::mem::align_of::<stat>() - 8usize];
["Offset of field: stat::st_dev"][::std::mem::offset_of!(stat, st_dev) - 0usize];
["Offset of field: stat::st_ino"][::std::mem::offset_of!(stat, st_ino) - 8usize];
["Offset of field: stat::st_nlink"][::std::mem::offset_of!(stat, st_nlink) - 16usize];
["Offset of field: stat::st_mode"][::std::mem::offset_of!(stat, st_mode) - 24usize];
["Offset of field: stat::st_uid"][::std::mem::offset_of!(stat, st_uid) - 28usize];
["Offset of field: stat::st_gid"][::std::mem::offset_of!(stat, st_gid) - 32usize];
["Offset of field: stat::__pad0"][::std::mem::offset_of!(stat, __pad0) - 36usize];
["Offset of field: stat::st_rdev"][::std::mem::offset_of!(stat, st_rdev) - 40usize];
["Offset of field: stat::st_size"][::std::mem::offset_of!(stat, st_size) - 48usize];
["Offset of field: stat::st_blksize"][::std::mem::offset_of!(stat, st_blksize) - 56usize];
["Offset of field: stat::st_blocks"][::std::mem::offset_of!(stat, st_blocks) - 64usize];
["Offset of field: stat::st_atim"][::std::mem::offset_of!(stat, st_atim) - 72usize];
["Offset of field: stat::st_mtim"][::std::mem::offset_of!(stat, st_mtim) - 88usize];
["Offset of field: stat::st_ctim"][::std::mem::offset_of!(stat, st_ctim) - 104usize];
["Offset of field: stat::__glibc_reserved"]
[::std::mem::offset_of!(stat, __glibc_reserved) - 120usize];
};
extern "C" {
pub fn php_file_le_stream() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_file_le_pstream() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_file_le_stream_filter() -> ::std::os::raw::c_int;
}
pub type php_stream = _php_stream;
pub type php_stream_wrapper = _php_stream_wrapper;
pub type php_stream_context = _php_stream_context;
pub type php_stream_filter = _php_stream_filter;
pub type php_stream_notification_func = ::std::option::Option<
unsafe extern "C" fn(
context: *mut php_stream_context,
notifycode: ::std::os::raw::c_int,
severity: ::std::os::raw::c_int,
xmsg: *mut ::std::os::raw::c_char,
xcode: ::std::os::raw::c_int,
bytes_sofar: usize,
bytes_max: usize,
ptr: *mut ::std::os::raw::c_void,
),
>;
pub type php_stream_notifier = _php_stream_notifier;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_stream_notifier {
pub func: php_stream_notification_func,
pub dtor: ::std::option::Option<unsafe extern "C" fn(notifier: *mut php_stream_notifier)>,
pub ptr: *mut ::std::os::raw::c_void,
pub mask: ::std::os::raw::c_int,
pub progress: usize,
pub progress_max: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_stream_notifier"][::std::mem::size_of::<_php_stream_notifier>() - 48usize];
["Alignment of _php_stream_notifier"][::std::mem::align_of::<_php_stream_notifier>() - 8usize];
["Offset of field: _php_stream_notifier::func"]
[::std::mem::offset_of!(_php_stream_notifier, func) - 0usize];
["Offset of field: _php_stream_notifier::dtor"]
[::std::mem::offset_of!(_php_stream_notifier, dtor) - 8usize];
["Offset of field: _php_stream_notifier::ptr"]
[::std::mem::offset_of!(_php_stream_notifier, ptr) - 16usize];
["Offset of field: _php_stream_notifier::mask"]
[::std::mem::offset_of!(_php_stream_notifier, mask) - 24usize];
["Offset of field: _php_stream_notifier::progress"]
[::std::mem::offset_of!(_php_stream_notifier, progress) - 32usize];
["Offset of field: _php_stream_notifier::progress_max"]
[::std::mem::offset_of!(_php_stream_notifier, progress_max) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_stream_context {
pub notifier: *mut php_stream_notifier,
pub options: *mut zval,
pub links: *mut zval,
pub rsrc_id: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_stream_context"][::std::mem::size_of::<_php_stream_context>() - 32usize];
["Alignment of _php_stream_context"][::std::mem::align_of::<_php_stream_context>() - 8usize];
["Offset of field: _php_stream_context::notifier"]
[::std::mem::offset_of!(_php_stream_context, notifier) - 0usize];
["Offset of field: _php_stream_context::options"]
[::std::mem::offset_of!(_php_stream_context, options) - 8usize];
["Offset of field: _php_stream_context::links"]
[::std::mem::offset_of!(_php_stream_context, links) - 16usize];
["Offset of field: _php_stream_context::rsrc_id"]
[::std::mem::offset_of!(_php_stream_context, rsrc_id) - 24usize];
};
extern "C" {
pub fn php_stream_context_free(context: *mut php_stream_context);
}
extern "C" {
pub fn php_stream_context_alloc() -> *mut php_stream_context;
}
extern "C" {
pub fn php_stream_context_get_option(
context: *mut php_stream_context,
wrappername: *const ::std::os::raw::c_char,
optionname: *const ::std::os::raw::c_char,
optionvalue: *mut *mut *mut zval,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_context_set_option(
context: *mut php_stream_context,
wrappername: *const ::std::os::raw::c_char,
optionname: *const ::std::os::raw::c_char,
optionvalue: *mut zval,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_context_get_link(
context: *mut php_stream_context,
hostent: *const ::std::os::raw::c_char,
stream: *mut *mut php_stream,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_context_set_link(
context: *mut php_stream_context,
hostent: *const ::std::os::raw::c_char,
stream: *mut php_stream,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_context_del_link(
context: *mut php_stream_context,
stream: *mut php_stream,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_notification_alloc() -> *mut php_stream_notifier;
}
extern "C" {
pub fn php_stream_notification_free(notifier: *mut php_stream_notifier);
}
extern "C" {
pub fn php_stream_notification_notify(
context: *mut php_stream_context,
notifycode: ::std::os::raw::c_int,
severity: ::std::os::raw::c_int,
xmsg: *mut ::std::os::raw::c_char,
xcode: ::std::os::raw::c_int,
bytes_sofar: usize,
bytes_max: usize,
ptr: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn php_stream_context_set(
stream: *mut php_stream,
context: *mut php_stream_context,
) -> *mut php_stream_context;
}
pub type php_stream_bucket = _php_stream_bucket;
pub type php_stream_bucket_brigade = _php_stream_bucket_brigade;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_stream_bucket {
pub next: *mut php_stream_bucket,
pub prev: *mut php_stream_bucket,
pub brigade: *mut php_stream_bucket_brigade,
pub buf: *mut ::std::os::raw::c_char,
pub buflen: usize,
pub own_buf: ::std::os::raw::c_int,
pub is_persistent: ::std::os::raw::c_int,
pub refcount: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_stream_bucket"][::std::mem::size_of::<_php_stream_bucket>() - 56usize];
["Alignment of _php_stream_bucket"][::std::mem::align_of::<_php_stream_bucket>() - 8usize];
["Offset of field: _php_stream_bucket::next"]
[::std::mem::offset_of!(_php_stream_bucket, next) - 0usize];
["Offset of field: _php_stream_bucket::prev"]
[::std::mem::offset_of!(_php_stream_bucket, prev) - 8usize];
["Offset of field: _php_stream_bucket::brigade"]
[::std::mem::offset_of!(_php_stream_bucket, brigade) - 16usize];
["Offset of field: _php_stream_bucket::buf"]
[::std::mem::offset_of!(_php_stream_bucket, buf) - 24usize];
["Offset of field: _php_stream_bucket::buflen"]
[::std::mem::offset_of!(_php_stream_bucket, buflen) - 32usize];
["Offset of field: _php_stream_bucket::own_buf"]
[::std::mem::offset_of!(_php_stream_bucket, own_buf) - 40usize];
["Offset of field: _php_stream_bucket::is_persistent"]
[::std::mem::offset_of!(_php_stream_bucket, is_persistent) - 44usize];
["Offset of field: _php_stream_bucket::refcount"]
[::std::mem::offset_of!(_php_stream_bucket, refcount) - 48usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_stream_bucket_brigade {
pub head: *mut php_stream_bucket,
pub tail: *mut php_stream_bucket,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_stream_bucket_brigade"]
[::std::mem::size_of::<_php_stream_bucket_brigade>() - 16usize];
["Alignment of _php_stream_bucket_brigade"]
[::std::mem::align_of::<_php_stream_bucket_brigade>() - 8usize];
["Offset of field: _php_stream_bucket_brigade::head"]
[::std::mem::offset_of!(_php_stream_bucket_brigade, head) - 0usize];
["Offset of field: _php_stream_bucket_brigade::tail"]
[::std::mem::offset_of!(_php_stream_bucket_brigade, tail) - 8usize];
};
pub const php_stream_filter_status_t_PSFS_ERR_FATAL: php_stream_filter_status_t = 0;
pub const php_stream_filter_status_t_PSFS_FEED_ME: php_stream_filter_status_t = 1;
pub const php_stream_filter_status_t_PSFS_PASS_ON: php_stream_filter_status_t = 2;
pub type php_stream_filter_status_t = ::std::os::raw::c_uint;
extern "C" {
pub fn php_stream_bucket_new(
stream: *mut php_stream,
buf: *mut ::std::os::raw::c_char,
buflen: usize,
own_buf: ::std::os::raw::c_int,
buf_persistent: ::std::os::raw::c_int,
) -> *mut php_stream_bucket;
}
extern "C" {
pub fn php_stream_bucket_split(
in_: *mut php_stream_bucket,
left: *mut *mut php_stream_bucket,
right: *mut *mut php_stream_bucket,
length: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_bucket_delref(bucket: *mut php_stream_bucket);
}
extern "C" {
pub fn php_stream_bucket_prepend(
brigade: *mut php_stream_bucket_brigade,
bucket: *mut php_stream_bucket,
);
}
extern "C" {
pub fn php_stream_bucket_append(
brigade: *mut php_stream_bucket_brigade,
bucket: *mut php_stream_bucket,
);
}
extern "C" {
pub fn php_stream_bucket_unlink(bucket: *mut php_stream_bucket);
}
extern "C" {
pub fn php_stream_bucket_make_writeable(
bucket: *mut php_stream_bucket,
) -> *mut php_stream_bucket;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_stream_filter_ops {
pub filter: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut php_stream,
thisfilter: *mut php_stream_filter,
buckets_in: *mut php_stream_bucket_brigade,
buckets_out: *mut php_stream_bucket_brigade,
bytes_consumed: *mut usize,
flags: ::std::os::raw::c_int,
) -> php_stream_filter_status_t,
>,
pub dtor: ::std::option::Option<unsafe extern "C" fn(thisfilter: *mut php_stream_filter)>,
pub label: *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_stream_filter_ops"][::std::mem::size_of::<_php_stream_filter_ops>() - 24usize];
["Alignment of _php_stream_filter_ops"]
[::std::mem::align_of::<_php_stream_filter_ops>() - 8usize];
["Offset of field: _php_stream_filter_ops::filter"]
[::std::mem::offset_of!(_php_stream_filter_ops, filter) - 0usize];
["Offset of field: _php_stream_filter_ops::dtor"]
[::std::mem::offset_of!(_php_stream_filter_ops, dtor) - 8usize];
["Offset of field: _php_stream_filter_ops::label"]
[::std::mem::offset_of!(_php_stream_filter_ops, label) - 16usize];
};
pub type php_stream_filter_ops = _php_stream_filter_ops;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_stream_filter_chain {
pub head: *mut php_stream_filter,
pub tail: *mut php_stream_filter,
pub stream: *mut php_stream,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_stream_filter_chain"]
[::std::mem::size_of::<_php_stream_filter_chain>() - 24usize];
["Alignment of _php_stream_filter_chain"]
[::std::mem::align_of::<_php_stream_filter_chain>() - 8usize];
["Offset of field: _php_stream_filter_chain::head"]
[::std::mem::offset_of!(_php_stream_filter_chain, head) - 0usize];
["Offset of field: _php_stream_filter_chain::tail"]
[::std::mem::offset_of!(_php_stream_filter_chain, tail) - 8usize];
["Offset of field: _php_stream_filter_chain::stream"]
[::std::mem::offset_of!(_php_stream_filter_chain, stream) - 16usize];
};
pub type php_stream_filter_chain = _php_stream_filter_chain;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_stream_filter {
pub fops: *mut php_stream_filter_ops,
pub abstract_: *mut ::std::os::raw::c_void,
pub next: *mut php_stream_filter,
pub prev: *mut php_stream_filter,
pub is_persistent: ::std::os::raw::c_int,
pub chain: *mut php_stream_filter_chain,
pub buffer: php_stream_bucket_brigade,
pub rsrc_id: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_stream_filter"][::std::mem::size_of::<_php_stream_filter>() - 72usize];
["Alignment of _php_stream_filter"][::std::mem::align_of::<_php_stream_filter>() - 8usize];
["Offset of field: _php_stream_filter::fops"]
[::std::mem::offset_of!(_php_stream_filter, fops) - 0usize];
["Offset of field: _php_stream_filter::abstract_"]
[::std::mem::offset_of!(_php_stream_filter, abstract_) - 8usize];
["Offset of field: _php_stream_filter::next"]
[::std::mem::offset_of!(_php_stream_filter, next) - 16usize];
["Offset of field: _php_stream_filter::prev"]
[::std::mem::offset_of!(_php_stream_filter, prev) - 24usize];
["Offset of field: _php_stream_filter::is_persistent"]
[::std::mem::offset_of!(_php_stream_filter, is_persistent) - 32usize];
["Offset of field: _php_stream_filter::chain"]
[::std::mem::offset_of!(_php_stream_filter, chain) - 40usize];
["Offset of field: _php_stream_filter::buffer"]
[::std::mem::offset_of!(_php_stream_filter, buffer) - 48usize];
["Offset of field: _php_stream_filter::rsrc_id"]
[::std::mem::offset_of!(_php_stream_filter, rsrc_id) - 64usize];
};
extern "C" {
pub fn php_stream_filter_prepend_ex(
chain: *mut php_stream_filter_chain,
filter: *mut php_stream_filter,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_filter_append_ex(
chain: *mut php_stream_filter_chain,
filter: *mut php_stream_filter,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_filter_remove(
filter: *mut php_stream_filter,
call_dtor: ::std::os::raw::c_int,
) -> *mut php_stream_filter;
}
extern "C" {
pub fn php_stream_filter_free(filter: *mut php_stream_filter);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_stream_filter_factory {
pub create_filter: ::std::option::Option<
unsafe extern "C" fn(
filtername: *const ::std::os::raw::c_char,
filterparams: *mut zval,
persistent: ::std::os::raw::c_int,
) -> *mut php_stream_filter,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_stream_filter_factory"]
[::std::mem::size_of::<_php_stream_filter_factory>() - 8usize];
["Alignment of _php_stream_filter_factory"]
[::std::mem::align_of::<_php_stream_filter_factory>() - 8usize];
["Offset of field: _php_stream_filter_factory::create_filter"]
[::std::mem::offset_of!(_php_stream_filter_factory, create_filter) - 0usize];
};
pub type php_stream_filter_factory = _php_stream_filter_factory;
extern "C" {
pub fn php_stream_filter_register_factory(
filterpattern: *const ::std::os::raw::c_char,
factory: *mut php_stream_filter_factory,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_filter_unregister_factory(
filterpattern: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_filter_register_factory_volatile(
filterpattern: *const ::std::os::raw::c_char,
factory: *mut php_stream_filter_factory,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_filter_create(
filtername: *const ::std::os::raw::c_char,
filterparams: *mut zval,
persistent: ::std::os::raw::c_int,
) -> *mut php_stream_filter;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_stream_statbuf {
pub sb: stat,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_stream_statbuf"][::std::mem::size_of::<_php_stream_statbuf>() - 144usize];
["Alignment of _php_stream_statbuf"][::std::mem::align_of::<_php_stream_statbuf>() - 8usize];
["Offset of field: _php_stream_statbuf::sb"]
[::std::mem::offset_of!(_php_stream_statbuf, sb) - 0usize];
};
pub type php_stream_statbuf = _php_stream_statbuf;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_stream_ops {
pub write: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut php_stream,
buf: *const ::std::os::raw::c_char,
count: usize,
) -> usize,
>,
pub read: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut php_stream,
buf: *mut ::std::os::raw::c_char,
count: usize,
) -> usize,
>,
pub close: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut php_stream,
close_handle: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub flush: ::std::option::Option<
unsafe extern "C" fn(stream: *mut php_stream) -> ::std::os::raw::c_int,
>,
pub label: *const ::std::os::raw::c_char,
pub seek: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut php_stream,
offset: off_t,
whence: ::std::os::raw::c_int,
newoffset: *mut off_t,
) -> ::std::os::raw::c_int,
>,
pub cast: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut php_stream,
castas: ::std::os::raw::c_int,
ret: *mut *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub stat: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut php_stream,
ssb: *mut php_stream_statbuf,
) -> ::std::os::raw::c_int,
>,
pub set_option: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut php_stream,
option: ::std::os::raw::c_int,
value: ::std::os::raw::c_int,
ptrparam: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_stream_ops"][::std::mem::size_of::<_php_stream_ops>() - 72usize];
["Alignment of _php_stream_ops"][::std::mem::align_of::<_php_stream_ops>() - 8usize];
["Offset of field: _php_stream_ops::write"]
[::std::mem::offset_of!(_php_stream_ops, write) - 0usize];
["Offset of field: _php_stream_ops::read"]
[::std::mem::offset_of!(_php_stream_ops, read) - 8usize];
["Offset of field: _php_stream_ops::close"]
[::std::mem::offset_of!(_php_stream_ops, close) - 16usize];
["Offset of field: _php_stream_ops::flush"]
[::std::mem::offset_of!(_php_stream_ops, flush) - 24usize];
["Offset of field: _php_stream_ops::label"]
[::std::mem::offset_of!(_php_stream_ops, label) - 32usize];
["Offset of field: _php_stream_ops::seek"]
[::std::mem::offset_of!(_php_stream_ops, seek) - 40usize];
["Offset of field: _php_stream_ops::cast"]
[::std::mem::offset_of!(_php_stream_ops, cast) - 48usize];
["Offset of field: _php_stream_ops::stat"]
[::std::mem::offset_of!(_php_stream_ops, stat) - 56usize];
["Offset of field: _php_stream_ops::set_option"]
[::std::mem::offset_of!(_php_stream_ops, set_option) - 64usize];
};
pub type php_stream_ops = _php_stream_ops;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_stream_wrapper_ops {
pub stream_opener: ::std::option::Option<
unsafe extern "C" fn(
wrapper: *mut php_stream_wrapper,
filename: *mut ::std::os::raw::c_char,
mode: *mut ::std::os::raw::c_char,
options: ::std::os::raw::c_int,
opened_path: *mut *mut ::std::os::raw::c_char,
context: *mut php_stream_context,
) -> *mut php_stream,
>,
pub stream_closer: ::std::option::Option<
unsafe extern "C" fn(
wrapper: *mut php_stream_wrapper,
stream: *mut php_stream,
) -> ::std::os::raw::c_int,
>,
pub stream_stat: ::std::option::Option<
unsafe extern "C" fn(
wrapper: *mut php_stream_wrapper,
stream: *mut php_stream,
ssb: *mut php_stream_statbuf,
) -> ::std::os::raw::c_int,
>,
pub url_stat: ::std::option::Option<
unsafe extern "C" fn(
wrapper: *mut php_stream_wrapper,
url: *mut ::std::os::raw::c_char,
flags: ::std::os::raw::c_int,
ssb: *mut php_stream_statbuf,
context: *mut php_stream_context,
) -> ::std::os::raw::c_int,
>,
pub dir_opener: ::std::option::Option<
unsafe extern "C" fn(
wrapper: *mut php_stream_wrapper,
filename: *mut ::std::os::raw::c_char,
mode: *mut ::std::os::raw::c_char,
options: ::std::os::raw::c_int,
opened_path: *mut *mut ::std::os::raw::c_char,
context: *mut php_stream_context,
) -> *mut php_stream,
>,
pub label: *const ::std::os::raw::c_char,
pub unlink: ::std::option::Option<
unsafe extern "C" fn(
wrapper: *mut php_stream_wrapper,
url: *mut ::std::os::raw::c_char,
options: ::std::os::raw::c_int,
context: *mut php_stream_context,
) -> ::std::os::raw::c_int,
>,
pub rename: ::std::option::Option<
unsafe extern "C" fn(
wrapper: *mut php_stream_wrapper,
url_from: *mut ::std::os::raw::c_char,
url_to: *mut ::std::os::raw::c_char,
options: ::std::os::raw::c_int,
context: *mut php_stream_context,
) -> ::std::os::raw::c_int,
>,
pub stream_mkdir: ::std::option::Option<
unsafe extern "C" fn(
wrapper: *mut php_stream_wrapper,
url: *mut ::std::os::raw::c_char,
mode: ::std::os::raw::c_int,
options: ::std::os::raw::c_int,
context: *mut php_stream_context,
) -> ::std::os::raw::c_int,
>,
pub stream_rmdir: ::std::option::Option<
unsafe extern "C" fn(
wrapper: *mut php_stream_wrapper,
url: *mut ::std::os::raw::c_char,
options: ::std::os::raw::c_int,
context: *mut php_stream_context,
) -> ::std::os::raw::c_int,
>,
pub stream_metadata: ::std::option::Option<
unsafe extern "C" fn(
wrapper: *mut php_stream_wrapper,
url: *mut ::std::os::raw::c_char,
options: ::std::os::raw::c_int,
value: *mut ::std::os::raw::c_void,
context: *mut php_stream_context,
) -> ::std::os::raw::c_int,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_stream_wrapper_ops"][::std::mem::size_of::<_php_stream_wrapper_ops>() - 88usize];
["Alignment of _php_stream_wrapper_ops"]
[::std::mem::align_of::<_php_stream_wrapper_ops>() - 8usize];
["Offset of field: _php_stream_wrapper_ops::stream_opener"]
[::std::mem::offset_of!(_php_stream_wrapper_ops, stream_opener) - 0usize];
["Offset of field: _php_stream_wrapper_ops::stream_closer"]
[::std::mem::offset_of!(_php_stream_wrapper_ops, stream_closer) - 8usize];
["Offset of field: _php_stream_wrapper_ops::stream_stat"]
[::std::mem::offset_of!(_php_stream_wrapper_ops, stream_stat) - 16usize];
["Offset of field: _php_stream_wrapper_ops::url_stat"]
[::std::mem::offset_of!(_php_stream_wrapper_ops, url_stat) - 24usize];
["Offset of field: _php_stream_wrapper_ops::dir_opener"]
[::std::mem::offset_of!(_php_stream_wrapper_ops, dir_opener) - 32usize];
["Offset of field: _php_stream_wrapper_ops::label"]
[::std::mem::offset_of!(_php_stream_wrapper_ops, label) - 40usize];
["Offset of field: _php_stream_wrapper_ops::unlink"]
[::std::mem::offset_of!(_php_stream_wrapper_ops, unlink) - 48usize];
["Offset of field: _php_stream_wrapper_ops::rename"]
[::std::mem::offset_of!(_php_stream_wrapper_ops, rename) - 56usize];
["Offset of field: _php_stream_wrapper_ops::stream_mkdir"]
[::std::mem::offset_of!(_php_stream_wrapper_ops, stream_mkdir) - 64usize];
["Offset of field: _php_stream_wrapper_ops::stream_rmdir"]
[::std::mem::offset_of!(_php_stream_wrapper_ops, stream_rmdir) - 72usize];
["Offset of field: _php_stream_wrapper_ops::stream_metadata"]
[::std::mem::offset_of!(_php_stream_wrapper_ops, stream_metadata) - 80usize];
};
pub type php_stream_wrapper_ops = _php_stream_wrapper_ops;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_stream_wrapper {
pub wops: *mut php_stream_wrapper_ops,
pub abstract_: *mut ::std::os::raw::c_void,
pub is_url: ::std::os::raw::c_int,
pub err_count: ::std::os::raw::c_int,
pub err_stack: *mut *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_stream_wrapper"][::std::mem::size_of::<_php_stream_wrapper>() - 32usize];
["Alignment of _php_stream_wrapper"][::std::mem::align_of::<_php_stream_wrapper>() - 8usize];
["Offset of field: _php_stream_wrapper::wops"]
[::std::mem::offset_of!(_php_stream_wrapper, wops) - 0usize];
["Offset of field: _php_stream_wrapper::abstract_"]
[::std::mem::offset_of!(_php_stream_wrapper, abstract_) - 8usize];
["Offset of field: _php_stream_wrapper::is_url"]
[::std::mem::offset_of!(_php_stream_wrapper, is_url) - 16usize];
["Offset of field: _php_stream_wrapper::err_count"]
[::std::mem::offset_of!(_php_stream_wrapper, err_count) - 20usize];
["Offset of field: _php_stream_wrapper::err_stack"]
[::std::mem::offset_of!(_php_stream_wrapper, err_stack) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_stream {
pub ops: *mut php_stream_ops,
pub abstract_: *mut ::std::os::raw::c_void,
pub readfilters: php_stream_filter_chain,
pub writefilters: php_stream_filter_chain,
pub wrapper: *mut php_stream_wrapper,
pub wrapperthis: *mut ::std::os::raw::c_void,
pub wrapperdata: *mut zval,
pub fgetss_state: ::std::os::raw::c_int,
pub is_persistent: ::std::os::raw::c_int,
pub mode: [::std::os::raw::c_char; 16usize],
pub rsrc_id: ::std::os::raw::c_int,
pub in_free: ::std::os::raw::c_int,
pub fclose_stdiocast: ::std::os::raw::c_int,
pub stdiocast: *mut FILE,
pub orig_path: *mut ::std::os::raw::c_char,
pub context: *mut php_stream_context,
pub flags: ::std::os::raw::c_int,
pub position: off_t,
pub readbuf: *mut ::std::os::raw::c_uchar,
pub readbuflen: usize,
pub readpos: off_t,
pub writepos: off_t,
pub chunk_size: usize,
pub eof: ::std::os::raw::c_int,
pub enclosing_stream: *mut _php_stream,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_stream"][::std::mem::size_of::<_php_stream>() - 224usize];
["Alignment of _php_stream"][::std::mem::align_of::<_php_stream>() - 8usize];
["Offset of field: _php_stream::ops"][::std::mem::offset_of!(_php_stream, ops) - 0usize];
["Offset of field: _php_stream::abstract_"]
[::std::mem::offset_of!(_php_stream, abstract_) - 8usize];
["Offset of field: _php_stream::readfilters"]
[::std::mem::offset_of!(_php_stream, readfilters) - 16usize];
["Offset of field: _php_stream::writefilters"]
[::std::mem::offset_of!(_php_stream, writefilters) - 40usize];
["Offset of field: _php_stream::wrapper"]
[::std::mem::offset_of!(_php_stream, wrapper) - 64usize];
["Offset of field: _php_stream::wrapperthis"]
[::std::mem::offset_of!(_php_stream, wrapperthis) - 72usize];
["Offset of field: _php_stream::wrapperdata"]
[::std::mem::offset_of!(_php_stream, wrapperdata) - 80usize];
["Offset of field: _php_stream::fgetss_state"]
[::std::mem::offset_of!(_php_stream, fgetss_state) - 88usize];
["Offset of field: _php_stream::is_persistent"]
[::std::mem::offset_of!(_php_stream, is_persistent) - 92usize];
["Offset of field: _php_stream::mode"][::std::mem::offset_of!(_php_stream, mode) - 96usize];
["Offset of field: _php_stream::rsrc_id"]
[::std::mem::offset_of!(_php_stream, rsrc_id) - 112usize];
["Offset of field: _php_stream::in_free"]
[::std::mem::offset_of!(_php_stream, in_free) - 116usize];
["Offset of field: _php_stream::fclose_stdiocast"]
[::std::mem::offset_of!(_php_stream, fclose_stdiocast) - 120usize];
["Offset of field: _php_stream::stdiocast"]
[::std::mem::offset_of!(_php_stream, stdiocast) - 128usize];
["Offset of field: _php_stream::orig_path"]
[::std::mem::offset_of!(_php_stream, orig_path) - 136usize];
["Offset of field: _php_stream::context"]
[::std::mem::offset_of!(_php_stream, context) - 144usize];
["Offset of field: _php_stream::flags"][::std::mem::offset_of!(_php_stream, flags) - 152usize];
["Offset of field: _php_stream::position"]
[::std::mem::offset_of!(_php_stream, position) - 160usize];
["Offset of field: _php_stream::readbuf"]
[::std::mem::offset_of!(_php_stream, readbuf) - 168usize];
["Offset of field: _php_stream::readbuflen"]
[::std::mem::offset_of!(_php_stream, readbuflen) - 176usize];
["Offset of field: _php_stream::readpos"]
[::std::mem::offset_of!(_php_stream, readpos) - 184usize];
["Offset of field: _php_stream::writepos"]
[::std::mem::offset_of!(_php_stream, writepos) - 192usize];
["Offset of field: _php_stream::chunk_size"]
[::std::mem::offset_of!(_php_stream, chunk_size) - 200usize];
["Offset of field: _php_stream::eof"][::std::mem::offset_of!(_php_stream, eof) - 208usize];
["Offset of field: _php_stream::enclosing_stream"]
[::std::mem::offset_of!(_php_stream, enclosing_stream) - 216usize];
};
extern "C" {
pub fn php_stream_encloses(
enclosing: *mut php_stream,
enclosed: *mut php_stream,
) -> *mut php_stream;
}
extern "C" {
pub fn php_stream_from_persistent_id(
persistent_id: *const ::std::os::raw::c_char,
stream: *mut *mut php_stream,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_get_record(
stream: *mut php_stream,
maxlen: usize,
returned_len: *mut usize,
delim: *mut ::std::os::raw::c_char,
delim_len: usize,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn php_stream_dirent_alphasort(
a: *mut *const ::std::os::raw::c_char,
b: *mut *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_dirent_alphasortr(
a: *mut *const ::std::os::raw::c_char,
b: *mut *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
pub type php_stream_transport_factory_func = ::std::option::Option<
unsafe extern "C" fn(
proto: *const ::std::os::raw::c_char,
protolen: ::std::os::raw::c_long,
resourcename: *mut ::std::os::raw::c_char,
resourcenamelen: ::std::os::raw::c_long,
persistent_id: *const ::std::os::raw::c_char,
options: ::std::os::raw::c_int,
flags: ::std::os::raw::c_int,
timeout: *mut timeval,
context: *mut php_stream_context,
) -> *mut php_stream,
>;
pub type php_stream_transport_factory = php_stream_transport_factory_func;
extern "C" {
pub fn php_stream_xport_register(
protocol: *mut ::std::os::raw::c_char,
factory: php_stream_transport_factory,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_xport_unregister(
protocol: *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_xport_bind(
stream: *mut php_stream,
name: *const ::std::os::raw::c_char,
namelen: ::std::os::raw::c_long,
error_text: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_xport_connect(
stream: *mut php_stream,
name: *const ::std::os::raw::c_char,
namelen: ::std::os::raw::c_long,
asynchronous: ::std::os::raw::c_int,
timeout: *mut timeval,
error_text: *mut *mut ::std::os::raw::c_char,
error_code: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_xport_listen(
stream: *mut php_stream,
backlog: ::std::os::raw::c_int,
error_text: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_xport_accept(
stream: *mut php_stream,
client: *mut *mut php_stream,
textaddr: *mut *mut ::std::os::raw::c_char,
textaddrlen: *mut ::std::os::raw::c_int,
addr: *mut *mut ::std::os::raw::c_void,
addrlen: *mut socklen_t,
timeout: *mut timeval,
error_text: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_xport_get_name(
stream: *mut php_stream,
want_peer: ::std::os::raw::c_int,
textaddr: *mut *mut ::std::os::raw::c_char,
textaddrlen: *mut ::std::os::raw::c_int,
addr: *mut *mut ::std::os::raw::c_void,
addrlen: *mut socklen_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_xport_recvfrom(
stream: *mut php_stream,
buf: *mut ::std::os::raw::c_char,
buflen: usize,
flags: ::std::os::raw::c_long,
addr: *mut *mut ::std::os::raw::c_void,
addrlen: *mut socklen_t,
textaddr: *mut *mut ::std::os::raw::c_char,
textaddrlen: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_xport_sendto(
stream: *mut php_stream,
buf: *const ::std::os::raw::c_char,
buflen: usize,
flags: ::std::os::raw::c_long,
addr: *mut ::std::os::raw::c_void,
addrlen: socklen_t,
) -> ::std::os::raw::c_int;
}
pub const stream_shutdown_t_STREAM_SHUT_RD: stream_shutdown_t = 0;
pub const stream_shutdown_t_STREAM_SHUT_WR: stream_shutdown_t = 1;
pub const stream_shutdown_t_STREAM_SHUT_RDWR: stream_shutdown_t = 2;
pub type stream_shutdown_t = ::std::os::raw::c_uint;
extern "C" {
pub fn php_stream_xport_shutdown(
stream: *mut php_stream,
how: stream_shutdown_t,
) -> ::std::os::raw::c_int;
}
pub const php_stream_xport_crypt_method_t_STREAM_CRYPTO_METHOD_SSLv2_CLIENT:
php_stream_xport_crypt_method_t = 0;
pub const php_stream_xport_crypt_method_t_STREAM_CRYPTO_METHOD_SSLv3_CLIENT:
php_stream_xport_crypt_method_t = 1;
pub const php_stream_xport_crypt_method_t_STREAM_CRYPTO_METHOD_SSLv23_CLIENT:
php_stream_xport_crypt_method_t = 2;
pub const php_stream_xport_crypt_method_t_STREAM_CRYPTO_METHOD_TLS_CLIENT:
php_stream_xport_crypt_method_t = 3;
pub const php_stream_xport_crypt_method_t_STREAM_CRYPTO_METHOD_SSLv2_SERVER:
php_stream_xport_crypt_method_t = 4;
pub const php_stream_xport_crypt_method_t_STREAM_CRYPTO_METHOD_SSLv3_SERVER:
php_stream_xport_crypt_method_t = 5;
pub const php_stream_xport_crypt_method_t_STREAM_CRYPTO_METHOD_SSLv23_SERVER:
php_stream_xport_crypt_method_t = 6;
pub const php_stream_xport_crypt_method_t_STREAM_CRYPTO_METHOD_TLS_SERVER:
php_stream_xport_crypt_method_t = 7;
pub type php_stream_xport_crypt_method_t = ::std::os::raw::c_uint;
extern "C" {
pub fn php_stream_xport_crypto_setup(
stream: *mut php_stream,
crypto_method: php_stream_xport_crypt_method_t,
session_stream: *mut php_stream,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_xport_crypto_enable(
stream: *mut php_stream,
activate: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_xport_get_hash() -> *mut HashTable;
}
extern "C" {
pub fn php_stream_generic_socket_factory(
proto: *const ::std::os::raw::c_char,
protolen: ::std::os::raw::c_long,
resourcename: *mut ::std::os::raw::c_char,
resourcenamelen: ::std::os::raw::c_long,
persistent_id: *const ::std::os::raw::c_char,
options: ::std::os::raw::c_int,
flags: ::std::os::raw::c_int,
timeout: *mut timeval,
context: *mut php_stream_context,
) -> *mut php_stream;
}
extern "C" {
pub static mut php_stream_stdio_ops: php_stream_ops;
}
extern "C" {
pub static mut php_plain_files_wrapper: php_stream_wrapper;
}
extern "C" {
pub static mut php_glob_stream_wrapper: php_stream_wrapper;
}
extern "C" {
pub static mut php_glob_stream_ops: php_stream_ops;
}
extern "C" {
pub static mut php_stream_userspace_ops: php_stream_ops;
}
extern "C" {
pub static mut php_stream_userspace_dir_ops: php_stream_ops;
}
extern "C" {
pub fn php_init_stream_wrappers(module_number: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_shutdown_stream_wrappers(
module_number: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_shutdown_stream_hashes();
}
extern "C" {
pub fn php_register_url_stream_wrapper(
protocol: *mut ::std::os::raw::c_char,
wrapper: *mut php_stream_wrapper,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_unregister_url_stream_wrapper(
protocol: *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_register_url_stream_wrapper_volatile(
protocol: *mut ::std::os::raw::c_char,
wrapper: *mut php_stream_wrapper,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_unregister_url_stream_wrapper_volatile(
protocol: *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_stream_locate_url_wrapper(
path: *const ::std::os::raw::c_char,
path_for_open: *mut *mut ::std::os::raw::c_char,
options: ::std::os::raw::c_int,
) -> *mut php_stream_wrapper;
}
extern "C" {
pub fn php_stream_locate_eol(
stream: *mut php_stream,
buf: *mut ::std::os::raw::c_char,
buf_len: usize,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn php_stream_wrapper_log_error(
wrapper: *mut php_stream_wrapper,
options: ::std::os::raw::c_int,
fmt: *const ::std::os::raw::c_char,
...
);
}
extern "C" {
pub fn php_stream_get_url_stream_wrappers_hash_global() -> *mut HashTable;
}
extern "C" {
pub fn php_get_stream_filters_hash_global() -> *mut HashTable;
}
extern "C" {
pub static mut php_stream_user_wrapper_ops: *mut php_stream_wrapper_ops;
}
extern "C" {
pub static mut php_stream_memory_ops: php_stream_ops;
}
extern "C" {
pub static mut php_stream_temp_ops: php_stream_ops;
}
extern "C" {
pub static mut php_stream_rfc2397_ops: php_stream_ops;
}
extern "C" {
pub static mut php_stream_rfc2397_wrapper: php_stream_wrapper;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _php_core_globals {
pub implicit_flush: zend_bool,
pub output_buffering: ::std::os::raw::c_long,
pub sql_safe_mode: zend_bool,
pub enable_dl: zend_bool,
pub output_handler: *mut ::std::os::raw::c_char,
pub unserialize_callback_func: *mut ::std::os::raw::c_char,
pub serialize_precision: ::std::os::raw::c_long,
pub memory_limit: ::std::os::raw::c_long,
pub max_input_time: ::std::os::raw::c_long,
pub track_errors: zend_bool,
pub display_errors: zend_bool,
pub display_startup_errors: zend_bool,
pub log_errors: zend_bool,
pub log_errors_max_len: ::std::os::raw::c_long,
pub ignore_repeated_errors: zend_bool,
pub ignore_repeated_source: zend_bool,
pub report_memleaks: zend_bool,
pub error_log: *mut ::std::os::raw::c_char,
pub doc_root: *mut ::std::os::raw::c_char,
pub user_dir: *mut ::std::os::raw::c_char,
pub include_path: *mut ::std::os::raw::c_char,
pub open_basedir: *mut ::std::os::raw::c_char,
pub extension_dir: *mut ::std::os::raw::c_char,
pub php_binary: *mut ::std::os::raw::c_char,
pub upload_tmp_dir: *mut ::std::os::raw::c_char,
pub upload_max_filesize: ::std::os::raw::c_long,
pub error_append_string: *mut ::std::os::raw::c_char,
pub error_prepend_string: *mut ::std::os::raw::c_char,
pub auto_prepend_file: *mut ::std::os::raw::c_char,
pub auto_append_file: *mut ::std::os::raw::c_char,
pub arg_separator: arg_separators,
pub variables_order: *mut ::std::os::raw::c_char,
pub rfc1867_protected_variables: HashTable,
pub connection_status: ::std::os::raw::c_short,
pub ignore_user_abort: ::std::os::raw::c_short,
pub header_is_being_sent: ::std::os::raw::c_uchar,
pub tick_functions: zend_llist,
pub http_globals: [*mut zval; 6usize],
pub expose_php: zend_bool,
pub register_argc_argv: zend_bool,
pub auto_globals_jit: zend_bool,
pub docref_root: *mut ::std::os::raw::c_char,
pub docref_ext: *mut ::std::os::raw::c_char,
pub html_errors: zend_bool,
pub xmlrpc_errors: zend_bool,
pub xmlrpc_error_number: ::std::os::raw::c_long,
pub activated_auto_globals: [zend_bool; 8usize],
pub modules_activated: zend_bool,
pub file_uploads: zend_bool,
pub during_request_startup: zend_bool,
pub allow_url_fopen: zend_bool,
pub enable_post_data_reading: zend_bool,
pub always_populate_raw_post_data: zend_bool,
pub report_zend_debug: zend_bool,
pub last_error_type: ::std::os::raw::c_int,
pub last_error_message: *mut ::std::os::raw::c_char,
pub last_error_file: *mut ::std::os::raw::c_char,
pub last_error_lineno: ::std::os::raw::c_int,
pub disable_functions: *mut ::std::os::raw::c_char,
pub disable_classes: *mut ::std::os::raw::c_char,
pub allow_url_include: zend_bool,
pub exit_on_timeout: zend_bool,
pub max_input_nesting_level: ::std::os::raw::c_long,
pub max_input_vars: ::std::os::raw::c_long,
pub in_user_include: zend_bool,
pub user_ini_filename: *mut ::std::os::raw::c_char,
pub user_ini_cache_ttl: ::std::os::raw::c_long,
pub request_order: *mut ::std::os::raw::c_char,
pub mail_x_header: zend_bool,
pub mail_log: *mut ::std::os::raw::c_char,
pub in_error_log: zend_bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _php_core_globals"][::std::mem::size_of::<_php_core_globals>() - 584usize];
["Alignment of _php_core_globals"][::std::mem::align_of::<_php_core_globals>() - 8usize];
["Offset of field: _php_core_globals::implicit_flush"]
[::std::mem::offset_of!(_php_core_globals, implicit_flush) - 0usize];
["Offset of field: _php_core_globals::output_buffering"]
[::std::mem::offset_of!(_php_core_globals, output_buffering) - 8usize];
["Offset of field: _php_core_globals::sql_safe_mode"]
[::std::mem::offset_of!(_php_core_globals, sql_safe_mode) - 16usize];
["Offset of field: _php_core_globals::enable_dl"]
[::std::mem::offset_of!(_php_core_globals, enable_dl) - 17usize];
["Offset of field: _php_core_globals::output_handler"]
[::std::mem::offset_of!(_php_core_globals, output_handler) - 24usize];
["Offset of field: _php_core_globals::unserialize_callback_func"]
[::std::mem::offset_of!(_php_core_globals, unserialize_callback_func) - 32usize];
["Offset of field: _php_core_globals::serialize_precision"]
[::std::mem::offset_of!(_php_core_globals, serialize_precision) - 40usize];
["Offset of field: _php_core_globals::memory_limit"]
[::std::mem::offset_of!(_php_core_globals, memory_limit) - 48usize];
["Offset of field: _php_core_globals::max_input_time"]
[::std::mem::offset_of!(_php_core_globals, max_input_time) - 56usize];
["Offset of field: _php_core_globals::track_errors"]
[::std::mem::offset_of!(_php_core_globals, track_errors) - 64usize];
["Offset of field: _php_core_globals::display_errors"]
[::std::mem::offset_of!(_php_core_globals, display_errors) - 65usize];
["Offset of field: _php_core_globals::display_startup_errors"]
[::std::mem::offset_of!(_php_core_globals, display_startup_errors) - 66usize];
["Offset of field: _php_core_globals::log_errors"]
[::std::mem::offset_of!(_php_core_globals, log_errors) - 67usize];
["Offset of field: _php_core_globals::log_errors_max_len"]
[::std::mem::offset_of!(_php_core_globals, log_errors_max_len) - 72usize];
["Offset of field: _php_core_globals::ignore_repeated_errors"]
[::std::mem::offset_of!(_php_core_globals, ignore_repeated_errors) - 80usize];
["Offset of field: _php_core_globals::ignore_repeated_source"]
[::std::mem::offset_of!(_php_core_globals, ignore_repeated_source) - 81usize];
["Offset of field: _php_core_globals::report_memleaks"]
[::std::mem::offset_of!(_php_core_globals, report_memleaks) - 82usize];
["Offset of field: _php_core_globals::error_log"]
[::std::mem::offset_of!(_php_core_globals, error_log) - 88usize];
["Offset of field: _php_core_globals::doc_root"]
[::std::mem::offset_of!(_php_core_globals, doc_root) - 96usize];
["Offset of field: _php_core_globals::user_dir"]
[::std::mem::offset_of!(_php_core_globals, user_dir) - 104usize];
["Offset of field: _php_core_globals::include_path"]
[::std::mem::offset_of!(_php_core_globals, include_path) - 112usize];
["Offset of field: _php_core_globals::open_basedir"]
[::std::mem::offset_of!(_php_core_globals, open_basedir) - 120usize];
["Offset of field: _php_core_globals::extension_dir"]
[::std::mem::offset_of!(_php_core_globals, extension_dir) - 128usize];
["Offset of field: _php_core_globals::php_binary"]
[::std::mem::offset_of!(_php_core_globals, php_binary) - 136usize];
["Offset of field: _php_core_globals::upload_tmp_dir"]
[::std::mem::offset_of!(_php_core_globals, upload_tmp_dir) - 144usize];
["Offset of field: _php_core_globals::upload_max_filesize"]
[::std::mem::offset_of!(_php_core_globals, upload_max_filesize) - 152usize];
["Offset of field: _php_core_globals::error_append_string"]
[::std::mem::offset_of!(_php_core_globals, error_append_string) - 160usize];
["Offset of field: _php_core_globals::error_prepend_string"]
[::std::mem::offset_of!(_php_core_globals, error_prepend_string) - 168usize];
["Offset of field: _php_core_globals::auto_prepend_file"]
[::std::mem::offset_of!(_php_core_globals, auto_prepend_file) - 176usize];
["Offset of field: _php_core_globals::auto_append_file"]
[::std::mem::offset_of!(_php_core_globals, auto_append_file) - 184usize];
["Offset of field: _php_core_globals::arg_separator"]
[::std::mem::offset_of!(_php_core_globals, arg_separator) - 192usize];
["Offset of field: _php_core_globals::variables_order"]
[::std::mem::offset_of!(_php_core_globals, variables_order) - 208usize];
["Offset of field: _php_core_globals::rfc1867_protected_variables"]
[::std::mem::offset_of!(_php_core_globals, rfc1867_protected_variables) - 216usize];
["Offset of field: _php_core_globals::connection_status"]
[::std::mem::offset_of!(_php_core_globals, connection_status) - 288usize];
["Offset of field: _php_core_globals::ignore_user_abort"]
[::std::mem::offset_of!(_php_core_globals, ignore_user_abort) - 290usize];
["Offset of field: _php_core_globals::header_is_being_sent"]
[::std::mem::offset_of!(_php_core_globals, header_is_being_sent) - 292usize];
["Offset of field: _php_core_globals::tick_functions"]
[::std::mem::offset_of!(_php_core_globals, tick_functions) - 296usize];
["Offset of field: _php_core_globals::http_globals"]
[::std::mem::offset_of!(_php_core_globals, http_globals) - 352usize];
["Offset of field: _php_core_globals::expose_php"]
[::std::mem::offset_of!(_php_core_globals, expose_php) - 400usize];
["Offset of field: _php_core_globals::register_argc_argv"]
[::std::mem::offset_of!(_php_core_globals, register_argc_argv) - 401usize];
["Offset of field: _php_core_globals::auto_globals_jit"]
[::std::mem::offset_of!(_php_core_globals, auto_globals_jit) - 402usize];
["Offset of field: _php_core_globals::docref_root"]
[::std::mem::offset_of!(_php_core_globals, docref_root) - 408usize];
["Offset of field: _php_core_globals::docref_ext"]
[::std::mem::offset_of!(_php_core_globals, docref_ext) - 416usize];
["Offset of field: _php_core_globals::html_errors"]
[::std::mem::offset_of!(_php_core_globals, html_errors) - 424usize];
["Offset of field: _php_core_globals::xmlrpc_errors"]
[::std::mem::offset_of!(_php_core_globals, xmlrpc_errors) - 425usize];
["Offset of field: _php_core_globals::xmlrpc_error_number"]
[::std::mem::offset_of!(_php_core_globals, xmlrpc_error_number) - 432usize];
["Offset of field: _php_core_globals::activated_auto_globals"]
[::std::mem::offset_of!(_php_core_globals, activated_auto_globals) - 440usize];
["Offset of field: _php_core_globals::modules_activated"]
[::std::mem::offset_of!(_php_core_globals, modules_activated) - 448usize];
["Offset of field: _php_core_globals::file_uploads"]
[::std::mem::offset_of!(_php_core_globals, file_uploads) - 449usize];
["Offset of field: _php_core_globals::during_request_startup"]
[::std::mem::offset_of!(_php_core_globals, during_request_startup) - 450usize];
["Offset of field: _php_core_globals::allow_url_fopen"]
[::std::mem::offset_of!(_php_core_globals, allow_url_fopen) - 451usize];
["Offset of field: _php_core_globals::enable_post_data_reading"]
[::std::mem::offset_of!(_php_core_globals, enable_post_data_reading) - 452usize];
["Offset of field: _php_core_globals::always_populate_raw_post_data"]
[::std::mem::offset_of!(_php_core_globals, always_populate_raw_post_data) - 453usize];
["Offset of field: _php_core_globals::report_zend_debug"]
[::std::mem::offset_of!(_php_core_globals, report_zend_debug) - 454usize];
["Offset of field: _php_core_globals::last_error_type"]
[::std::mem::offset_of!(_php_core_globals, last_error_type) - 456usize];
["Offset of field: _php_core_globals::last_error_message"]
[::std::mem::offset_of!(_php_core_globals, last_error_message) - 464usize];
["Offset of field: _php_core_globals::last_error_file"]
[::std::mem::offset_of!(_php_core_globals, last_error_file) - 472usize];
["Offset of field: _php_core_globals::last_error_lineno"]
[::std::mem::offset_of!(_php_core_globals, last_error_lineno) - 480usize];
["Offset of field: _php_core_globals::disable_functions"]
[::std::mem::offset_of!(_php_core_globals, disable_functions) - 488usize];
["Offset of field: _php_core_globals::disable_classes"]
[::std::mem::offset_of!(_php_core_globals, disable_classes) - 496usize];
["Offset of field: _php_core_globals::allow_url_include"]
[::std::mem::offset_of!(_php_core_globals, allow_url_include) - 504usize];
["Offset of field: _php_core_globals::exit_on_timeout"]
[::std::mem::offset_of!(_php_core_globals, exit_on_timeout) - 505usize];
["Offset of field: _php_core_globals::max_input_nesting_level"]
[::std::mem::offset_of!(_php_core_globals, max_input_nesting_level) - 512usize];
["Offset of field: _php_core_globals::max_input_vars"]
[::std::mem::offset_of!(_php_core_globals, max_input_vars) - 520usize];
["Offset of field: _php_core_globals::in_user_include"]
[::std::mem::offset_of!(_php_core_globals, in_user_include) - 528usize];
["Offset of field: _php_core_globals::user_ini_filename"]
[::std::mem::offset_of!(_php_core_globals, user_ini_filename) - 536usize];
["Offset of field: _php_core_globals::user_ini_cache_ttl"]
[::std::mem::offset_of!(_php_core_globals, user_ini_cache_ttl) - 544usize];
["Offset of field: _php_core_globals::request_order"]
[::std::mem::offset_of!(_php_core_globals, request_order) - 552usize];
["Offset of field: _php_core_globals::mail_x_header"]
[::std::mem::offset_of!(_php_core_globals, mail_x_header) - 560usize];
["Offset of field: _php_core_globals::mail_log"]
[::std::mem::offset_of!(_php_core_globals, mail_log) - 568usize];
["Offset of field: _php_core_globals::in_error_log"]
[::std::mem::offset_of!(_php_core_globals, in_error_log) - 576usize];
};
extern "C" {
pub static mut core_globals: _php_core_globals;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _arg_separators {
pub output: *mut ::std::os::raw::c_char,
pub input: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _arg_separators"][::std::mem::size_of::<_arg_separators>() - 16usize];
["Alignment of _arg_separators"][::std::mem::align_of::<_arg_separators>() - 8usize];
["Offset of field: _arg_separators::output"]
[::std::mem::offset_of!(_arg_separators, output) - 0usize];
["Offset of field: _arg_separators::input"]
[::std::mem::offset_of!(_arg_separators, input) - 8usize];
};
pub type arg_separators = _arg_separators;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_ini_entry {
pub module_number: ::std::os::raw::c_int,
pub modifiable: ::std::os::raw::c_int,
pub name: *mut ::std::os::raw::c_char,
pub name_length: uint,
pub on_modify: ::std::option::Option<
unsafe extern "C" fn(
entry: *mut zend_ini_entry,
new_value: *mut ::std::os::raw::c_char,
new_value_length: uint,
mh_arg1: *mut ::std::os::raw::c_void,
mh_arg2: *mut ::std::os::raw::c_void,
mh_arg3: *mut ::std::os::raw::c_void,
stage: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub mh_arg1: *mut ::std::os::raw::c_void,
pub mh_arg2: *mut ::std::os::raw::c_void,
pub mh_arg3: *mut ::std::os::raw::c_void,
pub value: *mut ::std::os::raw::c_char,
pub value_length: uint,
pub orig_value: *mut ::std::os::raw::c_char,
pub orig_value_length: uint,
pub orig_modifiable: ::std::os::raw::c_int,
pub modified: ::std::os::raw::c_int,
pub displayer: ::std::option::Option<
unsafe extern "C" fn(ini_entry: *mut zend_ini_entry, type_: ::std::os::raw::c_int),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_ini_entry"][::std::mem::size_of::<_zend_ini_entry>() - 104usize];
["Alignment of _zend_ini_entry"][::std::mem::align_of::<_zend_ini_entry>() - 8usize];
["Offset of field: _zend_ini_entry::module_number"]
[::std::mem::offset_of!(_zend_ini_entry, module_number) - 0usize];
["Offset of field: _zend_ini_entry::modifiable"]
[::std::mem::offset_of!(_zend_ini_entry, modifiable) - 4usize];
["Offset of field: _zend_ini_entry::name"]
[::std::mem::offset_of!(_zend_ini_entry, name) - 8usize];
["Offset of field: _zend_ini_entry::name_length"]
[::std::mem::offset_of!(_zend_ini_entry, name_length) - 16usize];
["Offset of field: _zend_ini_entry::on_modify"]
[::std::mem::offset_of!(_zend_ini_entry, on_modify) - 24usize];
["Offset of field: _zend_ini_entry::mh_arg1"]
[::std::mem::offset_of!(_zend_ini_entry, mh_arg1) - 32usize];
["Offset of field: _zend_ini_entry::mh_arg2"]
[::std::mem::offset_of!(_zend_ini_entry, mh_arg2) - 40usize];
["Offset of field: _zend_ini_entry::mh_arg3"]
[::std::mem::offset_of!(_zend_ini_entry, mh_arg3) - 48usize];
["Offset of field: _zend_ini_entry::value"]
[::std::mem::offset_of!(_zend_ini_entry, value) - 56usize];
["Offset of field: _zend_ini_entry::value_length"]
[::std::mem::offset_of!(_zend_ini_entry, value_length) - 64usize];
["Offset of field: _zend_ini_entry::orig_value"]
[::std::mem::offset_of!(_zend_ini_entry, orig_value) - 72usize];
["Offset of field: _zend_ini_entry::orig_value_length"]
[::std::mem::offset_of!(_zend_ini_entry, orig_value_length) - 80usize];
["Offset of field: _zend_ini_entry::orig_modifiable"]
[::std::mem::offset_of!(_zend_ini_entry, orig_modifiable) - 84usize];
["Offset of field: _zend_ini_entry::modified"]
[::std::mem::offset_of!(_zend_ini_entry, modified) - 88usize];
["Offset of field: _zend_ini_entry::displayer"]
[::std::mem::offset_of!(_zend_ini_entry, displayer) - 96usize];
};
extern "C" {
pub fn zend_ini_startup() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ini_shutdown() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ini_global_shutdown() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ini_deactivate() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_copy_ini_directives() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ini_sort_entries();
}
extern "C" {
pub fn zend_register_ini_entries(
ini_entry: *const zend_ini_entry,
module_number: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_unregister_ini_entries(module_number: ::std::os::raw::c_int);
}
extern "C" {
pub fn zend_ini_refresh_caches(stage: ::std::os::raw::c_int);
}
extern "C" {
pub fn zend_alter_ini_entry(
name: *mut ::std::os::raw::c_char,
name_length: uint,
new_value: *mut ::std::os::raw::c_char,
new_value_length: uint,
modify_type: ::std::os::raw::c_int,
stage: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_alter_ini_entry_ex(
name: *mut ::std::os::raw::c_char,
name_length: uint,
new_value: *mut ::std::os::raw::c_char,
new_value_length: uint,
modify_type: ::std::os::raw::c_int,
stage: ::std::os::raw::c_int,
force_change: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_restore_ini_entry(
name: *mut ::std::os::raw::c_char,
name_length: uint,
stage: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ini_long(
name: *mut ::std::os::raw::c_char,
name_length: uint,
orig: ::std::os::raw::c_int,
) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn zend_ini_double(
name: *mut ::std::os::raw::c_char,
name_length: uint,
orig: ::std::os::raw::c_int,
) -> f64;
}
extern "C" {
pub fn zend_ini_string(
name: *mut ::std::os::raw::c_char,
name_length: uint,
orig: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_ini_string_ex(
name: *mut ::std::os::raw::c_char,
name_length: uint,
orig: ::std::os::raw::c_int,
exists: *mut zend_bool,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn zend_ini_register_displayer(
name: *mut ::std::os::raw::c_char,
name_length: uint,
displayer: ::std::option::Option<
unsafe extern "C" fn(ini_entry: *mut zend_ini_entry, type_: ::std::os::raw::c_int),
>,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_ini_boolean_displayer_cb(
ini_entry: *mut zend_ini_entry,
type_: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_ini_color_displayer_cb(
ini_entry: *mut zend_ini_entry,
type_: ::std::os::raw::c_int,
);
}
pub type zend_ini_parser_cb_t = ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut zval,
arg2: *mut zval,
arg3: *mut zval,
callback_type: ::std::os::raw::c_int,
arg: *mut ::std::os::raw::c_void,
),
>;
extern "C" {
pub fn zend_parse_ini_file(
fh: *mut zend_file_handle,
unbuffered_errors: zend_bool,
scanner_mode: ::std::os::raw::c_int,
ini_parser_cb: zend_ini_parser_cb_t,
arg: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_parse_ini_string(
str_: *mut ::std::os::raw::c_char,
unbuffered_errors: zend_bool,
scanner_mode: ::std::os::raw::c_int,
ini_parser_cb: zend_ini_parser_cb_t,
arg: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_ini_parser_param {
pub ini_parser_cb: zend_ini_parser_cb_t,
pub arg: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_ini_parser_param"][::std::mem::size_of::<_zend_ini_parser_param>() - 16usize];
["Alignment of _zend_ini_parser_param"]
[::std::mem::align_of::<_zend_ini_parser_param>() - 8usize];
["Offset of field: _zend_ini_parser_param::ini_parser_cb"]
[::std::mem::offset_of!(_zend_ini_parser_param, ini_parser_cb) - 0usize];
["Offset of field: _zend_ini_parser_param::arg"]
[::std::mem::offset_of!(_zend_ini_parser_param, arg) - 8usize];
};
pub type zend_ini_parser_param = _zend_ini_parser_param;
extern "C" {
pub fn php_init_config() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_shutdown_config() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_ini_register_extensions();
}
extern "C" {
pub fn php_parse_user_ini_file(
dirname: *const ::std::os::raw::c_char,
ini_filename: *mut ::std::os::raw::c_char,
target_hash: *mut HashTable,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_ini_activate_config(
source_hash: *mut HashTable,
modify_type: ::std::os::raw::c_int,
stage: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn php_ini_has_per_dir_config() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_ini_has_per_host_config() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_ini_activate_per_dir_config(path: *mut ::std::os::raw::c_char, path_len: uint);
}
extern "C" {
pub fn php_ini_activate_per_host_config(host: *const ::std::os::raw::c_char, host_len: uint);
}
extern "C" {
pub fn php_ini_get_configuration_hash() -> *mut HashTable;
}
extern "C" {
pub fn php_fopen_primary_script(file_handle: *mut zend_file_handle) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_check_open_basedir(path: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_check_open_basedir_ex(
path: *const ::std::os::raw::c_char,
warn: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_check_specific_open_basedir(
basedir: *const ::std::os::raw::c_char,
path: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_check_safe_mode_include_dir(
path: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn php_resolve_path(
filename: *const ::std::os::raw::c_char,
filename_len: ::std::os::raw::c_int,
path: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn php_fopen_with_path(
filename: *const ::std::os::raw::c_char,
mode: *const ::std::os::raw::c_char,
path: *const ::std::os::raw::c_char,
opened_path: *mut *mut ::std::os::raw::c_char,
) -> *mut FILE;
}
extern "C" {
pub fn php_strip_url_passwd(path: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _cwd_state {
pub cwd: *mut ::std::os::raw::c_char,
pub cwd_length: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _cwd_state"][::std::mem::size_of::<_cwd_state>() - 16usize];
["Alignment of _cwd_state"][::std::mem::align_of::<_cwd_state>() - 8usize];
["Offset of field: _cwd_state::cwd"][::std::mem::offset_of!(_cwd_state, cwd) - 0usize];
["Offset of field: _cwd_state::cwd_length"]
[::std::mem::offset_of!(_cwd_state, cwd_length) - 8usize];
};
pub type cwd_state = _cwd_state;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _realpath_cache_bucket {
pub key: ::std::os::raw::c_ulong,
pub path: *mut ::std::os::raw::c_char,
pub path_len: ::std::os::raw::c_int,
pub realpath: *mut ::std::os::raw::c_char,
pub realpath_len: ::std::os::raw::c_int,
pub is_dir: ::std::os::raw::c_int,
pub expires: time_t,
pub next: *mut _realpath_cache_bucket,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _realpath_cache_bucket"][::std::mem::size_of::<_realpath_cache_bucket>() - 56usize];
["Alignment of _realpath_cache_bucket"]
[::std::mem::align_of::<_realpath_cache_bucket>() - 8usize];
["Offset of field: _realpath_cache_bucket::key"]
[::std::mem::offset_of!(_realpath_cache_bucket, key) - 0usize];
["Offset of field: _realpath_cache_bucket::path"]
[::std::mem::offset_of!(_realpath_cache_bucket, path) - 8usize];
["Offset of field: _realpath_cache_bucket::path_len"]
[::std::mem::offset_of!(_realpath_cache_bucket, path_len) - 16usize];
["Offset of field: _realpath_cache_bucket::realpath"]
[::std::mem::offset_of!(_realpath_cache_bucket, realpath) - 24usize];
["Offset of field: _realpath_cache_bucket::realpath_len"]
[::std::mem::offset_of!(_realpath_cache_bucket, realpath_len) - 32usize];
["Offset of field: _realpath_cache_bucket::is_dir"]
[::std::mem::offset_of!(_realpath_cache_bucket, is_dir) - 36usize];
["Offset of field: _realpath_cache_bucket::expires"]
[::std::mem::offset_of!(_realpath_cache_bucket, expires) - 40usize];
["Offset of field: _realpath_cache_bucket::next"]
[::std::mem::offset_of!(_realpath_cache_bucket, next) - 48usize];
};
pub type realpath_cache_bucket = _realpath_cache_bucket;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _virtual_cwd_globals {
pub cwd: cwd_state,
pub realpath_cache_size: ::std::os::raw::c_long,
pub realpath_cache_size_limit: ::std::os::raw::c_long,
pub realpath_cache_ttl: ::std::os::raw::c_long,
pub realpath_cache: [*mut realpath_cache_bucket; 1024usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _virtual_cwd_globals"][::std::mem::size_of::<_virtual_cwd_globals>() - 8232usize];
["Alignment of _virtual_cwd_globals"][::std::mem::align_of::<_virtual_cwd_globals>() - 8usize];
["Offset of field: _virtual_cwd_globals::cwd"]
[::std::mem::offset_of!(_virtual_cwd_globals, cwd) - 0usize];
["Offset of field: _virtual_cwd_globals::realpath_cache_size"]
[::std::mem::offset_of!(_virtual_cwd_globals, realpath_cache_size) - 16usize];
["Offset of field: _virtual_cwd_globals::realpath_cache_size_limit"]
[::std::mem::offset_of!(_virtual_cwd_globals, realpath_cache_size_limit) - 24usize];
["Offset of field: _virtual_cwd_globals::realpath_cache_ttl"]
[::std::mem::offset_of!(_virtual_cwd_globals, realpath_cache_ttl) - 32usize];
["Offset of field: _virtual_cwd_globals::realpath_cache"]
[::std::mem::offset_of!(_virtual_cwd_globals, realpath_cache) - 40usize];
};
pub type virtual_cwd_globals = _virtual_cwd_globals;
extern "C" {
pub static mut cwd_globals: virtual_cwd_globals;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _zend_constant {
pub value: zval,
pub flags: ::std::os::raw::c_int,
pub name: *mut ::std::os::raw::c_char,
pub name_len: uint,
pub module_number: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_constant"][::std::mem::size_of::<_zend_constant>() - 48usize];
["Alignment of _zend_constant"][::std::mem::align_of::<_zend_constant>() - 8usize];
["Offset of field: _zend_constant::value"]
[::std::mem::offset_of!(_zend_constant, value) - 0usize];
["Offset of field: _zend_constant::flags"]
[::std::mem::offset_of!(_zend_constant, flags) - 24usize];
["Offset of field: _zend_constant::name"]
[::std::mem::offset_of!(_zend_constant, name) - 32usize];
["Offset of field: _zend_constant::name_len"]
[::std::mem::offset_of!(_zend_constant, name_len) - 40usize];
["Offset of field: _zend_constant::module_number"]
[::std::mem::offset_of!(_zend_constant, module_number) - 44usize];
};
pub type zend_constant = _zend_constant;
extern "C" {
pub fn zend_startup_constants() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_shutdown_constants() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_register_standard_constants();
}
extern "C" {
pub fn zend_get_constant(
name: *const ::std::os::raw::c_char,
name_len: uint,
result: *mut zval,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_get_constant_ex(
name: *const ::std::os::raw::c_char,
name_len: uint,
result: *mut zval,
scope: *mut zend_class_entry,
flags: ulong,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_register_long_constant(
name: *const ::std::os::raw::c_char,
name_len: uint,
lval: ::std::os::raw::c_long,
flags: ::std::os::raw::c_int,
module_number: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_register_double_constant(
name: *const ::std::os::raw::c_char,
name_len: uint,
dval: f64,
flags: ::std::os::raw::c_int,
module_number: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_register_string_constant(
name: *const ::std::os::raw::c_char,
name_len: uint,
strval: *mut ::std::os::raw::c_char,
flags: ::std::os::raw::c_int,
module_number: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_register_stringl_constant(
name: *const ::std::os::raw::c_char,
name_len: uint,
strval: *mut ::std::os::raw::c_char,
strlen: uint,
flags: ::std::os::raw::c_int,
module_number: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn zend_register_constant(c: *mut zend_constant) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_copy_constants(target: *mut HashTable, sourc: *mut HashTable);
}
extern "C" {
pub fn zend_quick_get_constant(key: *const zend_literal, flags: ulong) -> *mut zend_constant;
}
extern "C" {
pub fn php_info_html_esc(string: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn php_info_html_esc_write(
string: *mut ::std::os::raw::c_char,
str_len: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn php_print_info_htmlhead();
}
extern "C" {
pub fn php_print_info(flag: ::std::os::raw::c_int);
}
extern "C" {
pub fn php_print_style();
}
extern "C" {
pub fn php_info_print_style();
}
extern "C" {
pub fn php_info_print_table_colspan_header(
num_cols: ::std::os::raw::c_int,
header: *mut ::std::os::raw::c_char,
);
}
extern "C" {
pub fn php_info_print_table_header(num_cols: ::std::os::raw::c_int, ...);
}
extern "C" {
pub fn php_info_print_table_row(num_cols: ::std::os::raw::c_int, ...);
}
extern "C" {
pub fn php_info_print_table_row_ex(
num_cols: ::std::os::raw::c_int,
arg1: *const ::std::os::raw::c_char,
...
);
}
extern "C" {
pub fn php_info_print_table_start();
}
extern "C" {
pub fn php_info_print_table_end();
}
extern "C" {
pub fn php_info_print_box_start(bg: ::std::os::raw::c_int);
}
extern "C" {
pub fn php_info_print_box_end();
}
extern "C" {
pub fn php_info_print_hr();
}
extern "C" {
pub fn php_info_print_module(module: *mut zend_module_entry);
}
extern "C" {
pub fn php_logo_guid() -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn php_get_uname(mode: ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_extension_version_info {
pub zend_extension_api_no: ::std::os::raw::c_int,
pub build_id: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_extension_version_info"]
[::std::mem::size_of::<_zend_extension_version_info>() - 16usize];
["Alignment of _zend_extension_version_info"]
[::std::mem::align_of::<_zend_extension_version_info>() - 8usize];
["Offset of field: _zend_extension_version_info::zend_extension_api_no"]
[::std::mem::offset_of!(_zend_extension_version_info, zend_extension_api_no) - 0usize];
["Offset of field: _zend_extension_version_info::build_id"]
[::std::mem::offset_of!(_zend_extension_version_info, build_id) - 8usize];
};
pub type zend_extension_version_info = _zend_extension_version_info;
pub type zend_extension = _zend_extension;
pub type startup_func_t = ::std::option::Option<
unsafe extern "C" fn(extension: *mut zend_extension) -> ::std::os::raw::c_int,
>;
pub type shutdown_func_t =
::std::option::Option<unsafe extern "C" fn(extension: *mut zend_extension)>;
pub type activate_func_t = ::std::option::Option<unsafe extern "C" fn()>;
pub type deactivate_func_t = ::std::option::Option<unsafe extern "C" fn()>;
pub type message_handler_func_t = ::std::option::Option<
unsafe extern "C" fn(message: ::std::os::raw::c_int, arg: *mut ::std::os::raw::c_void),
>;
pub type op_array_handler_func_t =
::std::option::Option<unsafe extern "C" fn(op_array: *mut zend_op_array)>;
pub type statement_handler_func_t =
::std::option::Option<unsafe extern "C" fn(op_array: *mut zend_op_array)>;
pub type fcall_begin_handler_func_t =
::std::option::Option<unsafe extern "C" fn(op_array: *mut zend_op_array)>;
pub type fcall_end_handler_func_t =
::std::option::Option<unsafe extern "C" fn(op_array: *mut zend_op_array)>;
pub type op_array_ctor_func_t =
::std::option::Option<unsafe extern "C" fn(op_array: *mut zend_op_array)>;
pub type op_array_dtor_func_t =
::std::option::Option<unsafe extern "C" fn(op_array: *mut zend_op_array)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _zend_extension {
pub name: *mut ::std::os::raw::c_char,
pub version: *mut ::std::os::raw::c_char,
pub author: *mut ::std::os::raw::c_char,
pub URL: *mut ::std::os::raw::c_char,
pub copyright: *mut ::std::os::raw::c_char,
pub startup: startup_func_t,
pub shutdown: shutdown_func_t,
pub activate: activate_func_t,
pub deactivate: deactivate_func_t,
pub message_handler: message_handler_func_t,
pub op_array_handler: op_array_handler_func_t,
pub statement_handler: statement_handler_func_t,
pub fcall_begin_handler: fcall_begin_handler_func_t,
pub fcall_end_handler: fcall_end_handler_func_t,
pub op_array_ctor: op_array_ctor_func_t,
pub op_array_dtor: op_array_dtor_func_t,
pub api_no_check: ::std::option::Option<
unsafe extern "C" fn(api_no: ::std::os::raw::c_int) -> ::std::os::raw::c_int,
>,
pub build_id_check: ::std::option::Option<
unsafe extern "C" fn(build_id: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int,
>,
pub reserved3: *mut ::std::os::raw::c_void,
pub reserved4: *mut ::std::os::raw::c_void,
pub reserved5: *mut ::std::os::raw::c_void,
pub reserved6: *mut ::std::os::raw::c_void,
pub reserved7: *mut ::std::os::raw::c_void,
pub reserved8: *mut ::std::os::raw::c_void,
pub handle: *mut ::std::os::raw::c_void,
pub resource_number: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _zend_extension"][::std::mem::size_of::<_zend_extension>() - 208usize];
["Alignment of _zend_extension"][::std::mem::align_of::<_zend_extension>() - 8usize];
["Offset of field: _zend_extension::name"]
[::std::mem::offset_of!(_zend_extension, name) - 0usize];
["Offset of field: _zend_extension::version"]
[::std::mem::offset_of!(_zend_extension, version) - 8usize];
["Offset of field: _zend_extension::author"]
[::std::mem::offset_of!(_zend_extension, author) - 16usize];
["Offset of field: _zend_extension::URL"]
[::std::mem::offset_of!(_zend_extension, URL) - 24usize];
["Offset of field: _zend_extension::copyright"]
[::std::mem::offset_of!(_zend_extension, copyright) - 32usize];
["Offset of field: _zend_extension::startup"]
[::std::mem::offset_of!(_zend_extension, startup) - 40usize];
["Offset of field: _zend_extension::shutdown"]
[::std::mem::offset_of!(_zend_extension, shutdown) - 48usize];
["Offset of field: _zend_extension::activate"]
[::std::mem::offset_of!(_zend_extension, activate) - 56usize];
["Offset of field: _zend_extension::deactivate"]
[::std::mem::offset_of!(_zend_extension, deactivate) - 64usize];
["Offset of field: _zend_extension::message_handler"]
[::std::mem::offset_of!(_zend_extension, message_handler) - 72usize];
["Offset of field: _zend_extension::op_array_handler"]
[::std::mem::offset_of!(_zend_extension, op_array_handler) - 80usize];
["Offset of field: _zend_extension::statement_handler"]
[::std::mem::offset_of!(_zend_extension, statement_handler) - 88usize];
["Offset of field: _zend_extension::fcall_begin_handler"]
[::std::mem::offset_of!(_zend_extension, fcall_begin_handler) - 96usize];
["Offset of field: _zend_extension::fcall_end_handler"]
[::std::mem::offset_of!(_zend_extension, fcall_end_handler) - 104usize];
["Offset of field: _zend_extension::op_array_ctor"]
[::std::mem::offset_of!(_zend_extension, op_array_ctor) - 112usize];
["Offset of field: _zend_extension::op_array_dtor"]
[::std::mem::offset_of!(_zend_extension, op_array_dtor) - 120usize];
["Offset of field: _zend_extension::api_no_check"]
[::std::mem::offset_of!(_zend_extension, api_no_check) - 128usize];
["Offset of field: _zend_extension::build_id_check"]
[::std::mem::offset_of!(_zend_extension, build_id_check) - 136usize];
["Offset of field: _zend_extension::reserved3"]
[::std::mem::offset_of!(_zend_extension, reserved3) - 144usize];
["Offset of field: _zend_extension::reserved4"]
[::std::mem::offset_of!(_zend_extension, reserved4) - 152usize];
["Offset of field: _zend_extension::reserved5"]
[::std::mem::offset_of!(_zend_extension, reserved5) - 160usize];
["Offset of field: _zend_extension::reserved6"]
[::std::mem::offset_of!(_zend_extension, reserved6) - 168usize];
["Offset of field: _zend_extension::reserved7"]
[::std::mem::offset_of!(_zend_extension, reserved7) - 176usize];
["Offset of field: _zend_extension::reserved8"]
[::std::mem::offset_of!(_zend_extension, reserved8) - 184usize];
["Offset of field: _zend_extension::handle"]
[::std::mem::offset_of!(_zend_extension, handle) - 192usize];
["Offset of field: _zend_extension::resource_number"]
[::std::mem::offset_of!(_zend_extension, resource_number) - 200usize];
};
extern "C" {
pub fn zend_get_resource_handle(extension: *mut zend_extension) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_extension_dispatch_message(
message: ::std::os::raw::c_int,
arg: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub static mut zend_extensions: zend_llist;
}
extern "C" {
pub fn zend_extension_dtor(extension: *mut zend_extension);
}
extern "C" {
pub fn zend_append_version_info(extension: *const zend_extension);
}
extern "C" {
pub fn zend_startup_extensions_mechanism() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_startup_extensions() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_shutdown_extensions();
}
extern "C" {
pub fn zend_load_extension(path: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_register_extension(
new_extension: *mut zend_extension,
handle: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn zend_get_extension(extension_name: *const ::std::os::raw::c_char)
-> *mut zend_extension;
}
pub const ZEND_MODULE_BUILD_ID_: &[u8; 16] = b"API20100525,NTS\0";
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
pub gp_offset: ::std::os::raw::c_uint,
pub fp_offset: ::std::os::raw::c_uint,
pub overflow_arg_area: *mut ::std::os::raw::c_void,
pub reg_save_area: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __va_list_tag"][::std::mem::size_of::<__va_list_tag>() - 24usize];
["Alignment of __va_list_tag"][::std::mem::align_of::<__va_list_tag>() - 8usize];
["Offset of field: __va_list_tag::gp_offset"]
[::std::mem::offset_of!(__va_list_tag, gp_offset) - 0usize];
["Offset of field: __va_list_tag::fp_offset"]
[::std::mem::offset_of!(__va_list_tag, fp_offset) - 4usize];
["Offset of field: __va_list_tag::overflow_arg_area"]
[::std::mem::offset_of!(__va_list_tag, overflow_arg_area) - 8usize];
["Offset of field: __va_list_tag::reg_save_area"]
[::std::mem::offset_of!(__va_list_tag, reg_save_area) - 16usize];
};