svn: /php/php-src/ branches/PHP_5_2/main/main.c branches/PHP_5_3/main/main.c trunk/main/main.c
| From: | Dmitry Stogov | Date: | Thu, 05 Nov 2009 10:38:56 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_2/main/main.c branches/PHP_5_3/main/main.c trunk/main/main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-60849@lists.php.net to get a copy of this message | ||
dmitry Thu, 05 Nov 2009 10:38:56 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290236
Log:
Avoid invoking setitimer when timeouts have been disabled (Arvind Srinivasan)
Changed paths:
U php/php-src/branches/PHP_5_2/main/main.c
U php/php-src/branches/PHP_5_3/main/main.c
U php/php-src/trunk/main/main.c
Modified: php/php-src/branches/PHP_5_2/main/main.c
===================================================================
--- php/php-src/branches/PHP_5_2/main/main.c 2009-11-05 10:01:26 UTC (rev 290235)
+++ php/php-src/branches/PHP_5_2/main/main.c 2009-11-05 10:38:56 UTC (rev 290236)
@@ -204,12 +204,13 @@
*/
static PHP_INI_MH(OnUpdateTimeout)
{
- EG(timeout_seconds) = atoi(new_value);
if (stage==PHP_INI_STAGE_STARTUP) {
/* Don't set a timeout on startup, only per-request */
+ EG(timeout_seconds) = atoi(new_value);
return SUCCESS;
}
zend_unset_timeout(TSRMLS_C);
+ EG(timeout_seconds) = atoi(new_value);
zend_set_timeout(EG(timeout_seconds));
return SUCCESS;
}
Modified: php/php-src/branches/PHP_5_3/main/main.c
===================================================================
--- php/php-src/branches/PHP_5_3/main/main.c 2009-11-05 10:01:26 UTC (rev 290235)
+++ php/php-src/branches/PHP_5_3/main/main.c 2009-11-05 10:38:56 UTC (rev 290236)
@@ -244,12 +244,13 @@
*/
static PHP_INI_MH(OnUpdateTimeout)
{
- EG(timeout_seconds) = atoi(new_value);
if (stage==PHP_INI_STAGE_STARTUP) {
/* Don't set a timeout on startup, only per-request */
+ EG(timeout_seconds) = atoi(new_value);
return SUCCESS;
}
zend_unset_timeout(TSRMLS_C);
+ EG(timeout_seconds) = atoi(new_value);
zend_set_timeout(EG(timeout_seconds), 0);
return SUCCESS;
}
Modified: php/php-src/trunk/main/main.c
===================================================================
--- php/php-src/trunk/main/main.c 2009-11-05 10:01:26 UTC (rev 290235)
+++ php/php-src/trunk/main/main.c 2009-11-05 10:38:56 UTC (rev 290236)
@@ -244,12 +244,13 @@
*/
static PHP_INI_MH(OnUpdateTimeout)
{
- EG(timeout_seconds) = atoi(new_value);
if (stage==PHP_INI_STAGE_STARTUP) {
/* Don't set a timeout on startup, only per-request */
+ EG(timeout_seconds) = atoi(new_value);
return SUCCESS;
}
zend_unset_timeout(TSRMLS_C);
+ EG(timeout_seconds) = atoi(new_value);
zend_set_timeout(EG(timeout_seconds), 0);
return SUCCESS;
}