Skip to content

Commit

Permalink
Fixed bug #75742 (potential memleak in internal classes's static memb…
Browse files Browse the repository at this point in the history
…ers)
  • Loading branch information
laruence committed Dec 28, 2017
1 parent 4b5e182 commit 650264e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ PHP NEWS
?? ??? ????, PHP 7.2.2

- Core:
. Fixed bug #75742 (potential memleak in internal classes's static members).
(Laruence)
. Fixed bug #75679 (Path 260 character problem). (Anatol)
. Fixed bug #75614 (Some non-portable == in shell scripts). (jdolecek)

Expand Down
6 changes: 4 additions & 2 deletions Zend/zend_execute_API.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ void shutdown_executor(void) /* {{{ */
break;
}
} ZEND_HASH_FOREACH_END_DEL();

zend_cleanup_internal_classes();
} else {
zend_hash_graceful_reverse_destroy(&EG(symbol_table));

Expand Down Expand Up @@ -358,6 +360,8 @@ void shutdown_executor(void) /* {{{ */
} ZEND_HASH_FOREACH_END_DEL();
}

zend_cleanup_internal_classes();

while (EG(symtable_cache_ptr)>=EG(symtable_cache)) {
zend_hash_destroy(*EG(symtable_cache_ptr));
FREE_HASHTABLE(*EG(symtable_cache_ptr));
Expand Down Expand Up @@ -388,8 +392,6 @@ void shutdown_executor(void) /* {{{ */

EG(ht_iterators_used) = 0;

zend_cleanup_internal_classes();

zend_shutdown_fpu();
}
/* }}} */
Expand Down

0 comments on commit 650264e

Please sign in to comment.