FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Problem with FUDforum API global variables (Global variable visibility issue when GLOBALS.php outside global scope)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Problem with FUDforum API global variables [message #161927 is a reply to message #161926] Sun, 21 February 2010 08:45 Go to previous message
jlundan is currently offline  jlundan
Messages: 4
Registered: February 2010
Location: Finland
Karma:
Junior Member
Yes, but that's not quite what I am after. I'll try to reprhase:

My point is that as far as I understand: currently GLOBALS.php *must be* run in the global scope in order core.inc to work. (Sorry, I previously talked about FUDapi requiring it, but it seems that it is core.inc that crashes.)

Line 60 (in my installed version) of core.inc contains

if ($GLOBALS['FUD_OPT_3'] & 4194304) {	// Plugins enabled


which tries to read global variable FUD_OPT_3. Because I use a PHP framework, I might not be able to include GLOBALS.php from global scope (like in my current project). This means that FUD_OPT_3 is no longer global variable and core.inc cannot find it. If variables in GLOBALS.php would be declared using the $GLOBALS variable like I suggested, I could include the GLOBALS.php from inside a PHP framework class as well.

I dont know if this is actually a bug or an enhancement, but I hope this clarifies my issue bit more.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Query failed: ERROR: value too long for type character varying(100)
Next Topic: FUDApi - fetch categories
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 22:57:53 GMT 2024

Total time taken to generate the page: 0.04905 seconds