cvs: php-src /main main.c
| From: | Dmitry Stogov | Date: | Fri, 07 Apr 2006 11:43:43 +0000 |
| Subject: | cvs: php-src /main main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-37690@lists.php.net to get a copy of this message | ||
dmitry Fri Apr 7 11:43:43 2006 UTC
Modified files:
/php-src/main main.c
Log:
We don't need setup the same time-out two times.
http://cvs.php.net/viewcvs.cgi/php-src/main/main.c?r1=1.684&r2=1.685&diff_format=u
Index: php-src/main/main.c
diff -u php-src/main/main.c:1.684 php-src/main/main.c:1.685
--- php-src/main/main.c:1.684 Wed Mar 29 01:20:43 2006
+++ php-src/main/main.c Fri Apr 7 11:43:43 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: main.c,v 1.684 2006/03/29 01:20:43 pollita Exp $ */
+/* $Id: main.c,v 1.685 2006/04/07 11:43:43 dmitry Exp $ */
/* {{{ includes
*/
@@ -1861,10 +1861,12 @@
} 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();