primitive test fixes
Merge branch 'PHP-5.6'

* PHP-5.6:
  primitive test fixes