svn: /php/php-src/ branches/PHP_5_2/NEWS branches/PHP_5_2/Zend/zend_execute_API.c branches/PHP_5_3/Zend/zend_execute_API.c
trunk/Zend/zend_execute_API.c
| From: | Dmitry Stogov | Date: | Thu, 05 Nov 2009 09:33:19 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_2/NEWS branches/PHP_5_2/Zend/zend_execute_API.c branches/PHP_5_3/Zend/zend_execute_API.c trunk/Zend/zend_execute_API.c |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-60848@lists.php.net to get a copy of this message | ||
dmitry Thu, 05 Nov 2009 09:33:19 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290231
Log:
Fixed unnecessary invokation of setitimer when timeouts have been disabled (Arvind Srinivasan)
Changed paths:
U php/php-src/branches/PHP_5_2/NEWS
U php/php-src/branches/PHP_5_2/Zend/zend_execute_API.c
U php/php-src/branches/PHP_5_3/Zend/zend_execute_API.c
U php/php-src/trunk/Zend/zend_execute_API.c
Modified: php/php-src/branches/PHP_5_2/NEWS
===================================================================
--- php/php-src/branches/PHP_5_2/NEWS 2009-11-05 08:45:45 UTC (rev 290230)
+++ php/php-src/branches/PHP_5_2/NEWS 2009-11-05 09:33:19 UTC (rev 290231)
@@ -7,6 +7,8 @@
number of file uploads per-request to 100 by default, to prevent possible
DOS via temporary file exhaustion. (Ilia)
+- Fixed unnecessary invokation of setitimer when timeouts have been disabled
+ (Arvind Srinivasan)
- Fixed crash in com_print_typeinfo when an invalid typelib is given.
(Pierre)
- Fixed a safe_mode bypass in tempnam() identified by Grzegorz Stachowiak.
Modified: php/php-src/branches/PHP_5_2/Zend/zend_execute_API.c
===================================================================
--- php/php-src/branches/PHP_5_2/Zend/zend_execute_API.c 2009-11-05 08:45:45 UTC (rev 290230)
+++ php/php-src/branches/PHP_5_2/Zend/zend_execute_API.c 2009-11-05 09:33:19 UTC (rev 290231)
@@ -1511,7 +1511,7 @@
}
#else
# ifdef HAVE_SETITIMER
- {
+ if (EG(timeout_seconds)) {
struct itimerval no_timeout;
no_timeout.it_value.tv_sec = no_timeout.it_value.tv_usec = no_timeout.it_interval.tv_sec =
no_timeout.it_interval.tv_usec = 0;
Modified: php/php-src/branches/PHP_5_3/Zend/zend_execute_API.c
===================================================================
--- php/php-src/branches/PHP_5_3/Zend/zend_execute_API.c 2009-11-05 08:45:45 UTC (rev 290230)
+++ php/php-src/branches/PHP_5_3/Zend/zend_execute_API.c 2009-11-05 09:33:19 UTC (rev 290231)
@@ -1481,7 +1481,7 @@
}
#else
# ifdef HAVE_SETITIMER
- {
+ if (EG(timeout_seconds)) {
struct itimerval no_timeout;
no_timeout.it_value.tv_sec = no_timeout.it_value.tv_usec = no_timeout.it_interval.tv_sec =
no_timeout.it_interval.tv_usec = 0;
Modified: php/php-src/trunk/Zend/zend_execute_API.c
===================================================================
--- php/php-src/trunk/Zend/zend_execute_API.c 2009-11-05 08:45:45 UTC (rev 290230)
+++ php/php-src/trunk/Zend/zend_execute_API.c 2009-11-05 09:33:19 UTC (rev 290231)
@@ -1596,7 +1596,7 @@
}
#else
# ifdef HAVE_SETITIMER
- {
+ if (EG(timeout_seconds)) {
struct itimerval no_timeout;
no_timeout.it_value.tv_sec = no_timeout.it_value.tv_usec = no_timeout.it_interval.tv_sec =
no_timeout.it_interval.tv_usec = 0;