Extend segfault workaround to PHP versions below 5.4.
Merge pull request #313 from bantu/more-coverage-segfault

Extend segfault workaround to PHP versions below 5.4.

* bantu/more-coverage-segfault:
  Extend segfault workaround to PHP versions below 5.4.