]> granicus.if.org Git - php/commitdiff
fix newly introduced SEFAULT.
authorThies C. Arntzen <thies@php.net>
Mon, 9 Jul 2001 18:01:18 +0000 (18:01 +0000)
committerThies C. Arntzen <thies@php.net>
Mon, 9 Jul 2001 18:01:18 +0000 (18:01 +0000)
ext/oci8/oci8.c

index 9fb27cf575acc52b2bab8882681c723a68e7f1d6..6c05462f9dfa80442c54c154d6304355d2071880 100644 (file)
@@ -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';
        }