tests: fixed bug #48724 in PHP 5.4.17