LoginSignup
2
0

More than 5 years have passed since last update.

php-master-changes 2018-09-19

Posted at

2018-09-19

dstogov: Class constants and default property values can't be IS_REFERENCE anymore.

crhg: Fix bug #75533: array_reduce is slow when $carry is large array

  • https://github.com/php/php-src/commit/ab6c45f5249d077463c1876d7cf09a11f04240fa
  • array_reduce() のコールバック第一引数へ大きな配列が入る際に遅い、という問題の修正
  • crhg の人が出してた奴
  • 当初は zval_ptr_dtor() の位置を移動する PR だったが、マージの際に zval_ptr_dtor(&result) を潰して、ZVAL_COPY(&args[0], &result) のかわりに ZVAL_COPY_VALUE(&args[0], &result) を使うようになってる
  • ZVAL_COPY() と ZVAL_COPY_VALUE() の違いは、後者はコピーの際に参照カウントを足さないというもの
  • 参照カウント減らしといてコールバック内の操作でのコピーを避ける、かな?後でもう少し見る

petk: Remove unused methods-on-non-objects-nested.inc

nikic: Fixed bug #76901

dstogov: Improve ZEND_VM_SMART_BRANCH()

dstogov: Remove zend_hash_exists()

nikic: Fix intermittent failures in mysqli_stmt_bind_result_format.phpt

nikic: Fix getColumnMeta() test

dstogov: Remove zend_hash_exists()

dstogov: Micro-optimization

dstogov: Use zend_hash_find() instead of zend_hash_exists()

dstogov: Turn zend_hash_exists() into inline function

dstogov: Drop unused variable

dstogov: Improved hash copying

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