<?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>Defvayne23.com &#187; Bug</title>
	<atom:link href="http://defvayne23.com/tag/bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://defvayne23.com</link>
	<description>A blog by John Hoover</description>
	<lastBuildDate>Fri, 27 Jan 2012 22:10:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP and the broken is_file()</title>
		<link>http://defvayne23.com/2010/01/14/php-and-the-broken-is_file/</link>
		<comments>http://defvayne23.com/2010/01/14/php-and-the-broken-is_file/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 19:15:57 +0000</pubDate>
		<dc:creator>John Hoover</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.defvayne23.com/?p=35</guid>
		<description><![CDATA[Working on Hospice of Wichita Falls I used my image resize function that&#8217;s built into the my CMS. Was having trouble with the gallery and the images not showing up. After some short debugging, realized the code was dying when I tried to make sure the file existed using is_file before I passed it onto [...]]]></description>
			<content:encoded><![CDATA[<p>Working on Hospice of Wichita Falls I used my image resize function that&#8217;s built into the my CMS. Was having trouble with the gallery and the images not showing up. After some short debugging, realized the code was dying when I tried to make sure the file existed using is_file before I passed it onto GD. I spent hours looking at the path for the file and making sure everything was spelled correctly and that the file in fact did exist.<span id="more-35"></span></p>
<p>After spending most of a day on the issue I decided to look at the php.net documentation of the file. What I found in the comments was the root of my problem. Apparently the function is_file can not read files larger than ~2.1 billion bytes. My images where only on average 1MB. I wound up removing that code. Need to look into if file_exists() has the same problem.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fdefvayne23.com%2F2010%2F01%2F14%2Fphp-and-the-broken-is_file%2F&amp;title=PHP%20and%20the%20broken%20is_file%28%29" id="wpa2a_2"><img src="http://defvayne23.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://defvayne23.com/2010/01/14/php-and-the-broken-is_file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
