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
[EMAIL PROTECTED]
[EMAIL PROTECTED]



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to