<?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>Sun, 19 May 2013 17:00:20 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Benjamin Eberlei's Blog: Test your Legacy PHP Application with Function Mocks!]]></title>
      <guid>http://www.phpdeveloper.org/news/12243</guid>
      <link>http://www.phpdeveloper.org/news/12243</link>
      <description><![CDATA[<p>
<i>Benjamin Eberlei</i> <a href="http://www.whitewashing.de/blog/articles/115">has a suggestion</a> for testing your application without having to mess around with creating new resources just for testing - use mocks.
</p>
<blockquote>
Much talking is going on about Unit testing, Mocks and TDD in the PHP world. For the most this discussions surround object-oriented PHP code, frameworks and applications. Yet I would assert that the reality for PHP developers (me included) is dealing with PHP 4, PHP 5 migrated, or non-object oriented legacy applications which are near to impossible to bring under test.
</blockquote>
<p>
He includes a "proof of concept" for a replacement <a href="http://php.net/mysql_query">mysql_query</a> function (as created inside of Runkit) that sets up a "mocker" object that returns a "hello world" message when the mysql_query function is called.
</p>]]></description>
      <pubDate>Tue, 31 Mar 2009 11:18:31 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Esser's Blog: CORE GRASP - PHP Tainted Mode]]></title>
      <guid>http://www.phpdeveloper.org/news/8515</guid>
      <link>http://www.phpdeveloper.org/news/8515</link>
      <description><![CDATA[<p>
<i>Stefan Esser</i> <a href="http://blog.php-security.org/archives/92-CORE-GRASP-PHP-Tainted-Mode.html">points out</a> a new patch today - <a href="http://grasp.coresecurity.com/index.php?m=dld">CORE GRASP</a> - from the <a href="http://www.coresecurity.com/">Core Security Technologies</a> group that provides taint support surrounding the mysql_query function.
</p>
<blockquote>
Their implementation adds a tainted or not flag for every byte so that it is possible on invocation of mysql_query() to determine any kind of injection.
</blockquote>
<p>
Unfortunately, <i>Stefan</i> also mentions two big issues it might have from the get-go: the overhead for the memory needed can slow things down and an incorrect parsing in their query handler could lead to injection attacks. 
</p>]]></description>
      <pubDate>Wed, 22 Aug 2007 16:19:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Internet Super Hero Blog: PHP: mysqli_stmt_get_result()]]></title>
      <guid>http://www.phpdeveloper.org/news/8513</guid>
      <link>http://www.phpdeveloper.org/news/8513</link>
      <description><![CDATA[<p>
Frustrated with the lack of something simple (like mysql_fetch_assoc) in the new mysqli extension, <a href="http://blog.ulf-wendel.de/?p=156">this new function</a> was created an posted about on the Internet Super Hero blog - mysqli_stmt_get_results.
</p>
<blockquote>
By help of the new function, you can create a <a href="http://www.php.net/manual/en/ref.mysqli.php">mysqli_result object</a> from a statement that returns data (SELECT and other - <a href="http://dev.mysql.com/doc/refman/5.1/en/c-api-prepared-statements.html">version dependent!</a>). Then you can use the mysqli_result object to process the returned data: fetch results, access meta data - all you can also do using a mysqli_result object returned by <a href="http://php.net/mysqli_query">mysqli_query()</a>.
</blockquote>
<p>
Included in <a href="http://blog.ulf-wendel.de/?p=156">the post</a> are a few code examples showing the simplicity of the function and how it can still be used with the standard mysql_* functions to grab the results. 
</p>]]></description>
      <pubDate>Wed, 22 Aug 2007 13:48:00 -0500</pubDate>
    </item>
  </channel>
</rss>
