Re: [PHP] get all defined constants?

2001-05-21 Thread Plutarck
Hmm...SID is a constant, and when it's set it is present in $GLOBALS. But when I run this: ...the constant exists, but is not present in $GLOBALS. Weird...anyone know why this happens? (I'm using 4.0.5) Plutarck "Alex Black" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAI

Re: [PHP] get all defined constants?

2001-05-20 Thread Alex Black
> phpinfo() allways has a list of variables. but of course every variable is > allways in $GLOBALS too. including constants? I just print_r'd globals to refresh my memory, and found what I was expecting: none of my constants. ? _alex -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] get all defined constants?

2001-05-19 Thread Chris Lee
phpinfo() allways has a list of variables. but of course every variable is allways in $GLOBALS too. -- Chris Lee [EMAIL PROTECTED] "Alex Black" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi all, > > can't find a function for getting a complete list

[PHP] get all defined constants?

2001-05-19 Thread Alex Black
hi all, can't find a function for getting a complete list of defined constants. this exists for classes, I think it must for constants even if it is undocumented. I'm writing a bit of debug code, and I'd rather not build a bunch of implicit knowledge about my set of constants into the code - I'd