xref: /PHP-8.2/ext/standard/dir_arginfo.h (revision 29c6eb6c)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: b3890e798e609e306027b4717ce0c5e782884087 */
3 
4 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Directory_close, 0, 0, IS_VOID, 0)
5 ZEND_END_ARG_INFO()
6 
7 #define arginfo_class_Directory_rewind arginfo_class_Directory_close
8 
9 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_Directory_read, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
10 ZEND_END_ARG_INFO()
11 
12 
13 ZEND_FUNCTION(closedir);
14 ZEND_FUNCTION(rewinddir);
15 ZEND_FUNCTION(readdir);
16 
17 
18 static const zend_function_entry class_Directory_methods[] = {
19 	ZEND_ME_MAPPING(close, closedir, arginfo_class_Directory_close, ZEND_ACC_PUBLIC)
20 	ZEND_ME_MAPPING(rewind, rewinddir, arginfo_class_Directory_rewind, ZEND_ACC_PUBLIC)
21 	ZEND_ME_MAPPING(read, readdir, arginfo_class_Directory_read, ZEND_ACC_PUBLIC)
22 	ZEND_FE_END
23 };
24 
register_class_Directory(void)25 static zend_class_entry *register_class_Directory(void)
26 {
27 	zend_class_entry ce, *class_entry;
28 
29 	INIT_CLASS_ENTRY(ce, "Directory", class_Directory_methods);
30 	class_entry = zend_register_internal_class_ex(&ce, NULL);
31 
32 	zval property_path_default_value;
33 	ZVAL_UNDEF(&property_path_default_value);
34 	zend_string *property_path_name = zend_string_init("path", sizeof("path") - 1, 1);
35 	zend_declare_typed_property(class_entry, property_path_name, &property_path_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
36 	zend_string_release(property_path_name);
37 
38 	zval property_handle_default_value;
39 	ZVAL_UNDEF(&property_handle_default_value);
40 	zend_string *property_handle_name = zend_string_init("handle", sizeof("handle") - 1, 1);
41 	zend_declare_typed_property(class_entry, property_handle_name, &property_handle_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ANY));
42 	zend_string_release(property_handle_name);
43 
44 	return class_entry;
45 }
46