]> granicus.if.org Git - php/commitdiff
Weed out all BoundsChecker-found bugs
authorZeev Suraski <zeev@php.net>
Mon, 10 May 1999 19:48:23 +0000 (19:48 +0000)
committerZeev Suraski <zeev@php.net>
Mon, 10 May 1999 19:48:23 +0000 (19:48 +0000)
cgi_main.c
main/SAPI.c
main/main.c
main/php_globals.h

index 6760dbfba9816bf5864a3ac6bf85e1be2de4d29b..a7c01c7f0776d053eaf8aa39f186890c30d72b85 100644 (file)
@@ -436,6 +436,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
        php3_header();                  /* Make sure headers have been sent */
        php_request_shutdown((void *) 0);
        php_module_shutdown();
+       tsrm_shutdown();
        return SUCCESS;
 }
 
index 91f47afc6bf2c22d7515307e81927e64e6279dae..b9f9e36e953dacae27a111e6bcba010e2c61fb11 100644 (file)
@@ -94,7 +94,8 @@ SAPI_API void sapi_activate(SLS_D)
        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;
index ef965528ff4286951c73670c972c3434178d4e28..65f38cd557762858d94b0bd2ca84a4c371b81104 100644 (file)
@@ -470,7 +470,7 @@ static void php3_timeout(int dummy)
 {
        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
 
@@ -603,8 +603,6 @@ int php_request_startup(CLS_D ELS_DC PLS_DC SLS_DC)
 
        zend_output_startup();
 
-       php3_set_timeout(PG(max_execution_time));
-
 #if APACHE
        /*
         * For the Apache module version, this bit of code registers a cleanup
index 48ad5441f7b89883cda7df304c699e94f9523357..0eae5e131c58476b814864a822b3f9c2c5b72748 100644 (file)
@@ -37,7 +37,6 @@ struct _php_core_globals {
        char *safe_mode_exec_dir;
        long enable_dl;
 
-    long max_execution_time;
     long memory_limit;
 
     long track_errors;