未验证 提交 c5369cf0 编写于 作者: T Tiny 提交者: GitHub

error: 'for' loop initial declarations are only allowed in C99 mode

error: 'for' loop initial declarations are only allowed in C99 mode
note: use option -std=c99 or -std=gnu99 to compile your code
上级 e50a2f33
......@@ -136,7 +136,8 @@ ZEND_API void sky_execute_ex(zend_execute_data *execute_data) {
add_assoc_string(&tags, "db.type", "redis");
uint32_t arg_count = ZEND_CALL_NUM_ARGS(execute_data);
zval *fname = ZEND_CALL_ARG(execute_data, 1);
for (int i = 1; i < arg_count + 1; ++i) {
int i;
for (i = 1; i < arg_count + 1; ++i) {
if (i == 1) {
continue;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册