summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2002-04-13 18:58:18 +0000
committerThies C. Arntzen <thies@php.net>2002-04-13 18:58:18 +0000
commit12541a481ed0f9e06aaa76931d0d01cdbf478890 (patch)
tree60e9aaf8ef5f60d7d4e5b9007b5963c7623a1cc7
parent3381fe4394e29be3ecf44db0d37212524fdf47b7 (diff)
downloadphp-git-12541a481ed0f9e06aaa76931d0d01cdbf478890.tar.gz
ocibind: avoid warning in debug mode if an outbound variable is NULL
-rw-r--r--ext/oci8/oci8.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c
index 45d15fecb4..83d466e84d 100644
--- a/ext/oci8/oci8.c
+++ b/ext/oci8/oci8.c
@@ -697,6 +697,7 @@ _oci_bind_post_exec(void *data TSRMLS_DC)
if (bind->indicator == -1) { /* NULL */
zval *val = bind->zval;
+ *Z_STRVAL_P(val) = '\0'; /* XXX avoid warning in debug mode */
zval_dtor(val);
ZVAL_NULL(val);
} else if (Z_TYPE_P(bind->zval) == IS_STRING && (Z_STRVAL_P(bind->zval) != empty_string)) {