MysqliDb クラスを使用していますが、次のエラーが発生します。
「非推奨: Call-time pass-by-reference は C:...\MySqlDb.php の 101 行目で廃止されました」、340、348、および 375
array_push 関数は次のとおりです。
array_push($params, &$bindParams[$prop]);
array_push($this->_bindParams, &$tableData[$prop]);
「&」を削除すると機能しましたが、これらの/\ 2つだけで機能し、これら/ 2つでは機能しませんでした(多くのエラーが発生しました)
if($hasConditional) {
if ($this->_where) {
$this->_bindParams[0] .= $this->_whereTypeList;
foreach ($this->_where as $prop => $val) {
array_push($this->_bindParams, &$this->_where[$prop]);
}
}
}
と
while ($field = $meta->fetch_field()) {
array_push($parameters, &$row[$field->name]);
}
MysqliDb クラスはここにあります: https://github.com/ajillion/PHP-MySQLi-Database-Class