From: Antony Dovgal Date: Thu, 28 Apr 2005 14:12:23 +0000 (+0000) Subject: MFH: handle unsupported datatypes and prevent segfault X-Git-Tag: php-5.0.5RC1~354 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c71c7530bf798742c7a2907d91d561c60eacb7b;p=php MFH: handle unsupported datatypes and prevent segfault --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 2cf27ff909..4fdc640424 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -3695,6 +3695,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)) {