ezsql
ezsql copied to clipboard
Not compatible with php 8.0
Describe the bug upon upgrade to php 8.0, you will get several deprecated function errors and warnings: Deprecated: Required parameter $fromTable follows optional parameter $totable in vendor/ezsql/ezsql/lib/ezFunctions.php on line 324 Deprecated: Required parameter $keyValue follows optional parameter $table in vendor/ezsql/ezsql/lib/ezFunctions.php on line 439 Deprecated: Required parameter $keyValue follows optional parameter $table in vendor/ezsql/ezsql/lib/ezFunctions.php on line 446 Deprecated: Required parameter $keyValue follows optional parameter $table in vendor/ezsql/ezsql/lib/ezFunctions.php on line 460 Warning: The magic method ezsql\Database::__wakeup() must have public visibility in vendor/ezsql/ezsql/lib/Database.php on line 22 Deprecated: Required parameter $keyAndValue follows optional parameter $table in vendor/ezsql/ezsql/lib/ezQuery.php on line 631 Deprecated: Method ReflectionParameter::getClass() is deprecated in vendor/ezsql/ezsql/lib/DInjector.php on line 132 Deprecated: Method ReflectionParameter::getClass() is deprecated in vendor/ezsql/ezsql/lib/DInjector.php on line 132 Deprecated: Method ReflectionParameter::getClass() is deprecated in vendor/ezsql/ezsql/lib/DInjector.php on line 132
To Reproduce swap from php 7.4 to php 8.0 or 8.1 Expected behavior as previous, no errors or warnings.
Warning: Failing to provide necessary information may cause the issue to be closed without consideration
Environment (please complete the following information):
- EZSQL Version : 5.1
- PHP Version: 8.0 or 8.1
- SQL Driver:[ mysql, pgsql, sqlserver, sqlite3] mysql
PHP code snippet used
<?php
You might need to update esql version to 5.1.1, There are tests running under Linux for 7.4 and 8.0 see https://github.com/ezSQL/ezsql/runs/5090738700?check_suite_focus=true the warning are for PHPunit version Tests
Compatibility has not been addressed for PHP 8.1 yet, 7.4 and 8.0 has already been addressed.