xref: /PHP-8.2/Zend/zend_weakrefs_arginfo.h (revision 570d9b63)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: d91889851d9732d41e43fffddb6235d033c67534 */
3 
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_WeakReference___construct, 0, 0, 0)
5 ZEND_END_ARG_INFO()
6 
7 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_WeakReference_create, 0, 1, WeakReference, 0)
8 	ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
9 ZEND_END_ARG_INFO()
10 
11 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_WeakReference_get, 0, 0, IS_OBJECT, 1)
12 ZEND_END_ARG_INFO()
13 
14 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_WeakMap_offsetGet, 0, 1, IS_MIXED, 0)
15 	ZEND_ARG_INFO(0, object)
16 ZEND_END_ARG_INFO()
17 
18 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_WeakMap_offsetSet, 0, 2, IS_VOID, 0)
19 	ZEND_ARG_INFO(0, object)
20 	ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
21 ZEND_END_ARG_INFO()
22 
23 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_WeakMap_offsetExists, 0, 1, _IS_BOOL, 0)
24 	ZEND_ARG_INFO(0, object)
25 ZEND_END_ARG_INFO()
26 
27 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_WeakMap_offsetUnset, 0, 1, IS_VOID, 0)
28 	ZEND_ARG_INFO(0, object)
29 ZEND_END_ARG_INFO()
30 
31 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_WeakMap_count, 0, 0, IS_LONG, 0)
32 ZEND_END_ARG_INFO()
33 
34 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_WeakMap_getIterator, 0, 0, Iterator, 0)
35 ZEND_END_ARG_INFO()
36 
37 
38 ZEND_METHOD(WeakReference, __construct);
39 ZEND_METHOD(WeakReference, create);
40 ZEND_METHOD(WeakReference, get);
41 ZEND_METHOD(WeakMap, offsetGet);
42 ZEND_METHOD(WeakMap, offsetSet);
43 ZEND_METHOD(WeakMap, offsetExists);
44 ZEND_METHOD(WeakMap, offsetUnset);
45 ZEND_METHOD(WeakMap, count);
46 ZEND_METHOD(WeakMap, getIterator);
47 
48 
49 static const zend_function_entry class_WeakReference_methods[] = {
50 	ZEND_ME(WeakReference, __construct, arginfo_class_WeakReference___construct, ZEND_ACC_PUBLIC)
51 	ZEND_ME(WeakReference, create, arginfo_class_WeakReference_create, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
52 	ZEND_ME(WeakReference, get, arginfo_class_WeakReference_get, ZEND_ACC_PUBLIC)
53 	ZEND_FE_END
54 };
55 
56 
57 static const zend_function_entry class_WeakMap_methods[] = {
58 	ZEND_ME(WeakMap, offsetGet, arginfo_class_WeakMap_offsetGet, ZEND_ACC_PUBLIC)
59 	ZEND_ME(WeakMap, offsetSet, arginfo_class_WeakMap_offsetSet, ZEND_ACC_PUBLIC)
60 	ZEND_ME(WeakMap, offsetExists, arginfo_class_WeakMap_offsetExists, ZEND_ACC_PUBLIC)
61 	ZEND_ME(WeakMap, offsetUnset, arginfo_class_WeakMap_offsetUnset, ZEND_ACC_PUBLIC)
62 	ZEND_ME(WeakMap, count, arginfo_class_WeakMap_count, ZEND_ACC_PUBLIC)
63 	ZEND_ME(WeakMap, getIterator, arginfo_class_WeakMap_getIterator, ZEND_ACC_PUBLIC)
64 	ZEND_FE_END
65 };
66 
register_class_WeakReference(void)67 static zend_class_entry *register_class_WeakReference(void)
68 {
69 	zend_class_entry ce, *class_entry;
70 
71 	INIT_CLASS_ENTRY(ce, "WeakReference", class_WeakReference_methods);
72 	class_entry = zend_register_internal_class_ex(&ce, NULL);
73 	class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
74 
75 	return class_entry;
76 }
77 
register_class_WeakMap(zend_class_entry * class_entry_ArrayAccess,zend_class_entry * class_entry_Countable,zend_class_entry * class_entry_IteratorAggregate)78 static zend_class_entry *register_class_WeakMap(zend_class_entry *class_entry_ArrayAccess, zend_class_entry *class_entry_Countable, zend_class_entry *class_entry_IteratorAggregate)
79 {
80 	zend_class_entry ce, *class_entry;
81 
82 	INIT_CLASS_ENTRY(ce, "WeakMap", class_WeakMap_methods);
83 	class_entry = zend_register_internal_class_ex(&ce, NULL);
84 	class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
85 	zend_class_implements(class_entry, 3, class_entry_ArrayAccess, class_entry_Countable, class_entry_IteratorAggregate);
86 
87 	return class_entry;
88 }
89