<?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"
	>
<channel>
	<title>Comments on: Does PHP 5 Hurt PHP?</title>
	<atom:link href="http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/</link>
	<description>The Art of Being Open</description>
	<pubDate>Sat, 11 Oct 2008 12:25:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Edward W</title>
		<link>http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-36078</link>
		<dc:creator>Edward W</dc:creator>
		<pubDate>Thu, 01 Nov 2007 22:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-36078</guid>
		<description>I agree with the assertions that many sites need very little to no recoding in order to move to PHP5. I was able to run PHP5 3 years ago without a single change in any code.

What is never taken into account is the memory footprint of PHP4 vs PHP5. PHP5 hogs up to double the RAM per thread as compared to 'old and outdated' PHP4.

This may have changed in recent versions but, in my experience, an upgrade to PHP5 on a high traffic (80M page views/month) site brought my servers to their knees due to performance and RAM waste issues. I was forced to revert to PHP4 or purchase upgraded/more servers.. in order to run the exact same code!

How is this an upgrade?

As for register_globals being removed at some point. This is the result of the stupid many causing a change for all, whether wanted or not. With correctly coded scripts, register_globals is not a security issue at all. I use them all the time and invite you to try to inject code on any of my sites. Correctly coding cannot be fixed by banning the use of possibly insecure features.. EVER.

