Re: [PHP-DEV] /ext/oci8/oci8.c win32 bugfix.

2001-04-09 Thread Joe Brown

Exactly...  I discovered a problem when I used Manuel Lemos' Metabase, and
OCI_Session handlers I wrote.  Two seperate pconnects with different
user/pass@server combinations, and this bug shows vividly.

Or if you're really good, figure out how to have two seperate threads use
OCIPConnects at the same time.  Refreshing a page with a query that takes
more than couple microsecond sometimes works also.

I *think* (haven't tested it) you might also get it to bomb with two
pconnects using different user/pass combo's in one script.  Metabase issues
an "alter session" command which might explain why it always bombed for me.

-Joe

"Paco Ortiz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi:
>
> as far as I know, OCI8 works fine for me under Win32 + IIS 4 + ISAPI
filter. Not that I tested it
> heavily, but it's just my experience.
>
> Greetings,
>
> F.J.Ortiz
>
>
> 4/9/01 12:51:48 AM, "Joe Brown" <[EMAIL PROTECTED]> wrote:
>
> >If someone would apply this patch to ext/oci8/oci8.c I think the Oracle
> >using Win32 community would be greatful.
> >
> >Don't know if all threaded environments have a problem with OCI8's
behaviour
> >in threaded mode.  PHP on win32 really doesn't like it...  I haven't been
> >able to get it to crash with this modification.  W/out this modification
I
> >haven't been able to keep it from crashing.
> >
> >This change only affects builds on Win32, making OCI8 behave like it does
on
> >traditional Unix.  If possible, please include in the next RC or final
> >release of 4.0.6
> >
> >Thanks,
> >joebrown
> >podiatryfl.com
> >
> >--- php4/ext/oci8/oci8.c  Fri Mar 02 04:45:08 2001
> >+++ php4/ext/oci8/oci8.c  Mon Apr 09 03:33:10 2001
> >@@ -342,7 +342,7 @@
> > {
> >zend_class_entry oci_lob_class_entry;
> >
> >-#ifdef ZTS
> >+#if ZTS && !WIN32
> > #define PHP_OCI_INIT_MODE OCI_THREADED
> > #else
> > #define PHP_OCI_INIT_MODE OCI_DEFAULT
> >
> >
> >
> >--
> >PHP Development Mailing List 
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ___
> Francisco Javier Ortiz Torre
> ComuNET,S.A.
> mailto:[EMAIL PROTECTED]
>
> ComuNET, S.A
> Gral. Concha 39,6º
> 48012 Bilbao España
> Tel: +34 944 700 101
> Fax: +34 944 700 185
> http://www.comunet.es
> ___
>
>
>
> --
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] /ext/oci8/oci8.c win32 bugfix.

2001-04-09 Thread Paco Ortiz

Hi:

as far as I know, OCI8 works fine for me under Win32 + IIS 4 + ISAPI filter. Not that 
I tested it
heavily, but it's just my experience.

Greetings,

F.J.Ortiz


4/9/01 12:51:48 AM, "Joe Brown" <[EMAIL PROTECTED]> wrote:

>If someone would apply this patch to ext/oci8/oci8.c I think the Oracle
>using Win32 community would be greatful.
>
>Don't know if all threaded environments have a problem with OCI8's behaviour
>in threaded mode.  PHP on win32 really doesn't like it...  I haven't been
>able to get it to crash with this modification.  W/out this modification I
>haven't been able to keep it from crashing.
>
>This change only affects builds on Win32, making OCI8 behave like it does on
>traditional Unix.  If possible, please include in the next RC or final
>release of 4.0.6
>
>Thanks,
>joebrown
>podiatryfl.com
>
>--- php4/ext/oci8/oci8.c  Fri Mar 02 04:45:08 2001
>+++ php4/ext/oci8/oci8.c  Mon Apr 09 03:33:10 2001
>@@ -342,7 +342,7 @@
> {
>zend_class_entry oci_lob_class_entry;
>
>-#ifdef ZTS
>+#if ZTS && !WIN32
> #define PHP_OCI_INIT_MODE OCI_THREADED
> #else
> #define PHP_OCI_INIT_MODE OCI_DEFAULT
>
>
>
>-- 
>PHP Development Mailing List 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>

___
Francisco Javier Ortiz Torre
ComuNET,S.A.
mailto:[EMAIL PROTECTED]

ComuNET, S.A
Gral. Concha 39,6º
48012 Bilbao España
Tel: +34 944 700 101 
Fax: +34 944 700 185 
http://www.comunet.es
___



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]