php3_header(); /* Make sure headers have been sent */
php_request_shutdown((void *) 0);
php_module_shutdown();
+ tsrm_shutdown();
return SUCCESS;
}
SG(headers_sent) = 0;
SG(read_post_bytes) = 0;
if (SG(server_context)) {
- if (!strcmp(SG(request_info).request_method, "POST")) {
+ if (SG(request_info).request_method
+ && !strcmp(SG(request_info).request_method, "POST")) {
sapi_read_post_data(SLS_C);
} else {
SG(request_info).post_data = NULL;
{
PLS_FETCH();
- php3_error(E_ERROR, "Maximum execution time of %d seconds exceeded", PG(max_execution_time));
+ php3_error(E_ERROR, "Maximum execution time of %s seconds exceeded", INI_STRING("max_execution_time"));
}
#endif
zend_output_startup();
- php3_set_timeout(PG(max_execution_time));
-
#if APACHE
/*
* For the Apache module version, this bit of code registers a cleanup
char *safe_mode_exec_dir;
long enable_dl;
- long max_execution_time;
long memory_limit;
long track_errors;