error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED); 會報數(shù)組變量undefined index
workerman為了方便開發(fā)者定位錯誤,使用了 error_reporting(E_ALL),你可以在onWorkerStart里重新利用 error_reporting(...)覆蓋設(shè)置。 不過有錯誤最好去解決,不要隱藏,否則出了bug很難調(diào)試。
謝謝大佬的解答