首页 > 代码库 > PHP低级错误!
PHP低级错误!
语法报错:
[root@xxxx php5]# /etc/init.d/php-fpm restart
acefully shutting down php-fpm . done
Starting php-fpm [19-Sep-2016 14:48:36] NOTICE: PHP message: PHP Deprecated: Comments starting with ‘#‘ are deprecated in /usr/local/php5/php.ini on line 1833 in Unknown on line 0
[19-Sep-2016 14:48:36] NOTICE: PHP message: PHP Deprecated: Comments starting with ‘#‘ are deprecated in /usr/local/php5/php.ini on line 1834 in Unknown on line 0
done
原因:习惯了#当做注释,忽略了一些注释方式用的是;//或者其他。
[root@xxxx ~]# /usr/local/php5/bin/php --version
PHP 5.4.38 (cli) (built: Jul 13 2016 16:57:59)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies
[root@loganalyzer ~]#
解决:将php.ini 添加的东西注释修改成;即可!
[root@xxxx php5]# /etc/init.d/php-fpm restart
Gracefully shutting down php-fpm . done
Starting php-fpm done
[root@loganalyzer php5]#
本文出自 “renzhiyuan@chinacfsc.com” 博客,转载请与作者联系!
PHP低级错误!