<?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>Programming Web Site DataBases</title>
	<atom:link href="http://www.pwsdb.com/pgm/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.pwsdb.com/pgm</link>
	<description>FREE source code, tutorials, tips, quizes, tests, notes</description>
	<lastBuildDate>Thu, 09 Sep 2010 05:47:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Serious PHP 5.3 Problems</title>
		<link>http://www.pwsdb.com/pgm/?p=141</link>
		<comments>http://www.pwsdb.com/pgm/?p=141#comments</comments>
		<pubDate>Thu, 09 Sep 2010 04:06:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Advanced]]></category>

		<guid isPermaLink="false">http://www.pwsdb.com/pgm/?p=141</guid>
		<description><![CDATA[
 "PHP 5.3 was released a few months ago, and along with it come many problems due to the PHP authors' decisions to backport many PHP 6 features into 5.3 and deprecate several oft-required functions.
In so doing, they broke many things..." 

 They did not just add new warnings of depreciated functions, they "broke" things. [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li style="color:blue"> "PHP 5.3 was released a few months ago, and along with it come many problems due to the PHP authors' decisions to backport many PHP 6 features into 5.3 and deprecate several oft-required functions.<br />
In so doing, they broke many things..." </li>
</ul>
<h5> They did not just add new warnings of depreciated functions, they "broke" things.  Thank you php! </h5>
<p>"Zen-Cart v1.3.8a is NOT compatible with PHP 5.3."<br />
"PHP 5.3 appears to break CMSMS's CMSModule->Lang() function."<br />
Drupal: "[Some] errors are pretty easy to fix, however, there are some others where I'm not sure."<br />
"Joomla does not work properly under PHP 5.3.  It appears to work but particularly the JHtml class is completely broken."</p>
<p>"I recently upgraded my Production server to PHP 5.3. I’m not quite sure of the reason anymore.  Whatever my original reason, after I got 5.3 installed on my server, it started slowly hemorrhaging memory and occasionally freezing up, always during the middle of the night while I slept of course."</p>
<p>"Assigning the return value of new by reference is deprecated"<br />
 The "mysql_connect()" and / or "mysql_select_db()" functions are no longer reliable! They don't always work!  [one admin reported a random connection failure!]<br />
"...most of the users cannot even dig this far and just mention that they are getting a 500 or some sort of script timeout error."</p>
<p>A close look at PHP MySQL driver code indicates that mysql_connect() function uses mysql_real_connect() to connect to MySQL. The API mysql_real_connect() is an API which comes from MySQL dll (MySQL development team and is part of MySQL database installation). So this means the support for IPV6 in PHP MySQL driver is not possible unless there is a support for IPV6 in MySQL database. So the limitation (or no support for IPV6 or whatever word may be used to describe this situation) is coming from MySQL database limitation. So now it is clear that this is not a PHP bug in the sense that nothing can be changed in PHP code base to fix it.</p>
<p>A close inspection of MySQL code reveals that the function mysql_real_connect() actually tries to connect to only the first IP address returned for the hostname [localhost or 127.0.0.1] and if this fails, no further attempt to connect using other IP address associated with same host name is made. [the other one] This can be fixed and I believe a patch is already lying in some development branch of MySQL and please follow MySQL release to know which version has this fix integrated. I do not have any idea about that. But an important thing is that this bug can surface on any OS where you have above condition satisfied for the host file.</p>
<p>You cannot un-install 5.3 and then install 5.2 ... unless ...<br />
"If you can get it through the repository,"<br />
That sounds like a "no, 'cos you won't get it through the repository"</p>
<p>you cannot specify 5.2 vs 5.3<br />
an, ubuntu, example of the command is<br />
  apt-get install php5 libapache2-mod-php5  </p>
<p>If you are on an old-enough version of linux to have php 5.2 or less before upgrading to 5.3 then you could theoretically revert back, but one admin, I read about on a google search, who tried it suffered several failures and restores of his entire server before he finally "got it right".</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pwsdb.com/pgm/?feed=rss2&amp;p=141</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
