Skip to content

Commit

Permalink
Call GC in request shutdown to prevent segfaults
Browse files Browse the repository at this point in the history
  • Loading branch information
pp3345 committed Jun 7, 2013
1 parent f34d02e commit e9ea158
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sys/modules/sapi/PancakeSAPI.c
Expand Up @@ -1155,6 +1155,9 @@ PHP_FUNCTION(SAPIFinishRequest) {
}
}

// Call garbage collection
gc_collect_cycles(TSRMLS_C);

// Restore ini entries
zend_try {
zend_ini_deactivate(TSRMLS_C);
Expand Down

0 comments on commit e9ea158

Please sign in to comment.