Re: /ext/oci8/oci8.c win32 bugfix.
| From: | Joe Brown | Date: | Mon, 09 Apr 2001 17:43:57 +0000 |
| Subject: | Re: /ext/oci8/oci8.c win32 bugfix. | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-51221@lists.php.net to get a copy of this message | ||
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" <fjortiz@comunet.es> wrote in message
news:200104091428.PAA09718@obelix.comunet.es...
> 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" <joebrown@somewhere.com> 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 <http://www.php.net/>
> >To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> >For additional commands, e-mail: php-dev-help@lists.php.net
> >To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
> ___________________________________
> Francisco Javier Ortiz Torre
> ComuNET,S.A.
> mailto:fjortiz@comunet.es
>
> 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 <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>