这可能是什么原因:
public function __construct($host, $port, $timeout = 5){
$errnum = 0;
$errstr = '';
Run Code Online (Sandbox Code Playgroud)
而不是这个:
public function __construct($host, $port, $errnum = 0, $errstr = '', $timeout = 5){
Run Code Online (Sandbox Code Playgroud)
?
为什么有些人是params而有些人不是?
非常感谢,MEM