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