Don't overwrite variable
This commit is contained in:
parent
c24dd79c22
commit
5a507ec586
|
@ -891,9 +891,8 @@ if (!defined("DRIVER")) {
|
||||||
$fields = array();
|
$fields = array();
|
||||||
preg_match_all("~$pattern\\s*,?~is", $match[1], $matches, PREG_SET_ORDER);
|
preg_match_all("~$pattern\\s*,?~is", $match[1], $matches, PREG_SET_ORDER);
|
||||||
foreach ($matches as $param) {
|
foreach ($matches as $param) {
|
||||||
$name = str_replace("``", "`", $param[2]) . $param[3];
|
|
||||||
$fields[] = array(
|
$fields[] = array(
|
||||||
"field" => $name,
|
"field" => str_replace("``", "`", $param[2]) . $param[3],
|
||||||
"type" => strtolower($param[5]),
|
"type" => strtolower($param[5]),
|
||||||
"length" => preg_replace_callback("~$enum_length~s", 'normalize_enum', $param[6]),
|
"length" => preg_replace_callback("~$enum_length~s", 'normalize_enum', $param[6]),
|
||||||
"unsigned" => strtolower(preg_replace('~\s+~', ' ', trim("$param[8] $param[7]"))),
|
"unsigned" => strtolower(preg_replace('~\s+~', ' ', trim("$param[8] $param[7]"))),
|
||||||
|
|
Loading…
Reference in a new issue