<?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>Thu, 20 Jun 2013 04:01:04 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Jonathan Hill: What Is Wrong With PHP's Semaphore Extension]]></title>
      <guid>http://www.phpdeveloper.org/news/18893</guid>
      <link>http://www.phpdeveloper.org/news/18893</link>
      <description><![CDATA[<p>
In <a href="http://jonathonhill.net/2012-12-08/what-is-wrong-with-phps-semaphore-extension/">this recent post</a> to his site <i>Jonathan Hill</i> takes a look at the PHP <a href="http://php.net/manual/en/book.sem.php">semaphore extension</a> and talks about some of the issues he's had with it.
</p>
<p>He lists five different pain points he discovered when trying to use the extension:</p>
<ul>
<li>Lack of a true Semaphore
<li>Undefined error handling
<li>Undefined behavior of sem_get()
<li>Cannot disable semaphore auto-releasing
<li>A semaphore may be deleted when other processes are waiting to acquire it
</ul>
<p>
The <a href="http://php.net/manual/en/intro.sem.php">semaphore extension</a> provides a PHP-based wrapper for the System V IPC family of functions (including semaphores, shared memory and inter-process messaging).
</p>]]></description>
      <pubDate>Fri, 14 Dec 2012 11:08:18 -0600</pubDate>
    </item>
  </channel>
</rss>
