From: Thies C. Arntzen Date: Sat, 13 Apr 2002 18:59:38 +0000 (+0000) Subject: MFH: ocibind: avoid warning in debug mode X-Git-Tag: php-4.2.0RC4~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f3f7701f89d1ffe53dab56c7bd08fe6a1e3bb72;p=php MFH: ocibind: avoid warning in debug mode --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index c0eedc8393..68e3d41142 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)) {