浏览代码
rg=0 fixes.
PHP versions < 4.1 need global $_SESSION statements inside of functions to access the $_SESSION variables. However PHP 4.1.x will sometimes segfault apache if a global $_SESSION statement is executed before a session_start. PHP 4.2.x does not seem to care either way. So now we check PHP version and register_global status before executing these global statements to keep all versions working :)