Yes, it seems like we have the exact same issue. I'm seeing 1000's of warnings as well in my problems tab because I'm working on an open source project which I haven't created myself. Needless to say, it slows ZS down and fixing those warnings by altering hundreds of php files just isn't an option. I've narrowed it down to show only "Errors/Warnings on Selection" instead of "Errors/Warnings on Project" (Problems tab > View Options)..which is already a nice improvement.
Go to Preferences -> PHP -> Code Analyzer.
You'll find your warning under the 'Security' section (just saying, just saying,... ;)): "Use of global variable before definition".
Change the value on the right from "warning" to "ignore".
Thanks for that, I'm going to give that a try!
The ideal solutions for me would be that ZS somehow opens included files internally so it's able to see that it shouldn't show those undefined variable warnings. Too bad that that's not an option. Disabling warnings all together means that it doesn't show those warnings when I think it should.. Guess I'll have to live with it :)
Thanks everyone for the coding tips. When I start with a blank project, I'll enable the warnings and make sure to use the coding style as suggested so it doesn't show the warnings. When I open php scripts that I haven't created myself, I'll just disable the warnings in the Security section to avoid the 1000's of warnings :)