国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

在安裝php event擴(kuò)展,使用time定時(shí)器采用類方法調(diào)用會(huì)有bug,無法傳遞參數(shù)?!疽呀鉀Q】

learner

問題描述

不支持 定時(shí)器,這樣調(diào)用。結(jié)束內(nèi)存超出的進(jìn)程失敗。
Timer::add(60, [$this, 'checkMemory'], [$memoryLimit]);

程序代碼或配置

    public function repeat(float $interval, callable $func, array $args = []): int
    {
        $className = $this->eventClassName;
        $timerId = $this->timerId++;
        $event = new $className($this->eventBase, -1, $className::TIMEOUT | $className::PERSIST, $func);
        if (!$event->addTimer($interval)) {
            throw new \RuntimeException("Event::addTimer($interval) failed");
        }
        $this->eventTimer[$timerId] = $event;
        return $timerId;
    }

不支持

重現(xiàn)問題的步驟

Timer::add(60, [$this, 'checkMemory'], [$memoryLimit]);

操作系統(tǒng)環(huán)境及workerman/webman等具體版本

webman v1.6.14 / workerman v5.0.0
linux php 安裝 php8.3 event擴(kuò)展

431 1 0
1個(gè)回答

walkor 打賞

更新到 v5.0.1

??