-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathphp_ds.h
54 lines (42 loc) · 1.12 KB
/
php_ds.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
#ifndef PHP_DS_H
#define PHP_DS_H
#include <stdbool.h>
#include "php.h"
#include "main/php.h"
#include "zend_exceptions.h"
#include "zend_interfaces.h"
#include "zend_operators.h"
#include "ext/standard/info.h"
#include "ext/standard/php_var.h"
#include "ext/spl/spl_iterators.h"
#include "ext/spl/spl_exceptions.h"
#include "zend_smart_str.h"
#include "ext/json/php_json.h"
extern zend_module_entry ds_module_entry;
#define phpext_ds_ptr &ds_module_entry
/* Replace with version number for your extension */
#define PHP_DS_VERSION "1.5.0"
#ifdef PHP_WIN32
# define PHP_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4
# define PHP_API __attribute__ ((visibility("default")))
#else
# define PHP_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
ZEND_BEGIN_MODULE_GLOBALS(ds)
zend_fcall_info user_compare_fci;
zend_fcall_info_cache user_compare_fci_cache;
ZEND_END_MODULE_GLOBALS(ds)
#ifdef ZTS
#define DSG(v) TSRMG(ds_globals_id, zend_ds_globals *, v)
#else
#define DSG(v) (ds_globals.v)
#endif
ZEND_EXTERN_MODULE_GLOBALS(ds);
#if defined(ZTS) && defined(COMPILE_DL_DS)
ZEND_TSRMLS_CACHE_EXTERN();
#endif
#endif