avoid undefined variable next_quote

This commit is contained in:
Marc Delisle
2007-10-05 16:54:00 +00:00
parent 113b4fbcf7
commit c52481b5f9

View File

@@ -77,8 +77,12 @@ while (!($finished && $i >= $len) && !$error && !$timeout_passed) {
$first_quote = strpos($buffer, '\'', $i); $first_quote = strpos($buffer, '\'', $i);
if ($first_quote === FALSE) { if ($first_quote === FALSE) {
$first_quote = $big_value; $first_quote = $big_value;
$next_quote = $big_value;
} else { } else {
$next_quote = strpos($buffer, '\'', $first_quote + 1); $next_quote = strpos($buffer, '\'', $first_quote + 1);
if ($next_quote === FALSE) {
$next_quote = $big_value;
}
} }
$p2 = strpos($buffer, '"', $i); $p2 = strpos($buffer, '"', $i);
if ($p2 === FALSE) { if ($p2 === FALSE) {