今日はオブジェクト破棄時の処理の最適化、mb_check_encoding() の修正、拡張から $this を参照するためのマクロ ZEND_THIS の導入、SplPriorityQueue の最適化と修正、テストの修正があった!
2018-11-16
dstogov: micro-optimization
nikic: Fixed bug #77165
- https://github.com/php/php-src/commit/dee5a450d9b7f7b03f012dd1912cc0a3dcb0482c
- [7.3~]
- ext/mbstring で、mb_check_encoding() の引数を空配列を渡すとクラッシュする問題の修正
- slack の phpusers-ja でチラっと話が出ていた奴
dstogov: Use ZEND_THIS macro to hide implementation details in extensions code.
- https://github.com/php/php-src/commit/0f7f1498be549f5988bf9d8150f35bedf70741c5
- 拡張から $this へアクセスするためのマクロ ZEND_THIS の導入
- 14 日のコミットに対するコメントで話されていた奴
nikic: Optimize SplPriorityQueue implementation
- https://github.com/php/php-src/commit/e965fee90464e58263291c4774514e4687b8b34c
- ext/spl で、SplPriorityQueue の実装の最適化
- 全要素について 2 キーの配列を持つのをやめ、構造体を使うようにした
nikic: Check for zero SplPriorityQueue extract flags earlier
- https://github.com/php/php-src/commit/022eea8be1d0a49446b1b52c3f4719717234ccd8
- ext/spl で、SplPriorityQueue::setExtractFlags() が 0 で呼ばれた際に例外を投げるようにした
nikic: Fix leaks
nikic: Remove some mentions of RECOVERABLE_ERROR in tests
- https://github.com/php/php-src/commit/2fac9d9ec1168b3345e024150ed75aeb748c8361
- テストの幾つかの箇所で E_RECOVERABLE_ERROR がありえるような記述になっている箇所を(実際現状ではありえない箇所なので)修正