<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[Comments starting with # are deprecated in Unknown on line 1是因为php-fpm.ini里有#号注释引起的。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Php/Js/Shell/Go]]></category>
<pubDate>Tue, 08 Mar 2016 15:25:23 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	总之，这种情况主要还是因为php-fpm.conf或php.ini里有#号引起的，我发现尽管php-fpm.conf里用#号能注释，但是会有影响，<br/>我之前安装的是PHP 5.6.18，在运行程序时往往运行nginx请求出现：Comments starting with &#039;#&#039; are deprecated in Unknown on line 1，<br/>后来我再次安装低版本时默认启动没有问题，再将PHP 5.6.18里的php/etc/php-fpm.conf挪动回来后再启动就发生：Comments starting with &#039;#&#039; are deprecated in Unknown on line ，原来里面有一些以#号的中文注释导致的，如：<br/><textarea name="code" class="php" rows="15" cols="100">
#request_terminate_timeout = 15&nbsp;&nbsp;#这个参数会直接杀掉php进程，然后重启php进程，这样前端nginx就会返回104: Connection reset by peer。
</textarea><br/>结论：尽量别用#号注释，php.conf和php-fpm.conf两个，一个是；注释，别用#号，另一个是尽量别用#号，一个#都不要留更好。<br/><br/>===========================================================================<br/>ErrorException [ 8192 ]: Comments starting with &#039;#&#039; are deprecated in Unknown on line 1<br/><br/>find /usr/local/php/ -name &quot;*.ini&quot; -exec sed -i -re &#039;s/^(&#92;s*)#(.*)/&#92;1;&#92;2/g&#039; &#123;&#125; &#92;;<br/>来自：http://stackoverflow.com/questions/29211550/track-down-php-error-comments-starting-with-are-deprecated-in-unknown-on-li <br/><br/><br/>8192&nbsp;&nbsp; E_DEPRECATED (integer)&nbsp;&nbsp; 运行时通知。启用后将会对在未来版本中可能无法正常工作的代码给出警告。&nbsp;&nbsp; since PHP 5.3.0<br/> 错误码来自：http://www.jb51.net/article/47793.htm<br/>应该是新版本的PHP出现的一个mysql推荐用mysqlli和pdo提示的问题，把错误关掉，再打开就好了，这块儿可能PHP还是有点问题：<br/>error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);//解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>ini_set(&#039;display_startup_errors&#039;, 0);<br/>ini_set(&#039;display_errors&#039;, 0);<br/><br/><br/><br/>I setup an Ubuntu system with nginx and php, but i noticed a strange error.<br/><br/>Every time i run something php related in the console i get this strange error:<br/><br/>PHP Deprecated:&nbsp;&nbsp;Comments starting with &#039;#&#039; are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0<br/><br/>I googled for some minutes and found why is that happening and how to fix it. The solution is open the file:<br/><br/> vi /etc/php5/cli/conf.d/ming.ini<br/><br/>and replace the “#” in the first line with “;” and that will fix the “warning”.<br/><br/><br/>使用新立得装的PHP，但是每次我在命令行下执行php脚本时都会出如下的警告信息：<br/><br/>PHP Deprecated:&nbsp;&nbsp;Comments starting with &#039;#&#039; are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0<br/><br/>上网查了一下，原来是新版本的PHP不赞成用&#039;#&#039;号作为注释符号，需要用分号&#039;;&#039;。打开这个文件，把里面的#替换成;号，问题解决！<br/><br/>来自：http://blog.163.com/mity_rui@126/blog/static/109813618201522525339369/<br/>http://www.r00t.gr/how-to-fix-php-deprecated-comments-starting-with-are-deprecated-in-etcphp5cliconf-dming-ini-on-line-1-in-unknown-on-line-0/
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] Comments starting with # are deprecated in Unknown on line 1是因为php-fpm.ini里有#号注释引起的。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>