Merge pull request #4369 from micmania1/4322-fix-memory-exhaustion

FIX memory exhaustion in MySQLStatement->bind()
This commit is contained in:
Damian Mooyman 2015-07-06 10:33:32 +12:00
commit f43944276d

View File

@ -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);
}
/**