Fix destruction order in zend_shutdown (bug #65463, #66036)

If Apache or a similar SAPI receives a signal during PHP processing
it calls zend_shutdown() without calling shutdown_executor().
	#65463: If a module like Gearman or Memcached is loaded,
in the unfixed version it is unloaded by zend_destroy_modules() before the
CG(CLASS_TABLE) is destructed. When CG(CLASS_TABLE) is destructed,
any pointers to methods (specifically around destruction) in the unloaded
module's .so are now dangling and the process segfaults.
	#66036: Any subclasses of an internal class like ArrayObject need
to be destructed in order: subclass first and then the internal class. In the
unfixed version zend_shutdown() clears the CG(CLASS_TABLE) from the head
of the list onwards, so internal classes are destructed first and user-defined
classes last. Internal classes are alloc/deallocated with malloc/free while
user-defined classes with emalloc/efree. If there's shared data between them
then efree() could be called instead of free() leading to a seg-fault.
Fix typo from commit 32314f6b6
Only destruct if EG(active) in zend_shutdown(). (bug #65463, #66036)
Update NEWS
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Update NEWS
better heading for UPGRADING.INTERNALS
update the GIT-RULES with the 5.6 and the release branches
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  update the GIT-RULES with the 5.6 and the release branches
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  update the GIT-RULES with the 5.6 and the release branches
remove the -dev suffix from the Zend version
update NEWS to reflect what makes into 5.6.0 final
from now on, this should be 5.6.1-dev
almost forgot to bump this
add the NEWS entries from the last stable release
fix the NEWS
reworked NEWS for 5.6.0GA
fixed DBG_INF macro name
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  fixed DBG_INF macro name
Fix stream_select() issue with OpenSSL buffer

Ensure data from OpenSSL internal buffer has been
transfered to PHP stream buffer before a select()
emulation operation is performed

Addresses bug #65137
https://bugs.php.net/bug.php?id=65137

Conflicts:
	ext/openssl/xp_ssl.c
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Fix stream_select() issue with OpenSSL buffer

Conflicts:
	ext/openssl/xp_ssl.c