|
@@ -52,7 +52,7 @@ discard block |
|
|
block discarded – undo |
|
52
|
52
|
*/ |
|
53
|
53
|
private static function mbSplit($pattern, $string, $limit = -1, $flags = 0) |
|
54
|
54
|
{ |
|
55
|
|
- $strlen = strlen($string); // bytes! |
|
|
55
|
+ $strlen = strlen($string); // bytes! |
|
56
|
56
|
mb_ereg_search_init($string); |
|
57
|
57
|
|
|
58
|
58
|
$lengths = array(); |
|
@@ -331,7 +331,7 @@ discard block |
|
|
block discarded – undo |
|
331
|
331
|
// detect end quote - if the entire string is a quotation mark, or it's [quote, space, lowercase] |
|
332
|
332
|
if (trim($statement) == '"' || trim($statement) == "'" || |
|
333
|
333
|
( |
|
334
|
|
- ( substr($statement, 0, 1) === '"' || substr($statement, 0, 1) === "'" ) |
|
|
334
|
+ (substr($statement, 0, 1) === '"' || substr($statement, 0, 1) === "'") |
|
335
|
335
|
and substr($statement, 1, 1) === ' ' |
|
336
|
336
|
and ctype_lower(substr($statement, 2, 1)) === true |
|
337
|
337
|
) |
Please login to merge, or discard this patch.