Bug #11902 Updated: Defined constants carry over to next script call
| From: | sniper@php.net | Date: | Mon, 20 Aug 2001 16:20:13 +0000 |
| Subject: | Bug #11902 Updated: Defined constants carry over to next script call | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-63881@lists.php.net to get a copy of this message | ||
ID: 11902
Updated by: sniper
Reported By: d.peereboom-voller@nl.worldonline.com
Old Status: Feedback
Status: Bogus
Bug Type: Unknown/Other Function
Operating System: SunOS oradev 5.7 Generic_106541-
PHP Version: 4.0.5
New Comment:
What you're trying to do is not possible.
There are no connection pools in PHP.
Previous Comments:
------------------------------------------------------------------------
[2001-07-15 05:24:38] jmoore@php.net
what server and sapi are you using?
------------------------------------------------------------------------
[2001-07-05 07:14:06] d.peereboom-voller@nl.worldonline.com
if(defined("LINK_ID"))
print("ERROR");
$link_id = OCILogon(.....);
define("LINK_ID" , $link_id);
If I run this script it will print ERROR on the second call (refresh) but not the 3rd, then again on
the 4th.
It seems not to like me assign the resource id in this form. If I use
define("LINK_ID" , "$link_id");
it works and I can use the constant but this is hardly as documentated.
All other defined variables even those with simple strings or numerals carry over as well when I use
the first method. Not nice :)
Since I already have a work around this is not a hot issue, but I would like to know if this is a
problem with me or with php.
If you need more info please feel free to contact me.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=11902&edit=1