toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

298
active users

#php9

0 posts0 participants0 posts today
Palantir.net<p>This article goes beyond just listing PHP 9.0's features; it explores how those features could impact real-world development, what they mean for PHP's future, and how devs can start preparing themselves <a href="https://medium.com/@umeshp113/the-future-of-php-a-fresh-take-on-what-php-9-0-brings-f7b9cf7370c6" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">medium.com/@umeshp113/the-futu</span><span class="invisible">re-of-php-a-fresh-take-on-what-php-9-0-brings-f7b9cf7370c6</span></a> <a href="https://mastodon.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://mastodon.social/tags/phpdevs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>phpdevs</span></a> <a href="https://mastodon.social/tags/php9" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php9</span></a> <a href="https://mastodon.social/tags/foss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>foss</span></a></p>
«lambalicious»<p>So, i learned today that <a href="https://aleph.land/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> <a href="https://aleph.land/tags/php8" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php8</span></a> has deprecated strftime and <a href="https://aleph.land/tags/php9" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php9</span></a> plans to remove it. They officially say you should be using either date() or the intldateformatter suite instead.</p><p>Like... what? </p><p>strftime is ISO Standard! It's literally POSIX! The format flags are even "printf"-style!</p><p>Not only that, but the proposed """replacements""" force you to choose between whatever variant of racism, classism and Americentrism you like!: date() works only in US English and only for numbers, whereas intldateformatter supports languages but requires users of any culture other than "US English" to load a whole PHP module.</p><p>Oh, besides you have to change the format strings (woe betide if you are using user-provided!), ALSO these replacements *invert the logic* for processing the format strings as well: intldateformatter etc escapes everything that is *not* a format flag.</p><p>Fortunately, forwardports already exist such as <a href="https://github.com/alphp/strftime/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/alphp/strftime/</span><span class="invisible"></span></a> .</p>