![]() Still what PHP 8.1 gives us now is not that different. Before we had to give global constants a prefix (like PHP itself does) to not get lost, or put them in an »interface« that doesn't do anything but host a set of related constants. I was waiting for this for a very long time. □ Which leaves me with the task of compiling a short version that's focused on the MediaWiki development I mostly care about. Written by a single person and going into way more detail than you ever asked for. While putting this together I also stumbled upon PHP.Watch, a much more detailed resource for exactly what I do here. Luckily we also got convenient features like ? (since PHP 7.0) and ?= (since PHP 7.4) that made the migration less painful. For example, an if ( trim( $input ) = '' ) check worked just fine with null. The deprecation also broke a lot of code that used the behavior as a feature. This didn't only affect problematic code we are happy to fix. ![]() Update from November 2022: As it turned out the by far biggest impact on MediaWiki was because built-in string functions like trim(), substr(), preg_match(), and many, many more stopped accepting null. As always in order of personal preference. Continuing a series of similar posts here is my personal list of highly anticipated changes and features that are new in PHP 8.1, compared to PHP 8.0. ![]() While our Wikimedia servers are stuck with PHP 7.2 for a little longer, I'm very much looking forward to the day we can start using the new features every later PHP version came with. What's new in PHP 8.1 – Thiemo Kreuz What's new in PHP 8.1
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |