bug in unit test and travail for php://memory stream