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