Nueva selección con enlaces a noticias y materiales. En el número: 2 aceptadas, 2 rechazadas y 6 nuevas ofertas de RFC de PHP Internals, una revisión de PHP 8, una porción de herramientas útiles, eventos en línea, videos, podcasts y mucho más.
¡Disfruta leyendo!
Noticias y lanzamientos
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

/
¡Gracias por la atención!
Si nota un error o imprecisión, infórmeme en PM .
Preguntas y sugerencias escritas a mail o twitter .
Más noticias y comentarios sobre el canal de telegramas PHP Digest .
Enviar enlace
Buscar enlaces para todos los resúmenes
← Versión anterior: PHP Digest No. 179