https://github.com/sebastianbergmann/php-code-coverage https://github.com/sebastianbergmann/php-code-coverage/blob/master/src/CodeCoverage.php
回收的支持。当变量赋值、传递时,会增加 value 的引用数, unset、return 等释放变量时再减掉引用数,减掉后如果发现 refcount 变为 0 则直接释放 value,这是变量的基本回收过程。
% jekyll s
Traceback (most recent call last):
10: from /usr/local/bin/jekyll:23:in <main>'
9: from /usr/local/bin/jekyll:23:in
load’
8: from /Library/Ruby/Gems/2.6.0/gems/jekyll-4.1.1/exe/jekyll:11:in <top (required)>'
7: from /Library/Ruby/Gems/2.6.0/gems/jekyll-4.1.1/lib/jekyll/plugin_manager.rb:52:in
require_from_bundler’
6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler.rb:107:in setup'
5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler/runtime.rb:26:in
setup’
4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler/runtime.rb:26:in map'
3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/forwardable.rb:230:in
each’
2: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/forwardable.rb:230:in each'
1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler/runtime.rb:31:in
block in setup’
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler/runtime.rb:319:in check_for_activated_spec!': You have already activated public_suffix 4.0.6, but your Gemfile requires public_suffix 3.1.1. Prepending
bundle exec` to your command may solve this. (Gem::LoadError)
% bundle update