fix of test #gh-971 for php < 5.4