cvs: /php4/ext/oracle oracle.c
| From: | Thies C . Arntzen | Date: | Tue, 28 Sep 1999 11:09:02 +0000 |
| Subject: | cvs: /php4/ext/oracle oracle.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-4977@lists.php.net to get a copy of this message | ||
thies Tue Sep 28 07:09:02 1999 EDT
Modified files:
/php4/ext/oracle oracle.c
Log:
init in thread-safe mode if ZTS isdefined
Index: php4/ext/oracle/oracle.c
diff -u php4/ext/oracle/oracle.c:1.24 php4/ext/oracle/oracle.c:1.25
--- php4/ext/oracle/oracle.c:1.24 Tue Sep 28 06:54:41 1999
+++ php4/ext/oracle/oracle.c Tue Sep 28 07:09:02 1999
@@ -322,7 +322,7 @@
REGISTER_LONG_CONSTANT("ORA_FETCHINTO_ASSOC",ORA_FETCHINTO_ASSOC, CONST_CS |
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("ORA_FETCHINTO_NULLS",ORA_FETCHINTO_NULLS, CONST_CS |
CONST_PERSISTENT);
-#if NEEDED
+#ifdef ZTS
opinit(OCI_EV_TSF); /* initialize threaded environment - must match the threaded mode
of the oci8 driver if both are used at the same time!! */
#endif