I’m using MAMP Version 2.0.5 (2.0.5) on Mac OS X Lion 10.7.3. When I try to use php’s interactive mode by
/Applications/MAMP/bin/php/php5.3.6/bin/php -a
it displays Interactive mode enabled and then hangs. No commands work.
This forum post says others have found it broken. Has anyone found a fix?
It works fine.
Type this after you see
Interactive mode enabled:and press ctrl+d.
testwill be printed.Also see this question: mac os php intratactive mode has no prompt
To use the default
phpversion that is shipped with OS X, you can do this in a terminal: