Add more tests for __debugInfo() and fix leak
Merge branch 'PHP-5.6'

* PHP-5.6:
  Add more tests for __debugInfo() and fix leak