Skip to content

Commit

Permalink
Merge branch 'PHP-5.4' into PHP-5.5
Browse files Browse the repository at this point in the history
* PHP-5.4:
  Fix bug #67644 - Memory corruption & crash during ob_start function callback
  • Loading branch information
smalyshev committed Sep 2, 2014
2 parents 4b9fcc0 + 53fa6c5 commit af85eff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ PHP NEWS
. Fixed bug #47358 (glob returns error, should be empty array()). (Pierre)
. Fixed bug #65463 (SIGSEGV during zend_shutdown()). (Keyur Govande)
. Fixed bug #66036 (Crash on SIGTERM in apache process). (Keyur Govande)
. Fixed bug #67644 (Memory corruption & crash during ob_start function
callback). (Stas)
. Fixed bug #67878 (program_prefix not honoured in man pages). (Remi)

- COM:
Expand Down
6 changes: 6 additions & 0 deletions main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1767,6 +1767,12 @@ void php_request_shutdown(void *dummy)
}
} zend_end_try();

/* Output buffer handlers may have created new objects. Mark these objects
as destructed to avoid calling their dtors too late on shutdown when
all dtors were supposed to be cleaned
*/
zend_objects_store_mark_destructed(&EG(objects_store) TSRMLS_CC);

/* 4. Reset max_execution_time (no longer executing php code after response sent) */
zend_try {
zend_unset_timeout(TSRMLS_C);
Expand Down

0 comments on commit af85eff

Please sign in to comment.