philcook / brew-php-switcher

Brew PHP switcher is a simple shell script to switch your apache and CLI quickly between major versions of PHP. If you support multiple products/projects that are built using either brand new or old legacy PHP functionality. For users of Homebrew (or brew for short) currently only.
MIT License
962 stars 90 forks source link

Apache php module entries not added automatically #17

Open Goon3r opened 8 years ago

Goon3r commented 8 years ago

Hello,

Just installed this and noticed that as much as this script will comment out the necessary 'LoadModule' strings when swithcing PHP versions it doesnt seem to add new LoadModule lines.

I've noticed in this code there is a comment saying it will do this.. but it doesnt seem to be adding in a 'fresh': php7_module /usr/local/opt/php70/libexec/apache2/libphp7.so for me. I had to add it manually so it could be automatically commented.

Nothing major but im guessing this is a bug, probably something to look into.

philcook commented 8 years ago

@Goon3r thanks for pointing this out will look into this fresh install issue.