]> granicus.if.org Git - php/commitdiff
We don't need setup the same time-out two times.
authorDmitry Stogov <dmitry@php.net>
Fri, 7 Apr 2006 11:44:03 +0000 (11:44 +0000)
committerDmitry Stogov <dmitry@php.net>
Fri, 7 Apr 2006 11:44:03 +0000 (11:44 +0000)
main/main.c

index 4515e02c69ac7ce958b92f6bce16d33ecfd384ba..05612e664cab0f3882ad2354d9227fa2609bf638 100644 (file)
@@ -1719,10 +1719,12 @@ PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC)
                } else {
                        append_file_p = NULL;
                }
+               if (PG(max_input_time) == -1) {
 #ifdef PHP_WIN32
-               zend_unset_timeout(TSRMLS_C);
+                       zend_unset_timeout(TSRMLS_C);
 #endif
-               zend_set_timeout(INI_INT("max_execution_time"));
+                       zend_set_timeout(EG(timeout_seconds));
+               }
                retval = (zend_execute_scripts(ZEND_REQUIRE TSRMLS_CC, NULL, 3, prepend_file_p, primary_file, append_file_p) == SUCCESS);
                
        } zend_end_try();