LoginSignup
2
0

More than 5 years have passed since last update.

php-master-changes 2019-01-04

Posted at

今日はドキュメントの更新、::class まわりの整理修正、親のないクラスでの parent:: 利用エラーのランタイムチェックからコンパイル時チェックへの移動、mysqlnd のコード整理、SOAP 利用時クラッシュするバグの修正があった!

2019-01-04

nikic: Add NEWS entry for bug #77357

nikic: Fix self::class inside constant in global scope

nikic: Introduce separate ZEND_AST_CLASS_NAME AST node

  • https://github.com/php/php-src/commit/290adc41321a6fb0dfe71f1a8058a87ae4c6cab1
  • ZEND_AST_CLASS_NAME の AST ノードを追加
  • クラス定数とクラス名をとるための ::class はどちらも クラス名::hogehoge のような形で構文を共有するが、表しているものは全然違う
  • 違うのにどっちも ZEND_AST_CLASS_CONST で表していた
  • hogehoge が "class" なら ZEND_AST_CLASS_NAME、そうでなければ ZEND_AST_CLASS_CONST、と分岐するよう、AST ノードを分けてコードを整理した形

nikic: Fix intl build

nikic: Don't replace self::class with __CLASS__ during const eval

Andrey Hristov: Revert visibility

nikic: Handle self::class separately from __CLASS__ in const eval

nikic: Support parent::class inside constexpr contexts

nikic: Detect invalid uses of parent:: during compilation

nikic: Resolve parent::class at compile-time if possible

Andrey Hristov: Add type safety for mysqlnd plugin developers

nikic: Fix bug #77410

Andrey Hristov: const-ify some functions

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0