fix for segfault in LebeditTest.php on PHP5.5