Commit:    51fca2b4b35c5db11a7136087fbf8cf3651200c1
Author:    Dmitry Stogov <dmi...@zend.com>         Tue, 1 Oct 2013 11:32:11 
+0400
Parents:   aeb6e9c264fc0054fb829da13c739cdafa276115
Branches:  PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=51fca2b4b35c5db11a7136087fbf8cf3651200c1

Log:
Reverted patch (it was used for internal testing and was committed by accident)

Changed paths:
  M  sapi/cgi/cgi_main.c


Diff:
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index 4f3d504..4c78fca 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -154,7 +154,6 @@ static const opt_struct OPTIONS[] = {
        {'?', 0, "usage"},/* help alias (both '?' and 'usage') */
        {'v', 0, "version"},
        {'z', 1, "zend-extension"},
-       {'W', 1, "warmup"},
        {'T', 1, "timing"},
        {'-', 0, NULL} /* end of args */
 };
@@ -1755,7 +1754,6 @@ int main(int argc, char *argv[])
        int fcgi_fd = 0;
        fcgi_request *request = NULL;
        int repeats = 1;
-       int warmup_repeats = 0;
        int benchmark = 0;
 #if HAVE_GETTIMEOFDAY
        struct timeval start, end;
@@ -2105,9 +2103,6 @@ consult the installation file that came with this 
distribution, or visit \n\
                                        time(&start);
 #endif
                                        break;
-                               case 'W':
-                                       warmup_repeats = atoi(php_optarg);
-                                       break;
                                case 'h':
                                case '?':
                                        if (request) {
@@ -2521,24 +2516,12 @@ fastcgi_request_done:
 
                        if (!fastcgi) {
                                if (benchmark) {
-                                       if (warmup_repeats) {
-                                               warmup_repeats--;
-                                               if (!warmup_repeats) {
-#ifdef HAVE_GETTIMEOFDAY
-                                                       gettimeofday(&start, 
NULL);
-#else
-                                                       time(&start);           
                                
-#endif
-                                               }
+                                       repeats--;
+                                       if (repeats > 0) {
+                                               script_file = NULL;
+                                               php_optind = orig_optind;
+                                               php_optarg = orig_optarg;
                                                continue;
-                                       } else {
-                                               repeats--;
-                                               if (repeats > 0) {
-                                                       script_file = NULL;
-                                                       php_optind = 
orig_optind;
-                                                       php_optarg = 
orig_optarg;
-                                                       continue;
-                                               }
                                        }
                                }
                                break;


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to