From: Thies C. Arntzen Date: Mon, 9 Jul 2001 18:01:18 +0000 (+0000) Subject: fix newly introduced SEFAULT. X-Git-Tag: PRE_TSRM_MERGE_PATCH~229 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f3110ea32f489af972d574c5bec46108774778a;p=php fix newly introduced SEFAULT. --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 9fb27cf575..6c05462f9d 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -649,7 +649,7 @@ _oci_bind_post_exec(void *data) zval *val = bind->zval; zval_dtor(val); ZVAL_NULL(val); - } else if (bind->zval->type == IS_STRING) { + } else if (bind->zval->type == IS_STRING && (bind->zval->value.str.val != empty_string)) { bind->zval->value.str.val = erealloc(bind->zval->value.str.val, bind->zval->value.str.len+1); bind->zval->value.str.val[ bind->zval->value.str.len ] = '\0'; }