yasd
yasd copied to clipboard
php 8.1 编译失败
/root/yasd/src/base.cc:50:28: error: incompatible pointer types assigning to 'zend_string *' (aka '_zend_string *') from 'char *'
file_handle.filename = YASD_G(init_file);
^~~~~~~~~~~~~~~~~
./php_yasd.h:54:19: note: expanded from macro 'YASD_G'
#define YASD_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(yasd, v)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/release/php/include/php/Zend/zend_API.h:252:54: note: expanded from macro 'ZEND_MODULE_GLOBALS_ACCESSOR'
#define ZEND_MODULE_GLOBALS_ACCESSOR(module_name, v) (module_name##_globals.v)
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Makefile:220: src/base.lo] Error 1
遇到同样问题
I have the same problem :(
作者不维护了吗???
I have the same issue
把 base.cc:50 改下
char* filename = YASD_G(init_file);
file_handle.filename = zend_string_init(filename, strlen(filename), 0);
filename = NULL;
https://github.com/swoole/yasd/pull/161
I have the same issue
可以考虑使用 swoole-src的 xdebug分支,https://github.com/swoole/swoole-src/tree/support-xdebug 可以直接使用xdebug进行调试,前提是PHP版本要大于等于8.1
您好,您发的邮件我已收到,谢谢。