/src/php-src/ext/standard/dir_arginfo.h
Line | Count | Source |
1 | | /* This is a generated file, edit the .stub.php file instead. |
2 | | * Stub hash: e21d382cd4001001874c49d8c5244efb57613910 */ |
3 | | |
4 | | ZEND_BEGIN_ARG_WITH_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_RETURN_TYPE_MASK_EX(arginfo_class_Directory_read, 0, 0, MAY_BE_STRING|MAY_BE_FALSE) |
10 | | ZEND_END_ARG_INFO() |
11 | | |
12 | | ZEND_METHOD(Directory, close); |
13 | | ZEND_METHOD(Directory, rewind); |
14 | | ZEND_METHOD(Directory, read); |
15 | | |
16 | | static const zend_function_entry class_Directory_methods[] = { |
17 | | ZEND_ME(Directory, close, arginfo_class_Directory_close, ZEND_ACC_PUBLIC) |
18 | | ZEND_ME(Directory, rewind, arginfo_class_Directory_rewind, ZEND_ACC_PUBLIC) |
19 | | ZEND_ME(Directory, read, arginfo_class_Directory_read, ZEND_ACC_PUBLIC) |
20 | | ZEND_FE_END |
21 | | }; |
22 | | |
23 | | static void register_dir_symbols(int module_number) |
24 | 16 | { |
25 | 16 | REGISTER_STRING_CONSTANT("DIRECTORY_SEPARATOR", dirsep_str, CONST_PERSISTENT); |
26 | 16 | REGISTER_STRING_CONSTANT("PATH_SEPARATOR", pathsep_str, CONST_PERSISTENT); |
27 | 16 | #if (defined(PHP_GLOB_BRACE) && PHP_GLOB_BRACE != 0) |
28 | 16 | REGISTER_LONG_CONSTANT("GLOB_BRACE", PHP_GLOB_BRACE, CONST_PERSISTENT); |
29 | 16 | #endif |
30 | 16 | #if (defined(PHP_GLOB_ERR) && PHP_GLOB_ERR != 0) |
31 | 16 | REGISTER_LONG_CONSTANT("GLOB_ERR", PHP_GLOB_ERR, CONST_PERSISTENT); |
32 | 16 | #endif |
33 | 16 | #if (defined(PHP_GLOB_MARK) && PHP_GLOB_MARK != 0) |
34 | 16 | REGISTER_LONG_CONSTANT("GLOB_MARK", PHP_GLOB_MARK, CONST_PERSISTENT); |
35 | 16 | #endif |
36 | 16 | #if (defined(PHP_GLOB_NOCHECK) && PHP_GLOB_NOCHECK != 0) |
37 | 16 | REGISTER_LONG_CONSTANT("GLOB_NOCHECK", PHP_GLOB_NOCHECK, CONST_PERSISTENT); |
38 | 16 | #endif |
39 | 16 | #if (defined(PHP_GLOB_NOESCAPE) && PHP_GLOB_NOESCAPE != 0) |
40 | 16 | REGISTER_LONG_CONSTANT("GLOB_NOESCAPE", PHP_GLOB_NOESCAPE, CONST_PERSISTENT); |
41 | 16 | #endif |
42 | 16 | #if (defined(PHP_GLOB_NOSORT) && PHP_GLOB_NOSORT != 0) |
43 | 16 | REGISTER_LONG_CONSTANT("GLOB_NOSORT", PHP_GLOB_NOSORT, CONST_PERSISTENT); |
44 | 16 | #endif |
45 | 16 | #if (defined(PHP_GLOB_ONLYDIR) && PHP_GLOB_ONLYDIR != 0) |
46 | 16 | REGISTER_LONG_CONSTANT("GLOB_ONLYDIR", PHP_GLOB_ONLYDIR, CONST_PERSISTENT); |
47 | 16 | #endif |
48 | 16 | #if defined(PHP_GLOB_AVAILABLE_FLAGS) |
49 | 16 | REGISTER_LONG_CONSTANT("GLOB_AVAILABLE_FLAGS", PHP_GLOB_AVAILABLE_FLAGS, CONST_PERSISTENT); |
50 | 16 | #endif |
51 | 16 | REGISTER_LONG_CONSTANT("SCANDIR_SORT_ASCENDING", PHP_SCANDIR_SORT_ASCENDING, CONST_PERSISTENT); |
52 | 16 | REGISTER_LONG_CONSTANT("SCANDIR_SORT_DESCENDING", PHP_SCANDIR_SORT_DESCENDING, CONST_PERSISTENT); |
53 | 16 | REGISTER_LONG_CONSTANT("SCANDIR_SORT_NONE", PHP_SCANDIR_SORT_NONE, CONST_PERSISTENT); |
54 | 16 | } |
55 | | |
56 | | static zend_class_entry *register_class_Directory(void) |
57 | 16 | { |
58 | 16 | zend_class_entry ce, *class_entry; |
59 | | |
60 | 16 | INIT_CLASS_ENTRY(ce, "Directory", class_Directory_methods); |
61 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE); |
62 | | |
63 | 16 | zval property_path_default_value; |
64 | 16 | ZVAL_UNDEF(&property_path_default_value); |
65 | 16 | zend_declare_typed_property(class_entry, ZSTR_KNOWN(ZEND_STR_PATH), &property_path_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING)); |
66 | | |
67 | 16 | zval property_handle_default_value; |
68 | 16 | ZVAL_UNDEF(&property_handle_default_value); |
69 | 16 | zend_string *property_handle_name = zend_string_init("handle", sizeof("handle") - 1, 1); |
70 | 16 | 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)); |
71 | 16 | zend_string_release(property_handle_name); |
72 | | |
73 | 16 | return class_entry; |
74 | 16 | } |