<?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>Wed, 22 May 2013 23:42:57 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Johannes Schl&uuml;ter's Blog: Testing persistent connection and thread-safety features in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17712</guid>
      <link>http://www.phpdeveloper.org/news/17712</link>
      <description><![CDATA[<p>
In <a href="http://schlueters.de/blog/archives/166-Testing-persistent-connection-and-thread-safety-features-in-PHP.html">this recent post</a> to his blog <i>Johannes Schl&uuml;ter</i> he talks about a way that he's come up with to test functionality that uses persistent connections (and an module he created to help).
</p>
<blockquote>
In a few rare cases this is not what people like, for that PHP introduced "persistent connections" of different kinds. Testing those is a bit annoying as you have to configure a webserver and ensure to hit the same instance over the course of a test and then use a load generator, probably one which can detect a failure. Additionally by having a webserver in the game there is more code being executed, which might mean an additional source for trouble while debugging. An alternative might be using FastCGI, while that adds it's own issues for such a test. To solve this for myself I, some time ago, wrote a PHP SAPI module called <a href="https://github.com/johannes/pconn-sapi">pconn</a> and pushed it to github. 
</blockquote>
<p>
The extension provides a way to emulate requests by executing a script multiple times automatically, making it easier to test things that require checking against multiple things simultaneously. While the <a href="http://us2.php.net/manual/en/features.commandline.webserver.php">built-in webserver</a> (PHP 5.4) can be used to test some of these things too, <i>Johannes'</i> extension can also be compiled to help with testing of threading in applications as well.
</p>]]></description>
      <pubDate>Thu, 22 Mar 2012 09:51:58 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Facebook.com: PHPEmbed]]></title>
      <guid>http://www.phpdeveloper.org/news/8886</guid>
      <link>http://www.phpdeveloper.org/news/8886</link>
      <description><![CDATA[<p>
Facebook application developers who already know PHP can be happy about a <a href="http://blog.facebook.com/blog.php?post=6146092130">recent announcement</a> on their blog - the introduction of <a href="http://developers.facebook.com/phpembed/">PHPEmbed library</a> into their setup (as well as a release of it out to the public).
</p>
<blockquote>
In order to make embedding PHP truly simple for all of our developers we developed the PHPEmbed library which is just a more accessible and simplified API built on top of the PHP SAPI. The library is so useful, we decided to share it with the world. Check it out for yourself at <a href="http://developers.facebook.com/phpembed/">http://developers.facebook.com/phpembed/</a>
</blockquote>
<p>
The library (currently in release 20070924) can be grabbed either directly <a href="http://developers.facebook.com/phpembed/download_phpembed.php">from their download link</a> or via the public <a href="http://svn.facebook.com/svnroot/phpembed/">svn repository</a> they've set up. There's also some documentation and help for it in the form of <a href="http://www.facebook.com/group.php?gid=5078262228">a developer's group</a> and the manual (<a href="http://developers.facebook.com/phpembed/phpembed.pdf">PDF</a>/<a href="http://developers.facebook.com/phpembed/docs/index.html">HTML</a>). 
</p>]]></description>
      <pubDate>Tue, 23 Oct 2007 10:27:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Pierre-Alain Joye's Blog: Windows fixes release for Zip, fopen(,"rb") may not be binary safe]]></title>
      <guid>http://www.phpdeveloper.org/news/6777</guid>
      <link>http://www.phpdeveloper.org/news/6777</link>
      <description><![CDATA[<p>
A new release of the Zip PECL package has been made according to <a href="http://blog.thepimp.net/index.php/post/2006/11/28/Windows-fixes-release-for-Zip-fopenrb-may-not-be-binary-safe">this post</a> on <i>Pierre-Alain Joye</i>'s blog today. The main update in <a href="http://pecl.php.net/get/zip">this release</a> is to counteract a Windows bug that's interfering with binary file opens.
</p>
<blockquote>
The issue is actually a windows bug. No matter if I give or not the "b" flag to fopen, the write operations are not binary safe. It seems to be a known issue as many projects use the same trick.
</blockquote>
<p>
The problem comes up when PHP forces the binary mode in SAPI and CLI, making the binary writes to a file non-binary safe no matter what. <i>Pierre</i> is also <a href="http://blog.thepimp.net/index.php/post/2006/11/28/Windows-fixes-release-for-Zip-fopenrb-may-not-be-binary-safe">asking for help</a> from anyone out there with any information/bug reports/references about this issue that would yield something useful.
</p>]]></description>
      <pubDate>Tue, 28 Nov 2006 07:13:09 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Alexey Zakhlestin's Blog: FastCGI in PHP - The way it could be.]]></title>
      <guid>http://www.phpdeveloper.org/news/5558</guid>
      <link>http://www.phpdeveloper.org/news/5558</link>
      <description><![CDATA[<p>
<i>Alexey Zakhlestin</i> shares with us in <a href="http://blog.milkfarmsoft.com/?p=4">this new blog post</a>, how the fast-cgi PHP developers think they're using isn't really a true FastCGI.
</p>
<quote>
<i>
Most PHP programmers believe, that PHP has support for FastCGI. They refer to fastcgi-sapi, which is bundled with php since long ago, and which was recently reimplemented for PHP 5.1.3/4. This SAPI really does exist and actually working quite good. But… it is not a real fast-cgi. It is just an imitation of mod_php which is linked against fastcgi api, instead of apache api. So, it's time for you to ask: if it exists and works, then what am I talking here about? Let's start from the basics...
</i>
</quote>
<p>
He <a href="http://blog.milkfarmsoft.com/?p=4">talks about</a> a history of how things go to where they are, starting back with regular CGI scripts, moving up through using server-based APIs, and finally to FastcGI, a method for overcoming a lot of the limitations of its predecessors.
</p>
<p>
With that look back, he turns his attention around and looks to the current situation within PHP. He talks about the sudden appearance fastcgi made in PHP's SAPIs, but that the implementation wasn't true. He suggests that the reasoning behind this "fake" implementation was for the sake of speed. He also notes, however, it's his opinion that true FastCGI support in PHP will be a requirement for future large-scale applications.
</p>]]></description>
      <pubDate>Sun, 11 Jun 2006 13:26:04 -0500</pubDate>
    </item>
  </channel>
</rss>
