Skip to content

Commit 479fd30

Browse files
authored
Merge pull request #93 from dreamsxin/php8
Support for php8
2 parents 037fc9f + 5d30b87 commit 479fd30

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
- '7.1'
2828
- '7.3'
2929
- '7.4'
30+
- '8.0'
3031
name:
3132
- Ubuntu
3233
- macOS

zephir_parser.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,18 @@ PHP_MINFO_FUNCTION(zephir_parser)
8585
}
8686
/* }}} */
8787

88+
89+
ZEND_BEGIN_ARG_INFO_EX(arginfo_zephir_parse_file, 0, 0, 2)
90+
ZEND_ARG_TYPE_INFO(0, content, IS_STRING, 0)
91+
ZEND_ARG_TYPE_INFO(0, filepath, IS_STRING, 0)
92+
ZEND_END_ARG_INFO()
93+
8894
/* {{{ zephir_parser_functions[]
8995
*
9096
* Every user visible function must have an entry in zephir_parser_functions[].
9197
*/
9298
static const zend_function_entry zephir_parser_functions[] = {
93-
PHP_FE(zephir_parse_file, NULL)
99+
PHP_FE(zephir_parse_file, arginfo_zephir_parse_file)
94100
PHP_FE_END
95101
};
96102
/* }}} */

zephir_parser.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@ extern zend_module_entry zephir_parser_module_entry;
3737
ZEND_TSRMLS_CACHE_EXTERN();
3838
#endif
3939

40+
#ifndef TSRMLS_CC
41+
# define TSRMLS_CC
42+
#endif
43+
4044
#endif

0 commit comments

Comments
 (0)