bind用x7F 對(duì)數(shù)據(jù)進(jìn)行拼接后用explode 對(duì)數(shù)據(jù)進(jìn)行拆分時(shí)出現(xiàn)bug,如果二進(jìn)制中出現(xiàn)包含x7F的數(shù)據(jù),這里轉(zhuǎn)為數(shù)組就會(huì)缺失數(shù)據(jù)內(nèi)容
public function bind($para, $value)
{
if (is_string($para)) {
$this->parameters[sizeof($this->parameters)] = ":" . $para . "\x7F" . $value;
} else {
$this->parameters[sizeof($this->parameters)] = $para . "\x7F" . $value;
}
}
在二進(jìn)制數(shù)據(jù)里面寫(xiě)入x7F即可復(fù)現(xiàn)
Gateway 3.0.3