mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX memory exhaustion in MySQLStatement->bind()
This commit is contained in:
parent
74d0622d43
commit
a5b3083dcc
@ -58,12 +58,13 @@ class MySQLStatement extends SS_Query {
|
|||||||
$variables[] = &$this->boundValues[$field->name];
|
$variables[] = &$this->boundValues[$field->name];
|
||||||
}
|
}
|
||||||
|
|
||||||
call_user_func_array(array($this->statement, 'bind_result'), $variables);
|
|
||||||
$this->bound = true;
|
$this->bound = true;
|
||||||
$this->metadata->free();
|
$this->metadata->free();
|
||||||
|
|
||||||
// Buffer all results
|
// Buffer all results
|
||||||
$this->statement->store_result();
|
$this->statement->store_result();
|
||||||
|
|
||||||
|
call_user_func_array(array($this->statement, 'bind_result'), $variables);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user