Hey, everyone.
Working on a pluginen for Wordpress right now. It will allow you to comment articles as a phpBB3 user. The problem has to do with phpBB3s native session solution. By including the file "common.php" and doing some authentification against phpBB3, you'll have support for phpBB3 sessions outside of the forum solution.
The problem is that both phpBB3 and Wordpress are polluting the global namespace. Global variables such as $db, $theme, etc, is used by both system. We also have function naming conflicts.
Functions are pretty manageable. Because I can run those few functions I need inside my own classes, this works fine. The problem is those global variables that crash WP when included from phpBB3.
Is there a way to unset the global variables or a way to use PHPs new namespaces to solve this issue? I guess both PHP and JavaScript developers might be able to answer me that.