global variables get cleared
|Reported by:||OS1||Owned by:|
It appears that global variables get cleared somewhere inside of WP. If I set a global variable then while I'm still in the function I set it in all is ok. Even if I step on and leave said function I can still see the global variable in NetBeans debugger. However, at some point I click continue, and the next time WP performs a filter on 'the_content' the global variable has been cleared. I am at the plugin top level so I have no class I can store this variable in and even if I did I assume I would need a pointer to this class instance and that would also need to be a global variable because of my scope!
I am sure this used to work! Has something changed between 2.8 and 3.0.1 in the way globals are handled? The forums and web seem to offer no help.