php version detection

These patches determine the version of php installed and select the ioncube version based on that.