Fix coredump when phplib compile fail