@shudder Not sure I follow the second question.
What kind of version checks are you doing? If you're doing function_exists(), it should be for the purpose of calling that function, only. In that case, the polyfill is doing it's job. If it's anything other than that or class_exists(), you should just use version_compare and not try to do feature detection.
Feature detection makes sense in JS where different implementations have a different random set of features. Not in PHP.
=> More informations about this toot | View the thread | More toots from Crell@phpc.social
=> View shudder@phpc.social profile
text/gemini
This content has been proxied by September (3851b).