1.下载了https://dl.zhamao.xin/php-bin/file/
的php-8.1.8-static-bin-x86_64.tar.gz
文件
2.解压后放到usr/local/bin
3.然后启动项目php start.php start
报错
Error: Call to undefined function session_get_cookie_params() in .../vendor/workerman/workerman/Protocols/Http/Session.php:338
php版本
PHP 8.1.8 (cli) (built: Jul 15 2022 02:08:52) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.8, Copyright (c) Zend Technologies
php拓展
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
event
exif
FFI
fileinfo
filter
gd
hash
iconv
inotify
json
libxml
mbstring
mongodb
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
redis
Reflection
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
swoole
tokenizer
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]
"php": ">=7.2",
"workerman/webman-framework": "^1.5.0"
https://www.workerman.net/download
你那个却session木块,用webman官方的没问题
确实如此!thanks!