thies           Wed Feb 14 05:06:04 2001 EDT

  Modified files:              
    /php4/ext/oci8      oci8.c 
  Log:
  ocifreedesc() now spits a NOTICE when called the "wrong" way.
  
  
Index: php4/ext/oci8/oci8.c
diff -u php4/ext/oci8/oci8.c:1.106 php4/ext/oci8/oci8.c:1.107
--- php4/ext/oci8/oci8.c:1.106  Mon Feb 12 06:36:28 2001
+++ php4/ext/oci8/oci8.c        Wed Feb 14 05:06:03 2001
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: oci8.c,v 1.106 2001/02/12 14:36:28 thies Exp $ */
+/* $Id: oci8.c,v 1.107 2001/02/14 13:06:03 thies Exp $ */
 
 /* TODO list:
  *
@@ -489,7 +489,7 @@
 
        php_info_print_table_start();
        php_info_print_table_row(2, "OCI8 Support", "enabled");
-       php_info_print_table_row(2, "Revision", "$Revision: 1.106 $");
+       php_info_print_table_row(2, "Revision", "$Revision: 1.107 $");
 #ifndef PHP_WIN32
        php_info_print_table_row(2, "Oracle Version", PHP_OCI8_VERSION );
        php_info_print_table_row(2, "Compile-time ORACLE_HOME", PHP_OCI8_DIR );
@@ -2610,7 +2610,9 @@
                }
        }
 
-  RETURN_FALSE;
+       php_error(E_NOTICE, "OCIFreeDesc() should not be called like this. Use 
+$somelob->free() to free a LOB");
+
+       RETURN_FALSE;
 }
 /* }}} */
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to