walkor / mqtt

Asynchronous MQTT client for PHP based on workerman.
207 stars 46 forks source link

连续new 两个对象会报错 #4

Closed cenchy closed 5 years ago

cenchy commented 5 years ago

连续new 两个对象会报错 for($i=0;$i<2;$i++){ $mqtt = new Workerman\Mqtt\Client(...) }

PHP Warning: Cannot declare class \Workerman\Protocols\Mqtt, because the name is already in use in