You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. What did you do? If possible, provide a simple script for reproducing the error.
Compiled php-8.4.2 from source and tried to compile swoole-6.0.0 using the following steps:
tar xf swoole-6.0.0.tgz
cd swoole-6.0.0
/usr/local/php-8.4/bin/phpize
./configure --with-php-config=/usr/local/php-8.4/bin/php-config
make
2. What did you expect to see?
The compiled swool.so PHP extension.
3. What did you see instead?
The following compile error:
11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /usr/src/swoole-6.0.0/ext-src/swoole_redis_server.cc -MMD -MF ext-src/swoole_redis_server.dep -MT ext-src/swoole_redis_server.lo -fPIC -DPIC -o ext-src/.libs/swoole_redis_server.o
/usr/src/swoole-6.0.0/ext-src/swoole_redis_server.cc: In function ‘int php_swoole_redis_server_onReceive(swoole::Server*, swoole::RecvData*)’:
/usr/src/swoole-6.0.0/ext-src/swoole_redis_server.cc:159:5: error: ‘php_strtolower’ was not declared in this scope; did you mean ‘php_strtok_r’?
159 | php_strtolower(_command, _command_len);
| ^~~~~~~~~~~~~~
| php_strtok_r
/usr/src/swoole-6.0.0/ext-src/swoole_redis_server.cc: In function ‘void zim_swoole_redis_server_setHandler(zend_execute_data*, zval*)’:
/usr/src/swoole-6.0.0/ext-src/swoole_redis_server.cc:217:5: error: ‘php_strtolower’ was not declared in this scope; did you mean ‘php_strtok_r’?
217 | php_strtolower(_command, _command_len);
| ^~~~~~~~~~~~~~
| php_strtok_r
/usr/src/swoole-6.0.0/ext-src/swoole_redis_server.cc: In function ‘void zim_swoole_redis_server_getHandler(zend_execute_data*, zval*)’:
/usr/src/swoole-6.0.0/ext-src/swoole_redis_server.cc:243:5: error: ‘php_strtolower’ was not declared in this scope; did you mean ‘php_strtok_r’?
243 | php_strtolower(_command, _command_len);
| ^~~~~~~~~~~~~~
| php_strtok_r
make: *** [Makefile:255: ext-src/swoole_redis_server.lo] Error 1
4. What version of Swoole are you using (show your php --ri swoole)?
The extension is not present yet because it did not compile.
5. What is your machine environment used (show your uname -a & php -v & gcc -v) ?
The output information when you execute phpize is what?
It is possible that your PHP header files are messy, which is why the incorrect version information and header file information were read.
1. What did you do? If possible, provide a simple script for reproducing the error.
Compiled php-8.4.2 from source and tried to compile swoole-6.0.0 using the following steps:
2. What did you expect to see?
The compiled swool.so PHP extension.
3. What did you see instead?
The following compile error:
4. What version of Swoole are you using (show your
php --ri swoole
)?The extension is not present yet because it did not compile.
5. What is your machine environment used (show your
uname -a
&php -v
&gcc -v
) ?The text was updated successfully, but these errors were encountered: