Your test program works just fine on 4.0_STABLE. I assume from the way you wrote the test program that you're expecting bind to fail, in which case you're probably dealing with a regression. I don't have a 5.x box around to compare with.