<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 09 Jan 2009 22:56:55 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[SitePoint PHP Blog: Tim Bray on PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/4874</guid>
      <link>http://www.phpdeveloper.org/news/4874</link>
      <description><![CDATA[<i>Harry Fuecks</i> has posted <a href="http://www.sitepoint.com/blogs/2006/02/20/tim-bray-on-php/">his brief opinion</a> on <a href="http://www.tbray.org/ongoing/When/200x/2006/02/17/PHP">the comments</a> that <i>Tim Bray</i> made recently about PHP over on the SitePoint PHP blog.
<p>
<quote>
<i>
Tim Bray kicked off a big blog debate on the pros and cons of PHP (see links in his post to everyone who commented). If you've been around PHP for a while, there's basically nothing new here but you might find cause for optimism in how things are being said'"there's far more informed discussion happening than you might have found even two years ago.
</i>
</quote>
<p>
<i>Harry</i> also <a href="http://www.sitepoint.com/blogs/2006/02/20/tim-bray-on-php/">mentions</a> that there's not much more he wants to add other than a comment on the "PHP is too easy" comment <i>Tim</i> made. Be sure to check out <a href="http://www.sitepoint.com/blogs/2006/02/20/tim-bray-on-php/#comments">the comments</a> on this post for some great opinions.]]></description>
      <pubDate>Tue, 21 Feb 2006 06:53:06 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ilia Alshanetsky's Blog: mysql_real_escape_string() versus Prepared Statements]]></title>
      <guid>http://www.phpdeveloper.org/news/4705</guid>
      <link>http://www.phpdeveloper.org/news/4705</link>
      <description><![CDATA[<i>Ilia Alshanetsky</i> also has <a href="http://ilia.ws/archives/103-mysql_real_escape_string-versus-Prepared-Statements.html">hos own look</a> today at the "mysql_real_escape_string versus addslashes" debate that's <a href="http://www.phpdeveloper.org/news/4703">going on</a>, looking more at why there's even an issue here (with addslashes).
<p>
<quote>
<i>
<a href="http://shiflett.org/archive/184">Chris</a> has written a compelling piece about how the use of addslashes() for string escaping in MySQL queries can lead to SQL injection through the abuse of multibyte character sets. In his example he relies on addslashes() to convert an invalid multibyte sequence into a valid one, which also has an embedded ' that is not escaped. And in an ironic twist, the function intended to protect against SQL injection is used to actually trigger it.
<p>
The problem demonstrated, actually goes a bit further, which even makes the prescribed escaping mechanism, mysql_real_escape_string() prone to the same kind of issues affecting addslashes().
</i>
</quote>
<p>
He <a href="http://ilia.ws/archives/103-mysql_real_escape_string-versus-Prepared-Statements.html">shows code examples</a>, creating a simple SQL injection that uses mysql_real_escape_string to cause the same issue - all based around the default characterset that the MySQL server uses. His suggested solution? Prepared statements... (like what things such as <a href="http://www.php.net/PDO">PDO</a> offer)]]></description>
      <pubDate>Mon, 23 Jan 2006 06:58:18 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Shiflett's Blog: The addslashes() Versus mysql_real_escape_string() Debate]]></title>
      <guid>http://www.phpdeveloper.org/news/4703</guid>
      <link>http://www.phpdeveloper.org/news/4703</link>
      <description><![CDATA[In his <a href="http://shiflett.org/archive/184">latest blog entry</a>, <i>Chris Shiflett</i> looks at a debate that's been going for a while now - addslashes() versus mysql_real_escape_string().
<p>
<quote>
<i>
Last month, I discussed <a href="http://shiflett.org/archive/177">Google's XSS Vulnerability</a> and provided an <a href="http://shiflett.org/archive/178">example that demonstrates it</a>. I was hoping to highlight why character encoding consistency is important, but apparently the <a href="http://www.sitepoint.com/forums/showthread.php?t=337881">addslashes() versus mysql_real_escape_string() debate</a> continues. <a href="http://shiflett.org/archive/178">Demonstrating</a> Google's XSS vulnerability was pretty easy. Demonstrating an SQL injection attack that is immune to addslashes() is a bit more involved, but still pretty straightforward.
</i>
</quote>
<p>
The reminder of <a href="http://shiflett.org/archive/184">the post</a> explains the difference, how how protects you when the other doesn't (addslashes), and a simple example of how something like that could be accomplished, including code...]]></description>
      <pubDate>Mon, 23 Jan 2006 06:46:32 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Helgi's Blog: Clash of the Titans]]></title>
      <guid>http://www.phpdeveloper.org/news/4405</guid>
      <link>http://www.phpdeveloper.org/news/4405</link>
      <description><![CDATA[From <i>Heigl</i>'s blog today, there's <a href="http://www.helgi.ws/?2005/11/29/8-clash-of-the-titans">his look</a> at some of the issues that surrounded the release of PHP 5.1.0 (and the quick following of PHP 5.1.1).
<p>
<quote>
<i>
As many have noticed 5.1.0 had some issue when it was released, like for starters it introduced a empty date class by default which effectively killed scripts that used <a href="http://pear.php.net/Date">PEAR::Date</a>.
<p>
As one can see in this excellent <a href="http://ilia.ws/archives/95-PHP-5.1.1-Released!.html">rant by Ilia</a> there are different views on how this should have been handled (also read the internals ML if you need even more reading material), namely why PEAR was polluting generic names and why they didn't fix it right away so PHP could get the glorious name of Date.
</i>
</quote>
<p>
<i>Heigl</i> takes the side of the internals developers, that <a href="http://www.helgi.ws/?2005/11/29/8-clash-of-the-titans">internal PHP should win out over PEAR</a> on this issue. There's been a pretty large debate raging on about this one - and, even with the (pullback) release of PHP 5.1.1, it goes on as an issue to address in, say, PHP 5.2? (Or maybe they'll just wait until 6 and lump it all in...)]]></description>
      <pubDate>Wed, 30 Nov 2005 07:38:56 -0600</pubDate>
    </item>
  </channel>
</rss>
