File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4129,9 +4129,6 @@ static int accel_finish_startup(void)
4129
4129
zend_bool old_reset_signals = SIGG (reset );
4130
4130
#endif
4131
4131
4132
- /* Cleanup heap, to avoid memory leak reports */
4133
- shutdown_memory_manager (1 , 0 );
4134
-
4135
4132
if (UNEXPECTED (file_cache_only )) {
4136
4133
zend_accel_error (ACCEL_LOG_WARNING , "Preloading doesn't work in \"file_cache_only\" mode" );
4137
4134
return SUCCESS ;
@@ -4171,6 +4168,7 @@ static int accel_finish_startup(void)
4171
4168
EG (error_reporting ) = orig_error_reporting ;
4172
4169
4173
4170
if (rc == SUCCESS ) {
4171
+ zend_bool orig_report_memleaks ;
4174
4172
4175
4173
/* don't send headers */
4176
4174
SG (headers_sent ) = 1 ;
@@ -4192,7 +4190,10 @@ static int accel_finish_startup(void)
4192
4190
ret = FAILURE ;
4193
4191
}
4194
4192
4193
+ orig_report_memleaks = PG (report_memleaks );
4194
+ PG (report_memleaks ) = 0 ;
4195
4195
php_request_shutdown (NULL );
4196
+ PG (report_memleaks ) = orig_report_memleaks ;
4196
4197
} else {
4197
4198
ret = FAILURE ;
4198
4199
}
You can’t perform that action at this time.
0 commit comments