Re: PHP 4.0 Bug #9857 Updated: define("named_constant")

From: Date: Sat, 07 Apr 2001 05:00:57 +0000
Subject: Re: PHP 4.0 Bug #9857 Updated: define("named_constant")
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-51095@lists.php.net to get a copy of this message
I'm using the latest snapshot's on win32. Getting some needed practice with MSVC... I think the problem is that OCI is walking on TSRM local storage. I haven't been able to verify it, but my gut says it's so. joebrown podiatryfl.com --- Bug Database <php-dev@lists.php.net> wrote: > ID: 9857 > Updated by: sniper > Reported By: shmengie_2000@yahoo.com > Old-Status: Open > Status: Feedback > Bug Type: IIS related > Assigned To: > Comments: > > Are you using PHP 4.0.1? If so, could you please try > > with the latest release, 4.0.4pl1? > > --Jani > > > Previous Comments: > --------------------------------------------------------------------------- > > [2001-03-29 01:34:23] shmengie_2000@yahoo.com > Taking a shot in the dark, hoping this bug comes to > sombody who "knows" attention. > > Prior comments are somewhat misleading. I'm using > OCI8, and also Manuel Lemos' Metabase. > > Parusing through the source, I've noticed that there > are some constants defined for OCI8 (which are > documented): > eg: > REGISTER_LONG_CONSTANT("OCI_DEFAULT",OCI_DEFAULT, > CONST_CS | CONST_PERSISTENT); > > I question this CONST_PERSISTENT value. Is it > possible that the persistence is helping non > persistent constants (in the php code) strattle the > void between pages? > > BTW: what does _zval_dtor in the source mean? > Specifically, "dtor" > > --------------------------------------------------------------------------- > > [2001-03-26 17:46:42] shmengie_2000@yahoo.com > A define on php4isapi has a tendency to bleed over > to the next page load. refresh and a completely > different page have retain a defined constant. > > eg: > test1.php > <? > define("anything",1); > echo (defined("anything")?"anything > defined":"anything not defined"); > ?> > > test2.php > echo (defined("anything")?"anything > defined":"anything not defined"); > > after pointing browser at test1.php > test 2.php contains "anything defined", instead of > "not" > > --------------------------------------------------------------------------- > > [2001-03-20 01:15:49] shmengie_2000@yahoo.com > With this code at the top of an include file, the > results are unpretictable. > > if(!defined("METABASE_MYSQL_INCLUDED")) > { > define("METABASE_MYSQL_INCLUDED",1); > ...rest of include file... > } > > require_once(); seems to work though. > > > --------------------------------------------------------------------------- > > > > ATTENTION! Do NOT reply to this email! > To reply, use the web interface found at > http://bugs.php.net/?id=9857&edit=2 > __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/

« previous php.dev (#51095) next »