summaryrefslogtreecommitdiff
path: root/ext/oci8/oci8.c
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2002-04-14 18:28:33 +0000
committerSVN Migration <svn@php.net>2002-04-14 18:28:33 +0000
commit0bbd20d04ef133006c9fa0c2f6af94e96b05744f (patch)
treee93f145aeee5678fc4e3639881b88ffff2034e39 /ext/oci8/oci8.c
parentfa002563bc37cfa14e837534fed75d26a5e5e7a2 (diff)
downloadphp-git-php-4.2.0RC4.tar.gz
This commit was manufactured by cvs2svn to create tag 'php_4_2_0RC4'.php-4.2.0RC4
Diffstat (limited to 'ext/oci8/oci8.c')
-rw-r--r--ext/oci8/oci8.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c
index 68e3d41142..a2b0f01a5f 100644
--- a/ext/oci8/oci8.c
+++ b/ext/oci8/oci8.c
@@ -697,7 +697,9 @@ _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 */
+ if (Z_TYPE_P(val) == IS_STRING && (Z_STRVAL_P(val) != empty_string)) {
+ *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)) {