From: Antony Dovgal Date: Thu, 28 Apr 2005 14:10:42 +0000 (+0000) Subject: handle unsupported datatype (OCIBindByName segfaults somewhere in OCI lib when X-Git-Tag: php-5.0.1b1~387 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ca4b8383e46621ee6fefdee849cbe60cbbbb1ea;p=php handle unsupported datatype (OCIBindByName segfaults somewhere in OCI lib when unknown type is provided) --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 33132960df..8921cc1496 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -3694,6 +3694,10 @@ break; } value_sz = sizeof(void*); break; + default: + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown or unsupported datatype given: %u", ocitype); + RETURN_FALSE; + break; } if ((ocitype == SQLT_CHR) && (value_sz == -1)) {