This is post for Andy Youens and anyone looking to compile PHP Extensions on IBM i. The first thing i would do is get GCC on the IBM i by following Tony’s guide here: http://yips.idevcloud.com/wiki/index.php/PASE/GCC . GCC is the compiler system that can take a PHP extension source code, which are written in C, and compile it into an .SO file that can be added via PHP.ini. In Andy’s case he want’s xdebug and you can get the latest source code here: http://xdebug.org/files/xdebug-2.3.3.tgz . Or find other versions here: http://xdebug.org/download.php .
Why can’t we just use any old binary?
The source code has to be compiled to the processor and the operating system you’re running it on. In the case of IBM i , the PASE environment is basically AIX (IBM’s flavor of UNIX) and it runs on IBM’s Power processor.
Binary compiled for PHP 7.1
Further reading if you need more information to get strarted: