二进制phpcli启动项目报错

leedom

问题描述

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

操作系统及workerman/webman等框架组件具体版本

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"
647 1 0
1个回答

黑哥

https://www.workerman.net/download
你那个却session木块,用webman官方的没问题

年代过于久远,无法发表回答
×
🔝