summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/session/php_session.h2
-rw-r--r--ext/session/session.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/session/php_session.h b/ext/session/php_session.h
index b4c6b89e10..05e319d56a 100644
--- a/ext/session/php_session.h
+++ b/ext/session/php_session.h
@@ -105,7 +105,7 @@ typedef struct _php_ps_globals {
void *mod_data;
php_session_status session_status;
long gc_probability;
- long gc_dividend;
+ long gc_divisor;
long gc_maxlifetime;
int module_number;
long cache_expire;
diff --git a/ext/session/session.c b/ext/session/session.c
index 6a5dc71dd0..de671ec464 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -138,7 +138,7 @@ PHP_INI_BEGIN()
PHP_INI_ENTRY("session.save_handler", "files", PHP_INI_ALL, OnUpdateSaveHandler)
STD_PHP_INI_BOOLEAN("session.auto_start", "0", PHP_INI_ALL, OnUpdateBool, auto_start, php_ps_globals, ps_globals)
STD_PHP_INI_ENTRY("session.gc_probability", "1", PHP_INI_ALL, OnUpdateLong, gc_probability, php_ps_globals, ps_globals)
- STD_PHP_INI_ENTRY("session.gc_dividend", "100", PHP_INI_ALL, OnUpdateLong, gc_dividend, php_ps_globals, ps_globals)
+ STD_PHP_INI_ENTRY("session.gc_divisor", "100", PHP_INI_ALL, OnUpdateLong, gc_divisor, php_ps_globals, ps_globals)
STD_PHP_INI_ENTRY("session.gc_maxlifetime", "1440", PHP_INI_ALL, OnUpdateLong, gc_maxlifetime, php_ps_globals, ps_globals)
PHP_INI_ENTRY("session.serialize_handler", "php", PHP_INI_ALL, OnUpdateSerializer)
STD_PHP_INI_ENTRY("session.cookie_lifetime", "0", PHP_INI_ALL, OnUpdateLong, cookie_lifetime, php_ps_globals, ps_globals)
@@ -1154,7 +1154,7 @@ PHPAPI void php_session_start(TSRMLS_D)
if (PS(mod_data) && PS(gc_probability) > 0) {
int nrdels = -1;
- nrand = (int) ((float) PS(gc_dividend) * php_combined_lcg(TSRMLS_C));
+ nrand = (int) ((float) PS(gc_divisor) * php_combined_lcg(TSRMLS_C));
if (nrand < PS(gc_probability)) {
PS(mod)->s_gc(&PS(mod_data), PS(gc_maxlifetime), &nrdels TSRMLS_CC);
#if 0