tests: fixed bug #48724 in PHP 5.5