Skip to content

Commit

Permalink
Return success when engine is disabled. Refs midgardprojectgh-96
Browse files Browse the repository at this point in the history
  • Loading branch information
piotras committed Aug 22, 2012
1 parent dc3f206 commit dd35108
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions midgard.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,9 @@ PHP_RINIT_FUNCTION(midgard2)

PHP_RSHUTDOWN_FUNCTION(midgard2)
{
if (!php_midgard_engine_is_enabled(TSRMLS_C))
return SUCCESS;

MGDG(can_deliver_signals) = 0;

if (MGDG(midgard_memory_debug)) {
Expand Down

0 comments on commit dd35108

Please sign in to comment.