Skip to content

./thirdparty/php/main/SAPI.h:41:39: error: cannot convert ‘zend_string*’ {aka ‘_zend_string*’} to ‘char*’ in assignment #5931

@hetao29

Description

@hetao29

make[1]: Entering directory '/data/php8/src/swoole-6.1.2'
/bin/bash /data/php8/src/swoole-6.1.2/libtool --tag=CXX --mode=compile g++ -I. -I/data/php8/src/swoole-6.1.2 -I/data/php8/include/php -I/data/php8/include/php/main -I/data/php8/include/php/TSRM -I/data/php8/include/php/Zend -I/data/php8/include/php/ext -I/data/php8/include/php/ext/date/lib -I/usr/include/x86_64-linux-gnu -I/data/php8/src/swoole-6.1.2 -I/data/php8/src/swoole-6.1.2/include -I/data/php8/src/swoole-6.1.2/ext-src -I/data/php8/src/swoole-6.1.2/thirdparty -DHAVE_CONFIG_H -g -O2 -Wall -Wno-date-time -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++14 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /data/php8/src/swoole-6.1.2/ext-src/swoole_http_request.cc -o ext-src/swoole_http_request.lo -MMD -MF ext-src/swoole_http_request.dep -MT ext-src/swoole_http_request.lo
g++ -I. -I/data/php8/src/swoole-6.1.2 -I/data/php8/include/php -I/data/php8/include/php/main -I/data/php8/include/php/TSRM -I/data/php8/include/php/Zend -I/data/php8/include/php/ext -I/data/php8/include/php/ext/date/lib -I/usr/include/x86_64-linux-gnu -I/data/php8/src/swoole-6.1.2 -I/data/php8/src/swoole-6.1.2/include -I/data/php8/src/swoole-6.1.2/ext-src -I/data/php8/src/swoole-6.1.2/thirdparty -DHAVE_CONFIG_H -g -O2 -Wall -Wno-date-time -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++14 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /data/php8/src/swoole-6.1.2/ext-src/swoole_http_request.cc -MMD -MF ext-src/swoole_http_request.dep -MT ext-src/swoole_http_request.lo -fPIC -DPIC -o ext-src/.libs/swoole_http_request.o
In file included from /data/php8/src/swoole-6.1.2/ext-src/swoole_http_request.cc:22:
./thirdparty/php/main/SAPI.h: In function ‘void swoole_php_treat_data(int, char*, zval*)’:
./thirdparty/php/main/SAPI.h:41:39: error: cannot convert ‘zend_string*’ {aka ‘_zend_string*’} to ‘char*’ in assignment
41 | separator = PG(arg_separator).input;
make[1]: *** [Makefile:280: ext-src/swoole_http_request.lo] Error 1
make[1]: Leaving directory '/data/php8/src/swoole-6.1.2'
make: *** [Makefile:25: swoole] Error 2

php 8.5.0, swoole 6.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions