* Minor fixes for testing enabled extensions.

This assumes we're using PHP 5.0.0 at least. So we test for the extensions in accordance with that.

Thanks.