A fix for the initial problem reported here landed in php 7.1.3. In any case, you should not run kernels earlier than the kernel headers used to build the complete distribution, bad things like this will happen, there may be no fallback for the absent syscalls when running old kernels.