<?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[php5.3.13向PHP 5.4.4-12迁移时出现Non-static method should not be called statically的方法解决。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Php/Js/Shell/Go]]></category>
<pubDate>Wed, 06 Feb 2013 08:46:55 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	php5.3.13向PHP 5.4.4-12迁移时出现Non-static method should not be called statically的问题，在网上搜索了一下解决方法：<br/>Strict Standards: Non-static method should not be called statically<br/>严格的标准：非静态方法不应该被静态调用<br/>我的解决办法：<br/>1）修改PHP.ini文件里的配置，发现问题依旧。<br/>error_reporting = E_ALL &#124; E_STRICT<br/>修改为<br/>error_reporting = E_ALL &amp; ~E_NOTICE<br/>2）打开Urlrewrite重写的index.php发现这儿：<br/><textarea name="code" class="php" rows="15" cols="100">
error_reporting(E_ALL ^ E_NOTICE);
ini_set(&#039;display_startup_errors&#039;, 0);
ini_set(&#039;display_errors&#039;, 0);
</textarea><br/>于是修改为：<br/><textarea name="code" class="php" rows="15" cols="100">
Error_reporting(0);
</textarea><br/>于是就不报错了，这只是一个临时解决办法，最好是按PHP5.4的严格编码来写。<br/><br/>以下来自网络：<br/>原因是 程序编码 不符合运行环境<br/>临时解决办法是：<br/><br/>如果有权限修改 PHP.INI<br/>修改文件 php.ini中设置：<br/>error_reporting = E_ALL &#124; E_STRICT<br/>显示那些不符合编码规范的警告（coding standards warnings）。<br/>如果出于调试需要，应改为 error_reporting = E_ALL &amp; ~E_NOTICE<br/><br/>如果你没有修改PHP.INI文件的权限<br/>也可以修改程序代码<br/>在程序最前 加上<br/>error_reporting(E_ERROR &#124; E_WARNING &#124; E_PARSE);<br/><br/><br/><br/>解决方法如下：<br/><br/>1, 打开 xampp/php/php.ini 配置文件， 把 error_reporting = E_ALL &#124; E_STRICT 替换成 error_reporting = E_ALL &amp; ~E_STRICT&nbsp;&nbsp;，把 display_errors = On 替换成 display_errors = Off ，然后保存，重启服务器，刷新页面。<br/><br/>2，也可打开joomla 文件夹下的 configuration.php， 把error_reporting = &quot;-1&quot; 替换成 error_reporting = &quot;-6138&quot;， 然后保存，这种方法治标不治本。<br/><br/>3，修改joomla文件夹下的 htaccess.txt 文件， 打开文件，找个合适的位置，如最后面，添加如下代码：<br/># supress php errors<br/>php_flag display_startup_errors off<br/>php_flag display_errors off<br/>php_flag html_errors off<br/>php_value docref_root 0<br/>php_value docref_ext 0<br/><br/>然后 文件-另存为 ，选好保存路径， 文件名为：.htaccess ， 文件类型变为：所有文件&nbsp;&nbsp;d,保存。<br/><br/>来源：http://wordpress.facesoho.com/program/non-static-method-should-not-be-called-statically.html<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://wuxiong8665.blog.163.com/blog/static/93512201152210481436/<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.laruence.com/2012/06/14/2628.html
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] php5.3.13向PHP 5.4.4-12迁移时出现Non-static method should not be called statically的方法解决。]]></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>