Fix for php bug #64802 includes test case