<?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>The Developer Day &#187; upgrade</title>
	<atom:link href="http://www.thedeveloperday.com/tag/upgrade/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thedeveloperday.com</link>
	<description>Staying Curious</description>
	<lastBuildDate>Tue, 27 Jul 2010 17:33:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PHP5 upgrade &#8211; DLL &amp; version issues</title>
		<link>http://www.thedeveloperday.com/php5-upgrade-dll-not-found/</link>
		<comments>http://www.thedeveloperday.com/php5-upgrade-dll-not-found/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 07:29:12 +0000</pubDate>
		<dc:creator>Žilvinas Šaltys</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Recently I tried to update my PHP 5.2.0 version to 5.2.3 on my Windows XP machine. After the upgrade I found that phpinfo() would still show the previous version of PHP 5.2.0. Though running the &#8220;php -version&#8221; at the command line would work fine saying that my php version is 5.2.3. Later that day I [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I tried to update my PHP 5.2.0 version to 5.2.3 on my Windows XP machine. After the upgrade I found that phpinfo() would still show the previous version of PHP 5.2.0. Though running the &#8220;php -version&#8221; at the command line would work fine saying that my php version is 5.2.3. Later that day I also noticed that I&#8217;m unable to connect to MySQL.</p>
<blockquote><p><em>Fatal Error: undefined function mysql_connect()</em></p></blockquote>
<p>Though, running php -m at the command line would say, that mysql extension is ready and loaded. And phpinfo() would show it as not loaded. After checking apache&#8217;s logs/error.txt i found that php is unable to load quite a few of the php.ini enabled extensions.</p>
<blockquote><p><em>PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;c:\\php\\ext\\php_curl.dll&#8217; &#8211; The specified procedure could not be found.\r\n in Unknown on line 0<br />
PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;c:\\php\\ext\\php_mcrypt.dll&#8217; &#8211; The specified module could not be found.\r\n in Unknown on line 0<br />
PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;c:\\php\\ext\\php_mhash.dll&#8217; &#8211; The specified procedure could not be found.\r\n in Unknown on line 0<br />
PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;c:\\php\\ext\\php_mysql.dll&#8217; &#8211; The specified procedure could not be found.\r\n in Unknown on line 0<br />
PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;c:\\php\\ext\\php_mysqli.dll&#8217; &#8211; The specified procedure could not be found.\r\n in Unknown on line 0<br />
PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;c:\\php\\ext\\php_soap.dll&#8217; &#8211; The specified procedure could not be found.\r\n in Unknown on line 0<br />
PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;c:\\php\\ext\\php_xmlrpc.dll&#8217; &#8211; The specified procedure could not be found.\r\n in Unknown on line 0</em></p></blockquote>
<p>I started googling on the matter to find out what went wrong with the upgrade. After reading a <a href="http://bugs.php.net/bug.php?id=24621" title="Unable to load php_mysql.dll">PHP bug report</a> I realized that it might have something to do with my windows/system32 dlls. Then I found php5ts.dll in the windows/system32 directory.</p>
<p>It became clear to me, that PHP CLI version was using the the DLL&#8217;s from the php directory and PHP as an Apache module was loading them from the windows\system32 directory. I deleted all of the DLLs that are in the PHP directory from the windows/system32 directory and added PHP directory path to PATH environment variable and everything seems to work fine now.</p>
<p>My personal advice is not to put any of PHP DLL&#8217;s in the windows/system32 directory. You may really forget you have them there and become confused why things have started acting strangely.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedeveloperday.com/php5-upgrade-dll-not-found/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
