FIX memory exhaustion in MySQLStatement->bind()

This commit is contained in:
micmania1 2015-07-05 03:06:37 +00:00
parent 74d0622d43
commit a5b3083dcc

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