-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphp_study.h
More file actions
40 lines (27 loc) · 868 Bytes
/
php_study.h
File metadata and controls
40 lines (27 loc) · 868 Bytes
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
/* study extension for PHP */
#ifndef PHP_STUDY_H
# define PHP_STUDY_H
# include "php.h"
# include "php_ini.h"
# include "ext/standard/info.h"
# include "study.h"
# define PHP_STUDY_VERSION "0.1.0"
extern zend_module_entry study_module_entry;
# define phpext_study_ptr &study_module_entry
PHP_FUNCTION(study_test1);
void study_coroutine_util_init();
void study_coroutine_server_coro_init();
inline zval *st_zend_read_property(zend_class_entry *class_ptr, zval *obj, const char *name, int len, int silent)
{
zval rv;
return zend_read_property(class_ptr, obj, name, len, silent, &rv);
}
# if defined(ZTS) && defined(COMPILE_DL_STUDY)
ZEND_TSRMLS_CACHE_EXTERN()
# endif
/**
* Declare any global variables you may need between the BEGIN and END macros here
*/
ZEND_BEGIN_MODULE_GLOBALS(study)
ZEND_END_MODULE_GLOBALS(study)
#endif /* PHP_STUDY_H */