initial move on renaming files and fixing includes
applied and fixed the original patch

initial work on the patch import done
preserve the error code

otherwise it'd be cleared by a subsequent calls
fixed all the places where last error could be lost

whereby this commit should be applied to master anyway
updated NEWS
fixed virtual cwd header in phar
fixed invalid free
moved to do_alloca() usage where appropriate
enabled windows to use stack in both ts/nts mode, some more fixes
Merge branch 'bug50333' of github.com:weltling/php-src into bug50333
back to do_alloca(), reverted the wrong replacement
compact the code to preserve the error info after state freeing
simplify the state free macros
removed unnecessary call
back to do_alloca()
virtual_cwd_activate() should be called only in one place
reverted the previous commit, both calls are needed in TS mode
limit virtual_cwd_activate() duplicated call to ZTS only
Merge branch 'pull-request/500'

* pull-request/500:
  limit virtual_cwd_activate() duplicated call to ZTS only
  reverted the previous commit, both calls are needed in TS mode
  virtual_cwd_activate() should be called only in one place
  back to do_alloca()
  removed unnecessary call
  simplify the state free macros
  compact the code to preserve the error info after state freeing
  back to do_alloca(), reverted the wrong replacement
  enabled windows to use stack in both ts/nts mode, some more fixes
  moved to do_alloca() usage where appropriate
  fixed invalid free
  fixed virtual cwd header in phar
  updated NEWS
  fixed all the places where last error could be lost
  preserve the error code
  applied and fixed the original patch
  initial move on renaming files and fixing includes

Conflicts:
	ext/opcache/ZendAccelerator.c
updated NEWS