php 4.3.0 ext/oci8 -- OCI_SHARED patch
| From: | Levi Dixon | Date: | Mon, 06 Jan 2003 18:42:15 +0000 |
| Subject: | php 4.3.0 ext/oci8 -- OCI_SHARED patch | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-93191@lists.php.net to get a copy of this message | ||
For review:
I've modified the following files to allow for use of OCI_SHARED in ext/oci8
module if OCI8_VERSION >= 8.1, which will provide memory savings by sharing
connection and statement data (refer to
http://www.csee.umbc.edu/help/oracle8/server.815/a67846/basics.htm;
search
for "Shared Data Mode") between connections and statments respectively. I
only have access to ext/oci8, so I can't check this in:
configure
main/php_config.h.in
ext/oci8/config.m4
ext/oci8/oci8.c
Note: I'm not familiar enough with the windows distribution to add the mod
there.
See new files at: http://www.vgsp.com/levi/
Please advise.
-----------------
diff configure
49562a49563,49570
> OCI8_SHARED_MODE_SUPPORTED=
expr $OCI8_VERSION \>= 8.1
>
> if test "$OCI8_SHARED_MODE_SUPPORTED" = "1"; then
> cat >> confdefs.h <<\EOF
> #define HAVE_OCI8_SHARED_MODE 1
> EOF
> fi
>
diff main/php_config.h.in
1933a1934,1936
> #undef HAVE_OCI8_SHARED_MODE
>
> /* */
diff ext/oci8/config.m4
74a75
> AC_DEFINE(HAVE_OCI8_SHARED_MODE,1,[ ])
diff ext/oci8/oci8.c
465a466,475
> #ifdef HAVE_OCI8_SHARED_MODE
>
> #ifdef WITH_COLLECTIONS
> #define PHP_OCI_INIT_MODE OCI_SHARED | OCI_OBJECT
> #else
> #define PHP_OCI_INIT_MODE OCI_SHARED
> #endif
>
> #else
>
471a482,483
> #endif
>
--------------------
Levi Dixon
Tech. Lead; Sr. Developer
Community Connect, Inc.
149 5th Ave, Floor 10
New York, NY 10010
212-505-7511 x349
ldixon@mail.communityconnect.com
ldixon@php.net