I, for one, will wait until the last minute to move to PHP5. Maybe by then it will be optimized enough to compete with it's older brother.</description>
		<content:encoded><![CDATA[<p>I agree with the assertions that many sites need very little to no recoding in order to move to PHP5. I was able to run PHP5 3 years ago without a single change in any code.</p>
<p>What is never taken into account is the memory footprint of PHP4 vs PHP5. PHP5 hogs up to double the RAM per thread as compared to &#8216;old and outdated&#8217; PHP4.</p>
<p>This may have changed in recent versions but, in my experience, an upgrade to PHP5 on a high traffic (80M page views/month) site brought my servers to their knees due to performance and RAM waste issues. I was forced to revert to PHP4 or purchase upgraded/more servers.. in order to run the exact same code!</p>
<p>How is this an upgrade?</p>
<p>As for register_globals being removed at some point. This is the result of the stupid many causing a change for all, whether wanted or not. With correctly coded scripts, register_globals is not a security issue at all. I use them all the time and invite you to try to inject code on any of my sites. Correctly coding cannot be fixed by banning the use of possibly insecure features.. EVER.</p>
<p>I, for one, will wait until the last minute to move to PHP5. Maybe by then it will be optimized enough to compete with it&#8217;s older brother.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cybrsrfr</title>
		<link>http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-33866</link>
		<dc:creator>cybrsrfr</dc:creator>
		<pubDate>Mon, 22 Oct 2007 16:57:03 +0000</pubDate>
		<guid isPermaLink="false">http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-33866</guid>
		<description>To learn the changes between PHP4 and PHP5 is less than a couple of hours of effort. To make the changes necessary for a project to work on PHP5 are rather minor and if it was developed with known best practices it will require no changes at all. So what is the big deal of moving on to PHP5?

Moving a project to a new language will require a 100% rewrite vs 0-5% changes from PHP4 to PHP5.

The PHP programming language must move on before it and its developers become obsolete.</description>
		<content:encoded><![CDATA[<p>To learn the changes between PHP4 and PHP5 is less than a couple of hours of effort. To make the changes necessary for a project to work on PHP5 are rather minor and if it was developed with known best practices it will require no changes at all. So what is the big deal of moving on to PHP5?</p>
<p>Moving a project to a new language will require a 100% rewrite vs 0-5% changes from PHP4 to PHP5.</p>
<p>The PHP programming language must move on before it and its developers become obsolete.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-33859</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 22 Oct 2007 16:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-33859</guid>
		<description>The decision to not release Security Fixes for PHP4 is not mine to make.

Since the decision has been made, I can pass judgement on the decision itself.  My actions do not come into play here.

PHP4 and PHP5 and PHP6... security fixes will be an issue no matter what you choose.  

I think it would be best to go with a different language if security is your primary concern.  There is no reason to stop security fixes for PHP4, but since they will stop, now is the perfect time to 'move on'.

Just my 2 cents.  Once bitten, twice shy.</description>
		<content:encoded><![CDATA[<p>The decision to not release Security Fixes for PHP4 is not mine to make.</p>
<p>Since the decision has been made, I can pass judgement on the decision itself.  My actions do not come into play here.</p>
<p>PHP4 and PHP5 and PHP6&#8230; security fixes will be an issue no matter what you choose.  </p>
<p>I think it would be best to go with a different language if security is your primary concern.  There is no reason to stop security fixes for PHP4, but since they will stop, now is the perfect time to &#8216;move on&#8217;.</p>
<p>Just my 2 cents.  Once bitten, twice shy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cybrsrfr</title>
		<link>http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-33858</link>
		<dc:creator>cybrsrfr</dc:creator>
		<pubDate>Mon, 22 Oct 2007 16:40:03 +0000</pubDate>
		<guid isPermaLink="false">http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-33858</guid>
		<description>Since PHP4 will no longer receive security fixes by the end of this year (2007) to wait for PHP6 or PHP7 will be a security risk.

To skip PHP5 and wait for 6 or 7 is also a great way of allowing your PHP development skills to become obsolete while you are waiting for the next version.</description>
		<content:encoded><![CDATA[<p>Since PHP4 will no longer receive security fixes by the end of this year (2007) to wait for PHP6 or PHP7 will be a security risk.</p>
<p>To skip PHP5 and wait for 6 or 7 is also a great way of allowing your PHP development skills to become obsolete while you are waiting for the next version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-33819</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 22 Oct 2007 13:18:59 +0000</pubDate>
		<guid isPermaLink="false">http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-33819</guid>
		<description>Just wait until PHP6 or PHP7, that's my recommendation.</description>
		<content:encoded><![CDATA[<p>Just wait until PHP6 or PHP7, that&#8217;s my recommendation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: banta</title>
		<link>http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-33770</link>
		<dc:creator>banta</dc:creator>
		<pubDate>Mon, 22 Oct 2007 07:17:20 +0000</pubDate>
		<guid isPermaLink="false">http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-33770</guid>
		<description>When an user asked a php cms ( geeklog ) to develope a roadmap for php5 they [ Dirk - a core developer ] replied 
"And "no roadmap to go to PHP5"? Geeklog runs just fine on PHP 5 - no need for any roadmap ..."
http://www.geeklog.net/forum/viewtopic.php?forum=6&#38;showtopic=78913&#38;show=20&#38;page=2

If core developers are reluctant I wonder where it hurts them !</description>
		<content:encoded><![CDATA[<p>When an user asked a php cms ( geeklog ) to develope a roadmap for php5 they [ Dirk - a core developer ] replied<br />
&#8220;And &#8220;no roadmap to go to PHP5&#8243;? Geeklog runs just fine on PHP 5 - no need for any roadmap &#8230;&#8221;<br />
<a href="http://www.geeklog.net/forum/viewtopic.php?forum=6&amp;showtopic=78913&amp;show=20&amp;page=2" rel="nofollow">http://www.geeklog.net/forum/viewtopic.php?forum=6&amp;showtopic=78913&amp;show=20&amp;page=2</a></p>
<p>If core developers are reluctant I wonder where it hurts them !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-30259</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Sat, 06 Oct 2007 22:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-30259</guid>
		<description>Does PHP 5 hurt PHP? Actually it is exactly the opposite... PHP4 is old and is harming PHP. Support for PHP4 should have been dropped a long time ago. Why because technologies evolve and if PHP doesn't evolve with it then it will eventually fizzle and die.

The migration from PHP4 to PHP5 is quite easy and I don't see what people complain about. PHP5 does have compelling features like PDO, OO speed improvements, and more.</description>
		<content:encoded><![CDATA[<p>Does PHP 5 hurt PHP? Actually it is exactly the opposite&#8230; PHP4 is old and is harming PHP. Support for PHP4 should have been dropped a long time ago. Why because technologies evolve and if PHP doesn&#8217;t evolve with it then it will eventually fizzle and die.</p>
<p>The migration from PHP4 to PHP5 is quite easy and I don&#8217;t see what people complain about. PHP5 does have compelling features like PDO, OO speed improvements, and more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry Garfield</title>
		<link>http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-24966</link>
		<dc:creator>Larry Garfield</dc:creator>
		<pubDate>Fri, 14 Sep 2007 14:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-24966</guid>
		<description>Er, why? :-)  No version of PHP provides strong typing.  I doubt one ever will.  If your problem with PHP 5 is that it doesn't provide strong typing, then you really shouldn't be using PHP in the first place and the version is irrelevant.</description>
		<content:encoded><![CDATA[<p>Er, why? <img src='http://sandro.groganz.com/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  No version of PHP provides strong typing.  I doubt one ever will.  If your problem with PHP 5 is that it doesn&#8217;t provide strong typing, then you really shouldn&#8217;t be using PHP in the first place and the version is irrelevant.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-24958</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Fri, 14 Sep 2007 13:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-24958</guid>
		<description>If that's the case I would support PHP4 until the sun explodes.

When 8-2008 rolls around, the love for PHP4 stops.

That's a shame.</description>
		<content:encoded><![CDATA[<p>If that&#8217;s the case I would support PHP4 until the sun explodes.</p>
<p>When 8-2008 rolls around, the love for PHP4 stops.</p>
<p>That&#8217;s a shame.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry Garfield</title>
		<link>http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-24860</link>
		<dc:creator>Larry Garfield</dc:creator>
		<pubDate>Fri, 14 Sep 2007 03:03:03 +0000</pubDate>
		<guid isPermaLink="false">http://sandro.groganz.com/weblog/2007/07/30/does-php-5-hurt-php/#comment-24860</guid>
		<description>Yes, the comments in the php.net online manual are pruned periodically.  They're not for support questions, but for user-embellishment and tips.  For support questions, try the php-general mailing list.  It's quite active and usually quite helpful.

I think you're missing the point, though.  In 99% of cases, you don't cast a type of a variable when you create it (unless you're instantiating an object), because PHP doesn't care.  It's a weakly typed language, by design.  

$an_integer = 1;
$a_string = "1";

In 99% of cases, both will do what you want.  If you really really have to cast it, you do it the same way as in C:

$a_string = (string)$an_integer;

From the sound of it, you're saying you want PHP to tell you how to do strict typing.  If you really want strict typing, you should not be using PHP in the first place. :-)  That has nothing to do with sloppy code; that's the way the language is designed to work.

The "companies make Java and .NET so they must be better" logic also falls flat on its face.  The open source movement if nothing else has blown that fallacy out of the water completely.  

PHP 4 is "from the year 2000".  PHP 5 is a "today's language".  That's the whole point of pushing PHP 5 adoption! :-)</description>
		<content:encoded><![CDATA[<p>Yes, the comments in the php.net online manual are pruned periodically.  They&#8217;re not for support questions, but for user-embellishment and tips.  For support questions, try the php-general mailing list.  It&#8217;s quite active and usually quite helpful.</p>
<p>I think you&#8217;re missing the point, though.  In 99% of cases, you don&#8217;t cast a type of a variable when you create it (unless you&#8217;re instantiating an object), because PHP doesn&#8217;t care.  It&#8217;s a weakly typed language, by design.  </p>
<p>$an_integer = 1;<br />
$a_string = &#8220;1&#8243;;</p>
<p>In 99% of cases, both will do what you want.  If you really really have to cast it, you do it the same way as in C:</p>
<p>$a_string = (string)$an_integer;</p>
<p>From the sound of it, you&#8217;re saying you want PHP to tell you how to do strict typing.  If you really want strict typing, you should not be using PHP in the first place. <img src='http://sandro.groganz.com/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  That has nothing to do with sloppy code; that&#8217;s the way the language is designed to work.</p>
<p>The &#8220;companies make Java and .NET so they must be better&#8221; logic also falls flat on its face.  The open source movement if nothing else has blown that fallacy out of the water completely.  </p>
<p>PHP 4 is &#8220;from the year 2000&#8243;.  PHP 5 is a &#8220;today&#8217;s language&#8221;.  That&#8217;s the whole point of pushing PHP 5 adoption! <img src='http://sandro.groganz.com/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
