Add test for #64529
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4