<?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>h3x.no &#187; wtf</title>
	<atom:link href="http://h3x.no/tag/wtf/feed" rel="self" type="application/rss+xml" />
	<link>http://h3x.no</link>
	<description>Tor Henning Ueland`s thoughts about technology and other stuff</description>
	<lastBuildDate>Wed, 25 Aug 2010 21:22:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>A lesson in PHP stupidity</title>
		<link>http://h3x.no/2010/02/13/a-lesson-in-php-stupidity</link>
		<comments>http://h3x.no/2010/02/13/a-lesson-in-php-stupidity#comments</comments>
		<pubDate>Sat, 13 Feb 2010 12:16:50 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wtf]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=182</guid>
		<description><![CDATA[1:  post_max_size &#62;= 2GB makes PHP overflow, resulting in a negative post_max_size: &#8220;POST Content-Length of 0 bytes exceeds the limit of -2147483648 bytes&#8221; 2: defining post_max_size (etc) with MB instead of M causes PHP to only read the last character, in other words 10MB becomes 10 bytes . How hard can it be to either [...]]]></description>
			<content:encoded><![CDATA[<p>1:  post_max_size &gt;= 2GB makes PHP overflow, resulting in a negative post_max_size:<br />
&#8220;POST Content-Length of 0 bytes exceeds the limit of -2147483648 bytes&#8221;</p>
<p>2: defining post_max_size (etc) with MB instead of M causes PHP to only read the last character, in other words 10MB becomes 10 bytes . How hard can it be to either use the first character or even better, both?</p>
<p><em>(note 1: this can be avoided by actually reading the manual, but this  should have been handled better from PHP`s side IMO)</em></p>
<p><em>(Note 2: This experience come from the latest stable PHP version in SLES 10SP2, </em><em>hopefully this has been fixed in later releases.)</em></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://h3x.no/2010/02/13/a-lesson-in-php-stupidity/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://h3x.no/2010/02/13/a-lesson-in-php-stupidity&amp;title=A+lesson+in+PHP+stupidity" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://h3x.no/2010/02/13/a-lesson-in-php-stupidity&amp;title=A+lesson+in+PHP+stupidity" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=A+lesson+in+PHP+stupidity&amp;body=Link: http://h3x.no/2010/02/13/a-lesson-in-php-stupidity (sent via shareaholic)%0D%0A%0D%0A----%0D%0A 1%3A%C2%A0%20post_max_size%20%26gt%3B%3D%202GB%20makes%20PHP%20overflow%2C%20resulting%20in%20a%20negative%20post_max_size%3A%0D%0A%22POST%20Content-Length%20of%200%20bytes%20exceeds%20the%20limit%20of%20-2147483648%20bytes%22%0D%0A%0D%0A2%3A%20defining%20post_max_size%20%28etc%29%20with%20MB%20instead%20of%20M%20causes%20PHP%20to%20only%20read%20the%20last%20character%2C%20in%20other%20words%2010MB%20becomes%2010%20bytes%20.%20" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://h3x.no/2010/02/13/a-lesson-in-php-stupidity&amp;title=A+lesson+in+PHP+stupidity" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://h3x.no/2010/02/13/a-lesson-in-php-stupidity&amp;title=A+lesson+in+PHP+stupidity" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://h3x.no/2010/02/13/a-lesson-in-php-stupidity" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=A+lesson+in+PHP+stupidity+-+http://b2l.me/aj7cf9&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2010/02/13/a-lesson-in-php-stupidity/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
