<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Movoin Studio &#187; FLEAPHP</title>
	<atom:link href="http://www.movoin.com/tag/fleaphp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.movoin.com</link>
	<description>专注Web开发, Python和Php技术 &#38;&#38; 关注开源及移动应用</description>
	<lastBuildDate>Wed, 14 Dec 2011 04:02:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>FLEAPHP运行在PHP5.3+上的报错的解决办法</title>
		<link>http://www.movoin.com/fleaphp-in-php5-3.html</link>
		<comments>http://www.movoin.com/fleaphp-in-php5-3.html#comments</comments>
		<pubDate>Thu, 09 Dec 2010 08:08:42 +0000</pubDate>
		<dc:creator>Allen</dc:creator>
				<category><![CDATA[程序开发]]></category>
		<category><![CDATA[FLEAPHP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[框架]]></category>

		<guid isPermaLink="false">http://www.movoin.com/?p=61</guid>
		<description><![CDATA[(注：本文所提到的解决办法只针对FLEAPHP本身。) 最常见的两个提示信息是： 1. Assigning the return value of new by reference is deprecated. 2. Function set_magic_quotes_runtime() is deprecated. 3. Notice: date_default_timezone_set() [function.date-default-timezone-set]: Timezone ID &#8216;Asia/ShangHai&#8217; is invalid in YOUR FLEA.PHP on line 834. 其实意思都差不多，就是某某方法或函数已经被废弃不再使用了。所以解决办法也很简单，那我就不用呗！呵呵。 解决第一个提示信息： 第一个提示信息是由于FLEA使用了大量的引用&#8221;=&#038;&#8221;，而这种方法已经被PHP5.3废弃了，因为默认已经是引用不是复制。如果想要复制则需要像这样：“$a = clone $b;”，详细请移步：http://php.net/manual/en/language.oop5.cloning.php 解决办法：用你的IDE或者是批量替换软件把所有文件的所有&#8221;=&#038;&#8221;替换为&#8221;=&#8221;就可以了。 解决第二个提示信息： 第二个提示信息是由于FLEA.php这个文件的887行，有个 set_magic_quotes_runtime(0); 它也被5.3废弃了，你可以选择直接去掉它，也可以像我这样： if (substr(PHP_VERSION, 2, 1) !== &#8217;3&#8242;) { set_magic_quotes_runtime(0); } 第三个提示信息其实明眼上看不出来，但是当我输出一个echo date_default_timezone_get [...]]]></description>
			<content:encoded><![CDATA[<p>(注：本文所提到的解决办法只针对FLEAPHP本身。)</p>
<p>最常见的两个提示信息是：</p>
<p>1. Assigning the return value of new by reference is deprecated.</p>
<p>2. Function set_magic_quotes_runtime() is deprecated.</p>
<p>3. Notice: date_default_timezone_set() [function.date-default-timezone-set]: Timezone ID &#8216;Asia/ShangHai&#8217; is invalid in YOUR FLEA.PHP on line 834.</p>
<p>其实意思都差不多，就是某某方法或函数已经被废弃不再使用了。所以解决办法也很简单，那我就不用呗！呵呵。<br />
<span id="more-61"></span><br />
解决第一个提示信息：</p>
<p>第一个提示信息是由于FLEA使用了大量的引用&#8221;=&#038;&#8221;，而这种方法已经被PHP5.3废弃了，因为默认已经是引用不是复制。如果想要复制则需要像这样：“$a = clone $b;”，详细请移步：http://php.net/manual/en/language.oop5.cloning.php</p>
<p>解决办法：用你的IDE或者是批量替换软件把所有文件的所有&#8221;=&#038;&#8221;替换为&#8221;=&#8221;就可以了。</p>
<p>解决第二个提示信息：</p>
<p>第二个提示信息是由于FLEA.php这个文件的887行，有个 set_magic_quotes_runtime(0); 它也被5.3废弃了，你可以选择直接去掉它，也可以像我这样：</p>
<p>if (substr(PHP_VERSION, 2, 1) !== &#8217;3&#8242;) {<br />
    set_magic_quotes_runtime(0);<br />
}</p>
<p>第三个提示信息其实明眼上看不出来，但是当我输出一个echo date_default_timezone_get ();的时候你就会发现，Asia/Chongqing与Asia/ShangHai的不同了，是的Shanghai而不是ShangHai，详细请移步：http://cn.php.net/manual/en/timezones.asia.php</p>
<p>OK，这样就搞掂了，其实FLEAPHP还是很不错的~~~</p>
<h3  class="related_post_title">既然来了，也许你也会想看一下：</h3><ul class="related_post"><li>2011/03/23 -- <a href="http://www.movoin.com/yii-framework-source-code-to-read-notes-1.html" title="Yii Framework 源码阅读笔记(述)">Yii Framework 源码阅读笔记(述)</a></li><li>2011/05/06 -- <a href="http://www.movoin.com/php-weather-class.html" title="PHP抓取天气预报">PHP抓取天气预报</a></li><li>2010/11/24 -- <a href="http://www.movoin.com/my-confusion.html" title="我最近的困惑">我最近的困惑</a></li><li>2010/10/18 -- <a href="http://www.movoin.com/html5-javascript-framework-for-mobile-applications.html" title="手机应用的HTML5 JavaScript框架">手机应用的HTML5 JavaScript框架</a></li><li>2010/09/07 -- <a href="http://www.movoin.com/10-useful-frameworks-to-develop-html-based-webapps-for-touch-devices.html" title="10款基于Html的移动应用开发框架">10款基于Html的移动应用开发框架</a></li><li>2010/08/20 -- <a href="http://www.movoin.com/ckeditor-and-ckfinder-tips.html" title="CKEditor + CKFinder 整合笔记">CKEditor + CKFinder 整合笔记</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.movoin.com/fleaphp-in-php5-3.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

