php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
dir_arginfo.h
Go to the documentation of this file.
1/* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 4b0f093770ff9a6cad9db033e0b62b412408b937 */
3
4ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Directory_close, 0, 0, IS_VOID, 0)
6
7#define arginfo_class_Directory_rewind arginfo_class_Directory_close
8
11
15
16static const zend_function_entry class_Directory_methods[] = {
17 ZEND_RAW_FENTRY("close", zif_closedir, arginfo_class_Directory_close, ZEND_ACC_PUBLIC, NULL, NULL)
19 ZEND_RAW_FENTRY("read", zif_readdir, arginfo_class_Directory_read, ZEND_ACC_PUBLIC, NULL, NULL)
21};
22
23static void register_dir_symbols(int module_number)
24{
27#if defined(HAVE_GLOB) && (defined(GLOB_BRACE) && GLOB_BRACE != 0)
29#endif
30#if defined(HAVE_GLOB) && (defined(GLOB_ERR) && GLOB_ERR != 0)
32#endif
33#if defined(HAVE_GLOB) && (defined(GLOB_MARK) && GLOB_MARK != 0)
35#endif
36#if defined(HAVE_GLOB) && (defined(GLOB_NOCHECK) && GLOB_NOCHECK != 0)
38#endif
39#if defined(HAVE_GLOB) && (defined(GLOB_NOESCAPE) && GLOB_NOESCAPE != 0)
41#endif
42#if defined(HAVE_GLOB) && (defined(GLOB_NOSORT) && GLOB_NOSORT != 0)
44#endif
45#if defined(HAVE_GLOB) && defined(GLOB_ONLYDIR)
47#endif
48#if defined(HAVE_GLOB) && defined(GLOB_AVAILABLE_FLAGS)
50#endif
54}
55
56static zend_class_entry *register_class_Directory(void)
57{
58 zend_class_entry ce, *class_entry;
59
60 INIT_CLASS_ENTRY(ce, "Directory", class_Directory_methods);
61 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
62
63 zval property_path_default_value;
64 ZVAL_UNDEF(&property_path_default_value);
65 zend_string *property_path_name = zend_string_init("path", sizeof("path") - 1, 1);
66 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));
67 zend_string_release(property_path_name);
68
69 zval property_handle_default_value;
70 ZVAL_UNDEF(&property_handle_default_value);
71 zend_string *property_handle_name = zend_string_init("handle", sizeof("handle") - 1, 1);
72 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));
73 zend_string_release(property_handle_name);
74
75 return class_entry;
76}
readdir($dir_handle=null)
closedir($dir_handle=null)
rewinddir($dir_handle=null)
const GLOB_AVAILABLE_FLAGS
Definition dir.stub.php:71
const GLOB_ONLYDIR
Definition dir.stub.php:64
#define arginfo_class_Directory_rewind
Definition dir_arginfo.h:7
#define NULL
Definition gdcache.h:45
#define GLOB_NOSORT
Definition glob.h:78
#define GLOB_BRACE
Definition glob.h:82
#define GLOB_ERR
Definition glob.h:75
#define GLOB_MARK
Definition glob.h:76
#define GLOB_NOESCAPE
Definition glob.h:87
#define GLOB_NOCHECK
Definition glob.h:77
#define PHP_SCANDIR_SORT_DESCENDING
Definition php_dir.h:25
#define PHP_SCANDIR_SORT_NONE
Definition php_dir.h:26
#define PHP_SCANDIR_SORT_ASCENDING
Definition php_dir.h:24
char pathsep_str[2]
Definition php_dir_int.h:67
char dirsep_str[2]
Definition php_dir_int.h:67
ZEND_API zend_property_info * zend_declare_typed_property(zend_class_entry *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment, zend_type type)
Definition zend_API.c:4505
ZEND_API zend_class_entry * zend_register_internal_class_with_flags(zend_class_entry *class_entry, zend_class_entry *parent_ce, uint32_t ce_flags)
Definition zend_API.c:3512
#define ZEND_FE_END
Definition zend_API.h:124
struct _zend_function_entry zend_function_entry
#define INIT_CLASS_ENTRY(class_container, class_name, functions)
Definition zend_API.h:279
#define ZEND_RAW_FENTRY(zend_name, name, arg_info, flags, frameless_function_infos, doc_comment)
Definition zend_API.h:80
#define ZEND_END_ARG_INFO()
Definition zend_API.h:219
#define ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
Definition zend_API.h:208
#define ZEND_FUNCTION(name)
Definition zend_API.h:75
#define ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(name, return_reference, required_num_args, type)
Definition zend_API.h:188
struct _zval_struct zval
#define ZEND_ACC_READONLY
#define ZEND_ACC_PUBLIC
#define REGISTER_STRING_CONSTANT(name, str, flags)
#define CONST_PERSISTENT
#define REGISTER_LONG_CONSTANT(name, lval, flags)
struct _zend_string zend_string
struct _zend_class_entry zend_class_entry
#define MAY_BE_STRING
#define MAY_BE_FALSE
#define MAY_BE_ANY
#define ZVAL_UNDEF(z)
#define ZEND_TYPE_INIT_MASK(_type_mask)
Definition zend_types.h:283
#define IS_VOID
Definition zend_types.h:617