Skip to main content
Topic: Bug in "implode-function" / No new records possible on PHP 8.0.0 (Read 1988 times) previous topic - next topic

Bug in "implode-function" / No new records possible on PHP 8.0.0

Hi there,

currently testing PHPRad Vue-Edition (2.6.4). Seems to be fine, but an important information:

In PHP 8 it is no longer supported to provide the separator in the implode-function as second argument. Therefore it is not possible, to add new records at this version of PHP with PHPRad generated scripts, because in PDOdb.php on line 479 it is

Quote
if (isset($dataColumns[0])) $this->query .= ' (`'.implode($dataColumns, '`, `').'`) ';

but should be:

Quote
if (isset($dataColumns[0])) $this->query .= ' (`'.implode('`, `', $dataColumns).'`) ';

Best regards
Matthias