tony2001                Tue Feb 13 20:19:50 2007 UTC

  Modified files:              
    /php-src/ext/oci8   php_oci8_int.h 
  Log:
  output debug messages before calling OCI functions
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/php_oci8_int.h?r1=1.31&r2=1.32&diff_format=u
Index: php-src/ext/oci8/php_oci8_int.h
diff -u php-src/ext/oci8/php_oci8_int.h:1.31 
php-src/ext/oci8/php_oci8_int.h:1.32
--- php-src/ext/oci8/php_oci8_int.h:1.31        Mon Feb 12 09:36:11 2007
+++ php-src/ext/oci8/php_oci8_int.h     Tue Feb 13 20:19:50 2007
@@ -25,7 +25,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: php_oci8_int.h,v 1.31 2007/02/12 09:36:11 tony2001 Exp $ */
+/* $Id: php_oci8_int.h,v 1.32 2007/02/13 20:19:50 tony2001 Exp $ */
 
 #if HAVE_OCI8
 # ifndef PHP_OCI8_INT_H
@@ -232,22 +232,22 @@
 
 #define PHP_OCI_CALL(func, params) \
        do { \
-               OCI_G(in_call) = 1; \
-               func params; \
-               OCI_G(in_call) = 0; \
                if (OCI_G(debug_mode)) { \
                        php_printf ("OCI8 DEBUG: " #func " at (%s:%d) \n", 
__FILE__, __LINE__); \
                } \
+               OCI_G(in_call) = 1; \
+               func params; \
+               OCI_G(in_call) = 0; \
        } while (0)
 
 #define PHP_OCI_CALL_RETURN(__retval, func, params) \
        do { \
-               OCI_G(in_call) = 1; \
-               __retval = func params; \
-               OCI_G(in_call) = 0; \
                if (OCI_G(debug_mode)) { \
                        php_printf ("OCI8 DEBUG: " #func " at (%s:%d) \n", 
__FILE__, __LINE__); \
                } \
+               OCI_G(in_call) = 1; \
+               __retval = func params; \
+               OCI_G(in_call) = 0; \
        } while (0)
 
 #define PHP_OCI_HANDLE_ERROR(connection, errcode) \

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to