File tree 1 file changed +2
-7
lines changed 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -2164,8 +2164,6 @@ static void accel_reset_pcre_cache(void)
2164
2164
2165
2165
static void accel_activate (void )
2166
2166
{
2167
- zend_bool reset_pcre = 0 ;
2168
-
2169
2167
if (!ZCG (enabled ) || !accel_startup_ok ) {
2170
2168
return ;
2171
2169
}
@@ -2271,9 +2269,6 @@ static void accel_activate(void)
2271
2269
accel_restart_leave ();
2272
2270
}
2273
2271
}
2274
- if (!ZCG (pcre_reseted )) {
2275
- reset_pcre = 1 ;
2276
- }
2277
2272
zend_shared_alloc_unlock ();
2278
2273
}
2279
2274
@@ -2282,7 +2277,7 @@ static void accel_activate(void)
2282
2277
SHM_PROTECT ();
2283
2278
HANDLE_UNBLOCK_INTERRUPTIONS ();
2284
2279
2285
- if (ZCSG (last_restart_time ) != ZCG (last_restart_time )) {
2280
+ if (ZCG ( accelerator_enabled ) && ZCSG (last_restart_time ) != ZCG (last_restart_time )) {
2286
2281
/* SHM was reinitialized. */
2287
2282
ZCG (last_restart_time ) = ZCSG (last_restart_time );
2288
2283
@@ -2291,7 +2286,7 @@ static void accel_activate(void)
2291
2286
2292
2287
accel_reset_pcre_cache ();
2293
2288
ZCG (pcre_reseted ) = 0 ;
2294
- } else if (reset_pcre ) {
2289
+ } else if (! ZCG ( accelerator_enabled ) && ! ZCG ( pcre_reseted ) ) {
2295
2290
accel_reset_pcre_cache ();
2296
2291
ZCG (pcre_reseted ) = 1 ;
2297
2292
}
You can’t perform that action at this time.
0 commit comments