I\'m using Ubuntu 13.10 and php is installed and working perfectly. But, when I type php in the terminal, it lists a lot of errors (and after that, it goes to w
php
You should try a reinstall through apt-get
sudo apt-get remove php sudo apt-get install php
In most cases it is enough to just reinstall the offending extension.
sudo apt-get remove php5-snmp