Revize 2394
Přidáno uživatelem Ondřej Fibich před téměř 10 roky(ů)
freenetis/branches/1.2/application/libraries/SqlScriptParser.php | ||
---|---|---|
$queries = array(); // parsed queries (result)
|
||
$buffer = array(); // help letter buffer
|
||
$string_term = NULL; // last string termination character (" or ')
|
||
$script_length = mb_strlen($script_content);
|
||
$script_content_char_array = str_split($script_content);
|
||
$script_length = count($script_content_char_array);
|
||
|
||
for ($i = 0; $i < $script_length; $i++)
|
||
{
|
||
$letter = $script_content[$i];
|
||
$letter = $script_content_char_array[$i];
|
||
|
||
switch ($s)
|
||
{
|
Také k dispozici: Unified diff
Opravy: oprava chybne iterace pres PHP retezec v parseru SQL prikazu (nelze takto resit pro velke stringy, asi nejaka chyba v PHP)