需要将php降级到5.2.x,所以我遵循了这个教程:http: //andreys.info/blog/2010-03-25/compile-php-5-2-on-osx-10-6-snow-leopard #评论-631
我在雪豹10.6.4上安装了xcode.
所以我编译了php5.2.x并完成了教程.在htp:// localhost的浏览器中加载phpinfo()说5.2.x,太棒了!但是,终端命令"php --version"说5.3.x ??
在编译/安装php5.2.x时,新的模块文件替换了php5.3.x模块:/usr/libexec/apache2/libphp5.so