在docker启动 php start.php start 启动失败
报错信息 #1位置 process\Monitor->getMemoryLimit('32m')
ErrorException: A non well formed numeric value encountered in /webman/process/Monitor.php:230
Stack trace:
#0 /webman/process/Monitor.php(230): {closure}(8, 'A non well form...', '/webman/process...', 230, Array)
#1 /webman/process/Monitor.php(97): process\Monitor->getMemoryLimit('32m')
#2 /webman/vendor/workerman/webman-framework/src/Container.php(70): process\Monitor->__construct(Array, Array, Array)
#3 /webman/vendor/workerman/webman-framework/src/support/Container.php(46): Webman\Container->make('process\\Monitor', Array)
#4 /webman/support/helpers.php(469): support\Container::__callStatic('make', Array)
#5 /webman/vendor/workerman/workerman/Worker.php(2457): {closure}(Object(Workerman\Worker))
#6 /webman/vendor/workerman/workerman/Worker.php(1579): Workerman\Worker->run()
#7 /webman/vendor/workerman/workerman/Worker.php(1420): Workerman\Worker::forkOneWorkerForLinux(Object(Workerman\Worker))
#8 /webman/vendor/workerman/workerman/Worker.php(1394): Workerman\Worker::forkWorkersForLinux()
#9 /webman/vendor/workerman/workerman/Worker.php(1725): Workerman\Worker::forkWorkers()
#10 /webman/vendor/workerman/workerman/Worker.php(1665): Workerman\Worker::monitorWorkersForLinux()
#11 /webman/vendor/workerman/workerman/Worker.php(562): Workerman\Worker::monitorWorkers()
#12 /webman/vendor/workerman/webman-framework/src/support/App.php(131): Workerman\Worker::runAll()
#13 /webman/start.php(4): support\App::run()
#14 {main}
worker[monitor:128] exit with status 64000
Workerman[start.php] has been stopped
docker镜像 php:7.4-fpm-alpine
docker镜像 php:8.1.14-fpm-alpine
workerman/webman-framework: ^1.4.3
monolog/monolog: ^2.0"
Workerman version:4.1.6 PHP version:7.4.33
截图下 /webman/process/Monitor.php 里的代码,带上行号,尤其是230行
添加了
好的,我了解了,这个问题之前修复过了,但是还没发版本