added some tests based on bug #64395
Merge branch 'PHP-5.5'

* PHP-5.5:
  added some tests based on bug #64395