Toot

Written by Larry Garfield on 2025-01-20 at 03:46

@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

Mentions

=> View shudder@phpc.social profile

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113858629752024125
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
230.609582 milliseconds
Gemini-to-HTML Time
0.582858 milliseconds

This content has been proxied by September (3851b).