From b27718ff00d3c5c78d3c216add51b0d31e8b7fde Mon Sep 17 00:00:00 2001 From: "Thies C. Arntzen" Date: Fri, 21 Apr 2000 09:54:15 +0000 Subject: [PATCH] @- OCIBindByName() will no longer complain about bindlength beeing zero. (Thies) --- ext/oci8/oci8.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 39a57812cc..5c3b2af27e 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -2482,10 +2482,10 @@ PHP_FUNCTION(ocibindbyname) if ((ocitype == SQLT_CHR) && (value_sz == -1)) { convert_to_string_ex(var); value_sz = (*var)->value.str.len; - if (value_sz == 0) { - php_error(E_WARNING, "bindlength == 0"); /* XXX shitty message */ - RETURN_FALSE; - } + } + + if (value_sz == 0) { + value_sz = 1; } convert_to_string_ex(name); -- 2.40.0