1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 93677b78d9aaa4d6dbb5d1dcf3e79a8418add5c0 */
3
4 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_shm_attach, 0, 1, SysvSharedMemory, MAY_BE_FALSE)
5 ZEND_ARG_TYPE_INFO(0, key, IS_LONG, 0)
6 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, size, IS_LONG, 1, "null")
7 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, permissions, IS_LONG, 0, "0666")
8 ZEND_END_ARG_INFO()
9
10 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_shm_detach, 0, 1, _IS_BOOL, 0)
11 ZEND_ARG_OBJ_INFO(0, shm, SysvSharedMemory, 0)
12 ZEND_END_ARG_INFO()
13
14 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_shm_has_var, 0, 2, _IS_BOOL, 0)
15 ZEND_ARG_OBJ_INFO(0, shm, SysvSharedMemory, 0)
16 ZEND_ARG_TYPE_INFO(0, key, IS_LONG, 0)
17 ZEND_END_ARG_INFO()
18
19 #define arginfo_shm_remove arginfo_shm_detach
20
21 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_shm_put_var, 0, 3, _IS_BOOL, 0)
22 ZEND_ARG_OBJ_INFO(0, shm, SysvSharedMemory, 0)
23 ZEND_ARG_TYPE_INFO(0, key, IS_LONG, 0)
24 ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
25 ZEND_END_ARG_INFO()
26
27 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_shm_get_var, 0, 2, IS_MIXED, 0)
28 ZEND_ARG_OBJ_INFO(0, shm, SysvSharedMemory, 0)
29 ZEND_ARG_TYPE_INFO(0, key, IS_LONG, 0)
30 ZEND_END_ARG_INFO()
31
32 #define arginfo_shm_remove_var arginfo_shm_has_var
33
34 ZEND_FUNCTION(shm_attach);
35 ZEND_FUNCTION(shm_detach);
36 ZEND_FUNCTION(shm_has_var);
37 ZEND_FUNCTION(shm_remove);
38 ZEND_FUNCTION(shm_put_var);
39 ZEND_FUNCTION(shm_get_var);
40 ZEND_FUNCTION(shm_remove_var);
41
42 static const zend_function_entry ext_functions[] = {
43 ZEND_FE(shm_attach, arginfo_shm_attach)
44 ZEND_FE(shm_detach, arginfo_shm_detach)
45 ZEND_FE(shm_has_var, arginfo_shm_has_var)
46 ZEND_FE(shm_remove, arginfo_shm_remove)
47 ZEND_FE(shm_put_var, arginfo_shm_put_var)
48 ZEND_FE(shm_get_var, arginfo_shm_get_var)
49 ZEND_FE(shm_remove_var, arginfo_shm_remove_var)
50 ZEND_FE_END
51 };
52
register_class_SysvSharedMemory(void)53 static zend_class_entry *register_class_SysvSharedMemory(void)
54 {
55 zend_class_entry ce, *class_entry;
56
57 INIT_CLASS_ENTRY(ce, "SysvSharedMemory", NULL);
58 class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE);
59
60 return class_entry;
61 }
62