Add some logging to php.rb