For me who is used to having REPL as an essential tools for development, Boris is a must have when developing PHP web app.
But after updating to MAMP 2.0 and PHP 5.5.3, it stopped working. There is no error output, the REPL just doesn’t appear.
After several hours of googling, I found out the reason is that MAMP’s PHP is built with out pcntl and readline support, which boris depends on. To get those features, there is no other way then manually compile and add them to MAMP’s PHP installation.
First, we need to download the source code for MAMP’s PHP. In my case it’s PHP 5.5.3
After that change the folder name to php and move it include folder in MAMP’s PHP 5.5.3 folder
Then, use the configure it to prepare all the necessary header files
Now, we process to build the pcntl and readline extension.
But before that, we must set some flags so that they are compiled with dual 32bit and 64bit architecture as MAMP PHP was built this way.
Now, what left is compiling the extensions, move the compiled .so files to MAMP’s PHP extensions directory:
Finally edit the MAMP’s PHP php.ini file to include those extensions
Now we are done, just install boris if you haven’t done so and enjoy playing PHP code in the terminal