-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trigger a strange PDO syntax error #1281
Comments
Also works in PHP 7.4.30 / AlmaLinux 8 / sqlite 3.26.0 |
Report Error in PHP 8.0 / CentOS 7 |
According to the search in Mozilla Firefox, both outputs are the same. Is the output different at all? If not, then this looks like an issue in PHP 7.4.33? |
I do not have more vps to test it in more php versions and distributions. |
I can somewhat reproduce the issue with an online tool but have no time to inspect it in detail: https://onlinephp.io/c/d14c7
Where exactly do you output the debug information? Which commit is |
bcosca/fatfree-core 3.8.2,https://api.github.com/repos/f3-factory/fatfree-core/zipball/774692ce7698904d3cb35bbd4f79376bb17eeddc Another hint. |
This function generates a set of SQL cmds. |
Server: CentOS 7
PHP 7.4.33
SQLite version 3.7.17
Cli & Apache mode all trigger it.
vendor/bcosca/fatfree-core/db/sql.php:268 report this error.
I insert a var_dump($cmd) in line 183.
Output is:
string(137) "SELECT * FROM pragma_table_info('Versions') JOIN (SELECT sql FROM sqlite_master WHERE (type='table' OR type='view') AND name='Versions')"
The Output in Windows 10 & PHP 7.4.19 is:
string(137) "SELECT * FROM pragma_table_info('Versions') JOIN (SELECT sql FROM sqlite_master WHERE (type='table' OR type='view') AND name='Versions')"
It reports
PDO: near "(": syntax error
in CentOS 7 but works in Windows.The text was updated successfully, but these errors were encountered: