|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-07-15 05:24 UTC] jmoore@php.net
[2001-08-20 12:20 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
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.