php_request_startup() where it should be. AFAICT, it does not
cause any problems, but please it test it with your favorite SAPI
module.
}
#endif
+static int php_hash_environment(ELS_D SLS_DC PLS_DC);
int php_request_startup(CLS_D ELS_DC PLS_DC SLS_DC)
{
/* We turn this off in php_execute_script() */
/* PG(during_request_startup) = 0; */
+ php_hash_environment(ELS_C SLS_CC PLS_CC);
+ zend_activate_modules();
+ PG(modules_activated)=1;
+
return SUCCESS;
}
char *old_cwd;
SLS_FETCH();
- php_hash_environment(ELS_C SLS_CC PLS_CC);
-
- zend_activate_modules();
- PG(modules_activated)=1;
if (SG(request_info).query_string && SG(request_info).query_string[0]=='='
&& PG(expose_php)) {