Fix SPL objects initialization checks
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fix SPL objects initialization checks