<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Chris&#039; Blog</title>
	<atom:link href="http://www.cs278.org/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cs278.org/blog</link>
	<description>“A metal loving, web developing, open source contributor.”</description>
	<lastBuildDate>Wed, 03 Aug 2011 06:23:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Comment on PHP function: is_serialized() by Tbag</title>
		<link>http://www.cs278.org/blog/2009/10/23/php-function-is_serialized/comment-page-1/#comment-99004</link>
		<dc:creator>Tbag</dc:creator>
		<pubDate>Wed, 03 Aug 2011 06:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.cs278.org/blog/?p=502#comment-99004</guid>
		<description>This is ok too.  
&lt;code&gt;
function is_serialized($val){
        if (!is_string($val)){ return false; }
        if (trim($val) == &quot;&quot;) { return false; }
        if (preg_match(&quot;/^(i&#124;s&#124;a&#124;o&#124;d):(.*);/si&quot;,$val)) { return true; }
        return false;
 }&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>This is ok too.<br />
<code><br />
function is_serialized($val){<br />
        if (!is_string($val)){ return false; }<br />
        if (trim($val) == "") { return false; }<br />
        if (preg_match("/^(i|s|a|o|d):(.*);/si",$val)) { return true; }<br />
        return false;<br />
 }</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP function: is_serialized() by Lars</title>
		<link>http://www.cs278.org/blog/2009/10/23/php-function-is_serialized/comment-page-1/#comment-86793</link>
		<dc:creator>Lars</dc:creator>
		<pubDate>Wed, 18 May 2011 15:20:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cs278.org/blog/?p=502#comment-86793</guid>
		<description>function is_serialized($str){
		$st[&quot;array&quot;]=&quot;a}&quot;;$st[&quot;object&quot;]=&quot;O}&quot;;$st[&quot;string&quot;]=&quot;s;&quot;;$st[&quot;integer&quot;]=&quot;i;&quot;;
		$st[&quot;float&quot;]=&quot;d;&quot;;$st[&quot;bool&quot;]=&quot;b;&quot;;
		foreach($st as $t =&gt; $p){if(preg_match(&quot;/^&quot;.$p[0].&quot;:.*\\&quot;.$p[1].&quot;$/is&quot;,$str))return $t;}
		return false;
	}

check for NULL makes no sense as if you expect a null, the string is whether null, &quot;&quot; or deserializable.</description>
		<content:encoded><![CDATA[<p>function is_serialized($str){<br />
		$st["array"]=&#8221;a}&#8221;;$st["object"]=&#8221;O}&#8221;;$st["string"]=&#8221;s;&#8221;;$st["integer"]=&#8221;i;&#8221;;<br />
		$st["float"]=&#8221;d;&#8221;;$st["bool"]=&#8221;b;&#8221;;<br />
		foreach($st as $t =&gt; $p){if(preg_match(&#8220;/^&#8221;.$p[0].&#8221;:.*\\&#8221;.$p[1].&#8221;$/is&#8221;,$str))return $t;}<br />
		return false;<br />
	}</p>
<p>check for NULL makes no sense as if you expect a null, the string is whether null, &#8220;&#8221; or deserializable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP function: is_serialized() by bunyamin</title>
		<link>http://www.cs278.org/blog/2009/10/23/php-function-is_serialized/comment-page-1/#comment-83977</link>
		<dc:creator>bunyamin</dc:creator>
		<pubDate>Sun, 24 Apr 2011 09:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.cs278.org/blog/?p=502#comment-83977</guid>
		<description>I have just come up with an another solution which seems better, here is the link: http://stackoverflow.com/questions/1369936/php-check-to-see-if-a-string-is-serialized</description>
		<content:encoded><![CDATA[<p>I have just come up with an another solution which seems better, here is the link: <a href="http://stackoverflow.com/questions/1369936/php-check-to-see-if-a-string-is-serialized" rel="nofollow">http://stackoverflow.com/questions/1369936/php-check-to-see-if-a-string-is-serialized</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP function: is_serialized() by bunyamin</title>
		<link>http://www.cs278.org/blog/2009/10/23/php-function-is_serialized/comment-page-1/#comment-83976</link>
		<dc:creator>bunyamin</dc:creator>
		<pubDate>Sun, 24 Apr 2011 09:25:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.cs278.org/blog/?p=502#comment-83976</guid>
		<description>I appreciate you share the function, it is really useful</description>
		<content:encoded><![CDATA[<p>I appreciate you share the function, it is really useful</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP function: is_serialized() by rand</title>
		<link>http://www.cs278.org/blog/2009/10/23/php-function-is_serialized/comment-page-1/#comment-77930</link>
		<dc:creator>rand</dc:creator>
		<pubDate>Mon, 14 Mar 2011 15:26:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.cs278.org/blog/?p=502#comment-77930</guid>
		<description>Great function and it saves me a lot of time. I think similar function should be included in PHP core. Thanks for sharing!</description>
		<content:encoded><![CDATA[<p>Great function and it saves me a lot of time. I think similar function should be included in PHP core. Thanks for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP function: is_serialized() by Alexandre</title>
		<link>http://www.cs278.org/blog/2009/10/23/php-function-is_serialized/comment-page-1/#comment-74163</link>
		<dc:creator>Alexandre</dc:creator>
		<pubDate>Tue, 15 Feb 2011 12:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.cs278.org/blog/?p=502#comment-74163</guid>
		<description>thank you!

Funcionou muito bem pra mim, obrigado!</description>
		<content:encoded><![CDATA[<p>thank you!</p>
<p>Funcionou muito bem pra mim, obrigado!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SVN RSS Feeds by Polycarbonate</title>
		<link>http://www.cs278.org/blog/2007/01/25/svn-rss-feeds/comment-page-1/#comment-66383</link>
		<dc:creator>Polycarbonate</dc:creator>
		<pubDate>Wed, 22 Dec 2010 19:10:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.cs278.org/blog/2007/01/25/svn-rss-feeds/#comment-66383</guid>
		<description>i think that RSS FEEDS should also be included on the list of the best inventions because it makes life easier for bloggers like us .-;</description>
		<content:encoded><![CDATA[<p>i think that RSS FEEDS should also be included on the list of the best inventions because it makes life easier for bloggers like us .-;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sharing photos from N900 to Gallery2 by Ben</title>
		<link>http://www.cs278.org/blog/2010/02/01/sharing-photos-from-n900-to-gallery2/comment-page-1/#comment-62365</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Sun, 28 Nov 2010 21:24:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.cs278.org/blog/?p=522#comment-62365</guid>
		<description>I&#039;d missed enabling the remote module in Gallery2, thanks for the tips!</description>
		<content:encoded><![CDATA[<p>I&#8217;d missed enabling the remote module in Gallery2, thanks for the tips!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on One enormous footer by Brandon</title>
		<link>http://www.cs278.org/blog/2010/01/31/one-enormous-footer/comment-page-1/#comment-52013</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Mon, 13 Sep 2010 23:31:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.cs278.org/blog/?p=518#comment-52013</guid>
		<description>WOW.  That could be an essay Chris haha.</description>
		<content:encoded><![CDATA[<p>WOW.  That could be an essay Chris haha.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Broadcast Ping by zyndarius</title>
		<link>http://www.cs278.org/blog/2007/09/22/broadcast-ping/comment-page-1/#comment-45702</link>
		<dc:creator>zyndarius</dc:creator>
		<pubDate>Sat, 12 Jun 2010 19:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.cs278.org/blog/2007/09/22/broadcast-ping/#comment-45702</guid>
		<description>Nice tip.
Thank you very much =)</description>
		<content:encoded><![CDATA[<p>Nice tip.<br />
Thank you very much =)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

