defined is behaving strangely
Posted: Fri Jul 29, 2005 11:05 am
Check this out. The below doesn't seem to be working.
Strange as that's perfectly viable and correct. Or at least I think it is. Can someone tell me I'm high and the above code is wrong in someway? Otherwise, I had to do the below workaround to get what I needed.
Sheesh..... Maybe I need to stop developing on Windows.
Code: Select all
if(defined(PVL_FETCH_MODE))
{ $mode=PVL_FETCH_MODE; }Code: Select all
if(in_array('PVL_FETCH_MODE', get_defined_constants()))
{ $mode=PVL_FETCH_MODE; }