Php fix segfault in tests