php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11902 Defined constants carry over to next script call
Submitted: 2001-07-05 07:14 UTC Modified: 2001-08-20 12:20 UTC
From: d dot peereboom-voller at nl dot worldonline dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.0.5 OS: SunOS oradev 5.7 Generic_106541-
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
21 - 15 = ?
Subscribe to this entry?

 
 [2001-07-05 07:14 UTC] d dot peereboom-voller at nl dot worldonline dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-15 05:24 UTC] jmoore@php.net
what server and sapi are you using?
 [2001-08-20 12:20 UTC] sniper@php.net
What you're trying to do is not possible.
There are no connection pools in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 02:01:28 2024 UTC