Fresh selection with links to news and materials. In the issue: 2 accepted, 2 rejected and 6 new RFC offers from PHP Internals, a review of PHP 8, a portion of useful tools, online events, videos, podcasts and much more.
Enjoy reading!
News and Releases
PHP Internals
- - PHP 8 β Sara Golemon (ex-HHVM/Hack, - PHP 7.2) Gabriel Caruso.
[RFC] Locale-independent float to string cast β . 3,14
3.14
, .
[RFC] Add str_starts_with() and str_ends_with() functions β str_contains() : str_starts_with()
str_ends_with()
.
[RFC] Match expression β . , , RFC .
[RFC] Guard statement β guard
, , if
. Swift, - . .- [RFC] Conditional Return, Break, and Continue Statements β
return if ($condition);
function divide($dividend, $divisor = null) {
return if ($divisor === null || $divisor === 0);
return 0 if ($divisor === null || $divisor === 0);
return $dividend / $divisor;
}
Ruby, if (condition) return;
? - [RFC] Named Arguments β PHP 8 , , .
htmlspecialchars($string, double_encode: false);
htmlspecialchars($string, ENT_COMPAT | ENT_HTML401 , ini_get("default_charset"), false);
. - [RFC] <<Deprecated>> Attribute β /, , , .
trigger_error()
.
<?php
<<Deprecated("use test2() instead")>>
function test() {}
class Foo {
<<Deprecated>>
public function test() {}
public function test2(<<Deprecated>> $value) {}
<<Deprecated>>
public $value;
<<Deprecated>>
const FOO = 1;
}
- [RFC] Add CMS Support β
WordPress PHP RFC-5652. - [RFC] Make sorting stable β PHP . , ().
sort, rsort, usort, asort, arsort, uasort, ksort, krsort, uksort, array_multisort
. , (). - [RFC] Opcache optimization without any caching β (
opcache.optimization_level=0
) β CLI-, , .
, . , .

Symfony
Laravel
Async PHP

/
Thank you for the attention!
If you notice a mistake or inaccuracy - please inform me in PM .
Questions and suggestions write to mail or twitter .
More news and comments on the PHP Digest Telegram Channel .
Send link
Search links for all digests
β Previous release: PHP Digest No. 179