From: Thies C. Arntzen Date: Wed, 14 Feb 2001 13:06:03 +0000 (+0000) Subject: ocifreedesc() now spits a NOTICE when called the "wrong" way. X-Git-Tag: php-4.0.5RC1~289 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecaeac58819255dd81104bf95037ebcb9033e261;p=php ocifreedesc() now spits a NOTICE when called the "wrong" way. --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 3e564dc215..b8c5d5807e 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -2610,7 +2610,9 @@ PHP_FUNCTION(ocifreedesc) } } - RETURN_FALSE; + php_error(E_NOTICE, "OCIFreeDesc() should not be called like this. Use $somelob->free() to free a LOB"); + + RETURN_FALSE; } /* }}} */