You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixes issue greenlion#320
a warning was issued in `PositionCalculator#findPositionWithinString`
when calling `strpos` on an empty value:
```
Warning: strpos(): Empty needle in
src/PHPSQLParser/positions/PositionCalculator.php on line 138
```
=> return `false` earlier in that case, to then throw an exception
* fix "strpos empty needle" warning
fixes issue #320
a warning was issued in `PositionCalculator#findPositionWithinString`
when calling `strpos` on an empty value:
```
Warning: strpos(): Empty needle in
src/PHPSQLParser/positions/PositionCalculator.php on line 138
```
=> return `false` earlier in that case, to then throw an exception
* adapt test to make it compatible with PHP 5.4
PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting
identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in
/home/travis/build/greenlion/PHP-SQL-Parser/tests/cases/parser/issue320Test.php
on line 55
hi,
when running this code example:
the following PHP warning is displayed:
Ideally the library would be able to parse such a query since MySQL can.
Alternatively it would be nice to avoid the warning.
The text was updated successfully, but these errors were encountered: