]> granicus.if.org Git - php/commitdiff
ocifreedesc() now spits a NOTICE when called the "wrong" way.
authorThies C. Arntzen <thies@php.net>
Wed, 14 Feb 2001 13:06:03 +0000 (13:06 +0000)
committerThies C. Arntzen <thies@php.net>
Wed, 14 Feb 2001 13:06:03 +0000 (13:06 +0000)
ext/oci8/oci8.c

index 3e564dc2153d54d2f1e79b92d1b03428d5825b65..b8c5d5807ebd47bf0e8d7d399ae67c30a84df6ad 100644 (file)
@@ -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;
 }
 /* }}} */