Closed wesyah234 closed 8 months ago
This method is still giving me trouble. I'm using v5.22.7 now, and I get this error:
adodb-php/drivers/adodb-oci8.inc.php:1582 strlen(): Passing null to parameter #1 ($string) of type string is deprecated
the strlen check you put in has the same issue as the str_replace, in that it's not happy when $s is null, so now the issue is showing up in the:
else if (strlen($s) == 0) { return "''"; }
and it's addressed by changing it to
else if (strlen($s ?? '') == 0) { return "''"; }
Description adodb-oci8.inc.php:1585 str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Environment ADOdb version: 5.22.6 Driver or Module: oci8 PHP version: 8.2 Platform: linux
Solved by changing:
to: return "'" . str_replace("'", $this->replaceQuote, $s ?? '') . "'";
Thanks!