Fix bug #66182 	exit in stream filter produces segfault

Unfortunately, a segv caused by exit cannot be tested reliably.
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Fix bug #66182 	exit in stream filter produces segfault
NEWS
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  NEWS
  Fix bug #66182 	exit in stream filter produces segfault
NEWS
Merge branch 'PHP-5.6'

* PHP-5.6:
  NEWS
  NEWS
  Fix bug #66182 	exit in stream filter produces segfault