Fixed ZTS build
Merge branch 'PHP-5.5'

* PHP-5.5:
  Fixed ZTS build
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  fix null deref
  Fixed bugs #47675 and #64577 (fd leak on Solaris)
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  fix possible NULL deref