File tree 3 files changed +43
-0
lines changed
3 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ PHP_ARG_ENABLE (dql-tokenizer,
2
+ [ Whether to enable the "dql-tokenizer" extension] ,
3
+ [ --enable-dql-tokenizer Enable "dql-tokenizer" extension support] )
4
+
5
+ if test $PHP_DQL_TOKENIZER != "no"; then
6
+ PHP_NEW_EXTENSION(dql-tokenizer, dql-tokenizer.c, $ext_shared)
7
+ PHP_SUBST(DQL_TOKENIZER_SHARED_LIBADD)
8
+ fi
Original file line number Diff line number Diff line change
1
+ #include "php_dql-tokenizer.h"
2
+
3
+ zend_module_entry dql_tokenizer_module_entry = {
4
+ #if ZEND_MODULE_API_NO >= 20010901
5
+ STANDARD_MODULE_HEADER ,
6
+ #endif
7
+ PHP_DQL_TOKENIZER_EXTNAME ,
8
+ NULL , /* functions */
9
+ NULL , /* MINIT */
10
+ NULL , /* MSHUTDOWN */
11
+ NULL , /* RINIT */
12
+ NULL , /* RSHUTDOWN */
13
+ NULL , /* MINFO */
14
+ #if ZEND_MODULE_API_NO >= 20010901
15
+ PHP_DQL_TOKENIZER_EXTVAR ,
16
+ #endif
17
+ STANDARD_MODULE_PROPERTIES
18
+ };
19
+
20
+ #ifdef COMPILE_DL_DQL_TOKENIZER
21
+ ZEND_GET_MODULE (sample )
22
+ #endif
Original file line number Diff line number Diff line change
1
+ #ifndef PHP_DQL_TOKENIZER_H
2
+
3
+ #define PHP_DQL_TOKENIZER_H
4
+
5
+ #define PHP_DQL_TOKENIZER_EXTNAME "dql-tokenizer"
6
+ #define PHP_DQL_TOKENIZER_EXTVAR "0.1"
7
+
8
+ #include "php.h"
9
+
10
+ extern zend_module_entry dql_tokenizer_module_entry ;
11
+ #define phpext_dql_tokenizer_ptr &dql_tokenizer_module_entry
12
+
13
+ #endif /* end of "ifndef PHP_DQL_TOKENIZER_H" */
You can’t perform that action at this time.
0 commit comments