fix #64725, wrong res check
Merge branch 'PHP-5.5'

* PHP-5.5:
  fix #64725, wrong res check
Merge branch 'master' of git.php.net:php-src