ニュースや資料へのリンクを含む新鮮なセレクション。リリース:イニシャライザー内のオブジェクト、拡張名前空間、およびPHP8.1に関するその他のRFC提案。PSR-11を更新し、PSRClockInterfaceを提案しました。便利なツール、ビデオ、ポッドキャスト、記事、およびPHPダイジェストライブの一部(グリニッジ標準時20:00)。
読書を楽しむ!
ニュースとリリース
- PHP 8.0.3、PHP7.4.16。
- PSR ClockInterface
, , .
:
namespace Psr\Clock; interface ClockInterface { /** * Returns the current time as a DateTimeImmutable Object */ public function now(): \DateTimeImmutable; }
- PSR-11 Container Interface — , 1.1, , 2.0 — .
- Git clone — . Git 2.30.2.
- PhpStorm 2021.1 EAP — : PHP- , JSONPath . , EAP .
- Composer 1.x — 2021 API packagist.org .
PHP Internals
- [RFC] New in initializers
PHP , , , . , , — . .
, , .
static $x = new Foo(); const C = new Foo(); #[AnAttribute(new Foo())] class Test { public const C = new Foo(); public static $prop = new Foo(); public $prop = new Foo(); public function __construct( private Logger $logger = new NullLogger() ) {} } function test($param = new Foo()) {}
new
, .
. , , , , , . PHP Live.
- [RFC] Namespaces in bundled PHP extensions
, PHP, . .
RFC , PHP. .OpenSSLCertificate
OpenSSL\Certificate
.
, , RFC . :
str_contains()
->String\contains()
in_array()
->Array\contains()
.
PHP 9. - [RFC] Static variables in inherited methods
, , . , .
RFC , .
class A { public static function counter() { static $i = 0; return ++$i; } } class B extends A {} var_dump(A::counter()); // int(1) var_dump(A::counter()); // int(2) var_dump(B::counter()); // int(3) var_dump(B::counter()); // int(4)
- [RFC] Fibers
. , . : , , PHP . , :
Swoole. , Swoole PHP, — , .
Joe Watkins, , /. krakjoe/parallel .
, , — , Swoole parallel. - [RFC] noreturn type
Psalm PHPStan PHP —noreturn
.
, ,exit()
,die()
,trigger_error()
.
function redirect(string $uri): noreturn { header('Location: ' . $uri); exit(); } function redirectToLoginPage(): noreturn { redirect('/login'); }
Hack, Python, Psalm, PHPStan PhpStorm#[NoReturn]
exitpoint .phpstormmeta.php. - [RFC] debug_backtrace_depth(int $limit=0): int — debug_backtrace_depth(int $limit=0), . , .
:count(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, $limit=0))
. - [RFC] println(string $data = ''): int —
println
,stdout
.str_contains()
, , .
- spiral/RoadRunner v2.0.0 — PHP Golang.
- QratorLabs/Smocky — runkit7 mock- PHPUnit .
- markdown.
- phpize.online — PHP- 3v4l.org SQL.
Symfony
- symfony/runtime — PHP-FPM, CLI, PHP-PM, Swoole . .
- Symfony 6 PHP 8.0
- ansien/RapidFormBundle — Symfony, PHP 8.
- Symfony
- Symfony Docker
- CI/CD Symfony GitLab
- Symfony #741 (8-14 2021)
Laravel
- RCE Laravel <= v8.4.2 debug mode —
file_get_contents
/file_put_contents
FTP. facade/ignition. - Laravel 7 — LTS 2022.
- spatie/laravel-remote — Artisan spatie/ssh. Freek Van der Herten, c .
- squirephp/squire — Eloquent ( , , .).
- Laravel
- Laravel– (22 – 7 2021)
Yii
- FFI PHP
- PHP.Watch: PHP.
- PHP — .
- Matthias Noback: — ? — , .
- PHP arm64 vs x86_64 — AWS ARM 20% .
- nginx+fpm Swoole PHP API 91% — github.com/appwrite.
- PHP Xdebug 3, Docker Compose PhpStorm.
- CI Laminas — GitHub Actions , 200+ .
- — .
- Run, config, run: Badoo
- 1-:
- ,
- PHP- — , , .
- : PHP
- : ! PHP.
- PHP Release Radar #6: Bref 1.0 — C Matthieu Napoli.
- PHP Internals News #77 — PHP 8.1 fsync David Gebler.
- PHP Internals News #78 — C Andreas Heigl PHP Git. , , PHP Russia.
- PHP №87: PHP 2021
- PHP №86: PHP 8
- 12: –
少し休憩した後、ストリームとプレゼンターのバレンティン・ウダルツォフと一緒に戻ります!
詳細と詳細、RFCと記事に関するバレンタインの意見を含む問題からのニュースとリンクの解析があります。興味深いが、この問題には含まれていません。抽選の結果と象との新しい競争。
20:00モスクワ、ミンスク/ 19:00キエフから。
エラーや不正確さに気付いた場合は、個人のhabrまたは電報でお知らせください。
PHPダイジェスト テレグラムチャネルに関するその他のニュースとコメント 。
リンクの送信
すべてのダイジェストで リンクを検索
← 前号:PHP-ダイジェスト#199