free memory!

This commit is contained in:
Sebastian Mendel
2007-03-29 10:22:39 +00:00
parent 3626acdb24
commit 8e9bc00eab

View File

@@ -54,6 +54,8 @@ if (isset($plugin_list)) {
} else { } else {
// Append new data to buffer // Append new data to buffer
$buffer .= $data; $buffer .= $data;
// free memory
unset($data);
// Do not parse string when we're not at the end and don't have ; inside // Do not parse string when we're not at the end and don't have ; inside
if ((strpos($buffer, $sql_delimiter, $i) === FALSE) && !$finished) { if ((strpos($buffer, $sql_delimiter, $i) === FALSE) && !$finished) {
continue; continue;
@@ -123,7 +125,7 @@ if (isset($plugin_list)) {
$ch = $buffer[$i]; $ch = $buffer[$i];
// Quotes // Quotes
if (!(strpos('\'"`', $ch) === FALSE)) { if (strpos('\'"`', $ch) !== FALSE) {
$quote = $ch; $quote = $ch;
$endq = FALSE; $endq = FALSE;
while (!$endq) { while (!$endq) {
@@ -160,8 +162,8 @@ if (isset($plugin_list)) {
// Not enough data to decide // Not enough data to decide
if ((($i == ($len - 1) && ($ch == '-' || $ch == '/')) if ((($i == ($len - 1) && ($ch == '-' || $ch == '/'))
|| ($i == ($len - 2) && (($ch == '-' && $buffer[$i + 1] == '-') || ($ch == '/' && $buffer[$i + 1] == '*'))) || ($i == ($len - 2) && (($ch == '-' && $buffer[$i + 1] == '-')
) && !$finished) { || ($ch == '/' && $buffer[$i + 1] == '*')))) && !$finished) {
break; break;
} }