-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphp.h
More file actions
67 lines (54 loc) · 1.7 KB
/
Copy pathphp.h
File metadata and controls
67 lines (54 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
char *strdup(const char *s);
struct __sFile
{
int unused;
};
typedef struct __sFILE FILE;
typedef uint64_t zend_ulong;
typedef size_t (*zend_stream_fsizer_t)(void* handle);
typedef ssize_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len);
typedef void (*zend_stream_closer_t)(void* handle);
typedef struct _zend_stream {
void *handle;
int isatty;
zend_stream_reader_t reader;
zend_stream_fsizer_t fsizer;
zend_stream_closer_t closer;
} zend_stream;
typedef struct _zend_refcounted_h {
uint32_t refcount; /* reference counter 32-bit */
union {
uint32_t type_info;
} u;
} zend_refcounted_h;
struct _zend_string {
zend_refcounted_h gc;
zend_ulong h; /* hash value */
size_t len;
char val[1];
};
typedef struct _zend_string zend_string;
typedef enum {
ZEND_HANDLE_FILENAME,
ZEND_HANDLE_FP,
ZEND_HANDLE_STREAM
} zend_stream_type;
typedef unsigned char zend_bool;
typedef struct _zend_file_handle {
union {
FILE *fp;
zend_stream stream;
} handle;
const char *filename;
zend_string *opened_path;
zend_stream_type type;
/* free_filename is used by wincache */
/* TODO: Clean up filename vs opened_path mess */
zend_bool free_filename;
char *buf;
size_t len;
} zend_file_handle;
typedef int (*zend_stream_open_function_func_t)(const char *filename, zend_file_handle *handle);
typedef void (*php_var_dump_func_t)(void *struc, int level);
extern zend_stream_open_function_func_t zend_stream_open_function;
extern php_var_dump_func_t php_var_dump;