A ssegmentation fault in PHP is often the cause of a PHP extensions written in C, and more specifically one with a memory management error. However, I have encountered my share of segfaults during network programming, but I pair these with PHP's pthreads extension, so it would explain why. It is also possible to encounter segfaults from infinite recursion, but the root cause is still more or less the same - something weird in memory management.
Below I compile with -g
flag to enable PHP's GD extension, -t linux64
because I am running on a Ubuntu server, and -P5
to install PM5's dependencies and the right versions for those dependencies.
YMMY. See PHP-Binaries for more flags and info.
git clone https://github.com/pmmp/PHP-Binaries.git
cd PHP-Binaries