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
35 ZEND_FUNCTION(shm_attach);
36 ZEND_FUNCTION(shm_detach);
37 ZEND_FUNCTION(shm_has_var);
38 ZEND_FUNCTION(shm_remove);
39 ZEND_FUNCTION(shm_put_var);
40 ZEND_FUNCTION(shm_get_var);
41 ZEND_FUNCTION(shm_remove_var);
42
43
44 static const zend_function_entry ext_functions[] = {
45 ZEND_FE(shm_attach, arginfo_shm_attach)
46 ZEND_FE(shm_detach, arginfo_shm_detach)
47 ZEND_FE(shm_has_var, arginfo_shm_has_var)
48 ZEND_FE(shm_remove, arginfo_shm_remove)
49 ZEND_FE(shm_put_var, arginfo_shm_put_var)
50 ZEND_FE(shm_get_var, arginfo_shm_get_var)
51 ZEND_FE(shm_remove_var, arginfo_shm_remove_var)
52 ZEND_FE_END
53 };
54
55
56 static const zend_function_entry class_SysvSharedMemory_methods[] = {
57 ZEND_FE_END
58 };
59
register_class_SysvSharedMemory(void)60 static zend_class_entry *register_class_SysvSharedMemory(void)
61 {
62 zend_class_entry ce, *class_entry;
63
64 INIT_CLASS_ENTRY(ce, "SysvSharedMemory", class_SysvSharedMemory_methods);
65 class_entry = zend_register_internal_class_ex(&ce, NULL);
66 class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
67
68 return class_entry;
69 }
70