fix bad pointer cast in ext/phar, fix segfault and failed tests (bigendian)
cleanup uneeded cast
fix perm again...
reworked ini dtor
Merge remote-tracking branch 'origin/master' into native-tls

* origin/master:
  fix perm again...
  cleanup uneeded cast
  fix bad pointer cast in ext/phar, fix segfault and failed tests (bigendian)

Conflicts:
	ext/phar/func_interceptors.c
	ext/phar/phar_object.c
	sapi/apache2handler/sapi_apache2.c