ID:               23887
 User updated by:  igor at gelios dot net
 Reported By:      igor at gelios dot net
-Status:           Feedback
+Status:           Open
 Bug Type:         InterBase related
 Operating System: Any
 PHP Version:      4.3.2
 New Comment:

Well, i use this corrections:

diff -Naur -x interbase.o -x interbase.lo
ext/interbase.original/interbase.c ext/interbase/interbase.c
--- ext/interbase.original/interbase.c  2003-05-31 23:08:58.000000000
+0400
+++ ext/interbase/interbase.c   2003-06-01 00:14:13.000000000 +0400
@@ -554,6 +554,7 @@
        REGISTER_LONG_CONSTANT("IBASE_TIMESTAMP", PHP_IBASE_TIMESTAMP,
CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("IBASE_DATE", PHP_IBASE_DATE,
CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("IBASE_TIME", PHP_IBASE_TIME,
CONST_PERSISTENT);
+       REGISTER_LONG_CONSTANT("IBASE_REC_VERSION",
PHP_IBASE_REC_VERSION, CONST_PERSISTENT);
        
        return SUCCESS;
 }
@@ -1549,6 +1550,10 @@
                /* isolation level */
                if (trans_argl & PHP_IBASE_COMMITTED) {
                        tpb[tpb_len++] = isc_tpb_read_committed;
+                       
+                       if (trans_argl & PHP_IBASE_REC_VERSION)
+                           tpb[tpb_len++] = isc_tpb_rec_version;
+                       
                } else if (trans_argl & PHP_IBASE_CONSISTENCY)
                        tpb[tpb_len++] = isc_tpb_consistency;
                else 
diff -Naur -x interbase.o -x interbase.lo
ext/interbase.original/php_interbase.h ext/interbase/php_interbase.h
--- ext/interbase.original/php_interbase.h      2003-05-31
23:09:10.000000000 +0400
+++ ext/interbase/php_interbase.h       2003-06-01 00:13:00.000000000
+0400
@@ -169,7 +169,8 @@
        PHP_IBASE_NOWAIT = 32,
        PHP_IBASE_TIMESTAMP = 64,
        PHP_IBASE_DATE = 128,
-       PHP_IBASE_TIME = 256
+       PHP_IBASE_TIME = 256,
+       PHP_IBASE_REC_VERSION = 512
 };
 
 #ifdef ZTS


Previous Comments:
------------------------------------------------------------------------

[2003-06-05 00:58:20] [EMAIL PROTECTED]

We'd like to have the "very simple correction", can you
provide a patch please?


------------------------------------------------------------------------

[2003-05-30 03:27:58] [EMAIL PROTECTED]

Please provide a patch if you have the fix.

Derick

------------------------------------------------------------------------

[2003-05-30 03:22:52] igor at gelios dot net

Constant isc_tpb_rec_version is very important and uses with
isc_tpb_read_committed constant in transaction parameters.

But interbase.c in php source tree does not define this constant and
(!!!) there is no way to use this constant without interbase.c
editing/recompiling. 

It's very simple correction!! Please! 





------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=23887&edit=1

Reply via email to