From: Antony Dovgal Date: Mon, 26 Jan 2004 13:59:42 +0000 (+0000) Subject: fix oci_field_type_raw's proto X-Git-Tag: php-5.0.0b4RC1~301 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15f22a5796d1abaf7ff0556b3f1915114a8ed0e7;p=php fix oci_field_type_raw's proto oci_collection_element_get should return FALSE only if there is no such element and NULL, if it's null --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 215d65970f..17554947e1 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -5449,7 +5449,7 @@ PHP_FUNCTION(oci_field_type) } /* }}} */ -/* {{{ proto mixed oci_field_type_raw(resource stmt, int col) +/* {{{ proto int oci_field_type_raw(resource stmt, int col) Tell the raw oracle data type of a column */ PHP_FUNCTION(oci_field_type_raw) { @@ -6505,7 +6505,7 @@ PHP_FUNCTION(oci_collection_element_get) /* Return null if the value is null */ if (*elemind == OCI_IND_NULL) { - RETURN_FALSE; + RETURN_NULL; } switch (coll->element_typecode) {