How is it that php-ast is listed in phpinfo() but not when running $ php -m to list modules?
Working on installing phan, the static analyzer. I use MAMP Pro and have verified that $ which php returns the desired php version within MAMP. I have updated the php.ini file, and running phpinfo() displays AST as expected.
When I run vendor/bin/phan without the flag, I still get the warning that AST should be installed.
I have run it once with the flag to use the polypill parser, and phan works as expected.
- Getting started with Phan (see also README for slightly different instructions): https://github.com/phan/phan/wiki/Getting-Started
- PHP-AST Project: https://github.com/nikic/php-ast#installation
- Changing PHP: https://gist.github.com/irazasyed/5987693
- Install autoconf to overcome related problem: https://gist.github.com/anunay/7698181
Note: Answers elsewhere using --with-config-file-path don't seem to be working for me as I get a list of valid PHP console commands and it is not one of them: PHP module is shown in phpinfo(), but not php -m

