O PHP 8.1 terĂĄ um enum e mais dois aceitos, dois rejeitados e trĂȘs novos RFCs para o PHP 8.1. O WordPress Ă© usado por 40% dos sites. Por que vocĂȘ precisa remover strict_types, por que vocĂȘ nĂŁo deve usar empty (), bem como ferramentas, vĂdeos, artigos, podcasts e PHP Digest Live Ă s 10:00 GMT.
Gostar de ler!
NotĂcias e lançamentos
- PhpStorm 2021.1 EAP
IDE. , . : -, HTML , .
2020.3.1 / Code With Me. - xdebug.cloud
Xdebug, â PHP- , , Docker, Vagrant, . - WordPress 40% 10 â w3techs .
2021- PHP? â 27
.- 25 , 19:00 PHP of By. « - PHP» temporal.io.
- phpcommunity.ru.
PHP Internals
[RFC] Enumerations
44 7 . PHP 8.1 enum.
enum RfcStatus { case Draft; case UnderDiscussion; case Accepted; } function setRfcStatus(RfcStatus $status) :void { // ... } setRFCStatus(RfcStatus::Accepted); // setRFCStatus('Draft'); // Deprecation notice 8.1, TypeError 9.0
RFC php.watch.
Symfony .
[RFC] Deprecate passing null to non-nullable arguments of internal functions
PHPnull
,nullable
.
PHP 8.1TypeError
. ,str_contains("", null)
. 3v4l.org/OVoa0A.
: , PHP.
[RFC] Array unpacking with string keys
PHP 8.1 , :
$array1 = ['a' => 'apple', 'p' => 'pear']; $array2 = ['b' => 'banana', 'o' => 'orange']; $array = [...$array1, ...$array2]; // : $array = array_merge($array1, $array2);
- [RFC] Fibers
, .
Fiber API Ruby.
ReactPHP trowski/react-fiber:
$loop = new FiberLoop(Factory::create()); $browser = new Browser($loop); $request = function (string $method, string $url) use ($browser, $loop): void { /** @var Response $response */ $response = $loop->await($browser->requestStreaming($method, $url)); /** @var ReadableStreamInterface $stream */ $stream = $response->getBody(); $body = $loop->await(Stream\buffer($stream)); var_dump(\sprintf( '%s %s; Status: %d; Body length: %d', $method, $url, $response->getStatusCode(), \strlen($body) )); }; $requests = []; $requests[] = $loop->async($request, 'GET', 'https://reactphp.org'); $requests[] = $loop->async($request, 'GET', 'https://google.com'); $requests[] = $loop->async($request, 'GET', 'https://www.php.net'); $loop->await(Promise\all($requests));
- [RFC] CachedIterable (rewindable, allows any key&repeating keys)
Tyson Andre . . - Proposal: namespace the SPL
Spl
:Spl\FixedArray
->SplFixedArray
. ,CachedIterable
ReverseIterator
.
azjezz/psl.
- [RFC] mysqli bind in execute
Kamil Tekielamysqli
. RFCmysqli_stmt::execute()
. , ,mysqli_stmt::bind_param()
. , bind_param .
[RFC] PHP\iterable\any() and all() on iterables â any()
all()
.
[RFC] var_representation(): readable alternative to var_export() â var_export
, brick/varexporter.- [Draft] Unify PHP's typing modes â PHP . â , , â
strict_types=1
â . , , .
George Peter Banyard, RFC.
. - Observer API PHP 8 â API . Xdebug, APM- New Relic, Tideways, ..
- renoki-co/php-k8s â PHP.
- marcocesarato/php-conventional-changelog â changelog .
- andrey-helldar/package-wizard â CLI- .
- rryqszq4/ngx_php7 â nginx PHP. PHP, /, , .
Symfony
- symfony/panther 1.0 â Symfony Selenium WebDriver E2E .
- Tobias Nyholm: Symfony Lock Messenger
- .
- Symfony #738 (15-21 2021)
Laravel
- middleware Laravel.
- Laravel.
Laravel Internals #4 â Laravel.
Laravelâ (8â21 2021)
Yii
Async PHP
- swow/swow â PHP, libuv, , PDO, file_get_ontents() .. ( ). , Swoole.
PhpStorm
PhpStorm Christoph Rumpel.- 26 PhpStorm
- Dependency Confusion PHP.
- Benjamin Eberlei: empty() PHP? .
- PHP â .
MySQL > 40000 QPS, â .
.
: , , .
, - PHP.
SafetyNet Attestation â PHP.
Tagged Unions PHP ( Rust).
: ?
/

shutdown â () PHP Point.
PHP ( , Simtech Development)
. PHP, MySQL, .
PHP â85 â CTO «», Apache Camel, PHP 4 , Lamoda.
PHP Release Radar #5 â Flysystem 2 Frank de Jonge.
Podcast de notĂcias internas do PHP com Nikita Popov sobre os RFCs aceitos para PHP 8.1: deprecate null e descompactação de array , uso de restriçÔes globais e eliminação gradual de serialização .
Divertido
- mario-deluna / php-render Ă© um renderizador PHP 3D puro, mesmo sem usar FFI. Shaders, analisador de arquivos .obj e muito mais.
CĂłdigo de exemplo:

JĂĄ Ă© um fluxo tradicional baseado em PHP Digest. HaverĂĄ uma anĂĄlise de notĂcias e links do problema com detalhes e detalhes adicionais.
Começando às 20:00 Moscou, Minsk / 19:00 Kiev.
Se vocĂȘ notar um erro ou imprecisĂŁo, por favor, informe-nos em um Habr pessoal ou telegrama .
Mais notĂcias e comentĂĄrios no canal PHP Digest Telegram .
Enviar link
Links de busca em todos os resumos
â NĂșmero anterior: PHP-Digest â 198