-
Notifications
You must be signed in to change notification settings - Fork 5
/
php_phactor.h
54 lines (43 loc) · 2.17 KB
/
php_phactor.h
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
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-present The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Thomas Punt <[email protected]> |
+----------------------------------------------------------------------+
*/
#ifndef PHACTOR_H
#define PHACTOR_H
#include <Zend/zend_modules.h>
#include <Zend/zend_API.h>
extern zend_module_entry phactor_module_entry;
#define phpext_phactor_ptr &phactor_module_entry
#define PHP_PHACTOR_VERSION "0.0.1"
#define PHACTOR_ZG(v) TSRMG(phactor_globals_id, zend_phactor_globals *, v)
#define PHACTOR_G(v) v
#define PHACTOR_CTX(ls, id, type, element) (((type) (*((void ***) ls))[TSRM_UNSHUFFLE_RSRC_ID(id)])->element)
#define PHACTOR_EG(ls, v) PHACTOR_CTX(ls, executor_globals_id, zend_executor_globals*, v)
#define PHACTOR_CG(ls, v) PHACTOR_CTX(ls, compiler_globals_id, zend_compiler_globals*, v)
#define PHACTOR_SG(ls, v) PHACTOR_CTX(ls, sapi_globals_id, sapi_globals_struct*, v)
ZEND_EXTERN_MODULE_GLOBALS(phactor)
ZEND_BEGIN_MODULE_GLOBALS(phactor)
HashTable op_array_file_names;
int allowed_to_construct_object;
ZEND_END_MODULE_GLOBALS(phactor)
typedef struct _common_strings_t {
zend_string *receive;
zend_string *__construct;
zend_string *ref;
zend_string *name;
} common_strings_t;
extern common_strings_t common_strings;
#endif