php 错误

Php运行的时候,提示下列错误

PHP Deprecated: Comments starting with ‘#’ are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0

后google解决,纯记录。

#注释已经去掉,换成分号就可以了

find /etc/php5/cli/conf.d/ -name “*.ini” -exec sed -i -re ‘s/^(\s*)#(.*)/\1;\2/g’ {} \;

Leave a Reply

Your email address will not be published. Required fields are marked *

*