From 1501ccd07868d626a51802d14ed41ed05a3532ad Mon Sep 17 00:00:00 2001 From: Mark Newnham Date: Wed, 1 Nov 2023 06:59:28 -0600 Subject: Prevent str_replace NULL test error in PHP 8.1 (#1005) --- drivers/adodb-oci8.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/adodb-oci8.inc.php b/drivers/adodb-oci8.inc.php index 2506d68f..542b6945 100644 --- a/drivers/adodb-oci8.inc.php +++ b/drivers/adodb-oci8.inc.php @@ -1579,6 +1579,9 @@ SELECT /*+ RULE */ distinct b.column_name if ($this->noNullStrings && strlen($s) == 0) { $s = ' '; } + else if (strlen($s) == 0) { + return "''"; + } if ($this->replaceQuote[0] == '\\'){ $s = str_replace('\\','\\\\',$s); } -- cgit v1.3