From 49470fdc7496017206cd741e7bde38520b1783a3 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 28 Apr 2005 14:13:08 +0000 Subject: [PATCH] MFH: handle unsupported datatypes and prevent segfault --- ext/oci8/oci8.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index e50d12b68c..a970b3b1b3 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -2975,6 +2975,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)) { -- 2.50.1