<?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>Tue, 21 May 2013 14:03:49 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Volker Dusch's Blog: Dealing with segfaults while PHPUnit code coverage generation for CI]]></title>
      <guid>http://www.phpdeveloper.org/news/16197</guid>
      <link>http://www.phpdeveloper.org/news/16197</link>
      <description><![CDATA[<p>
<i>Volker Dusch</i> has a new post to his blog looking at <a href="http://edorian.posterous.com/dealing-with-segfaults-while-phpunit-code-cov">handling segfaults during code coverage generation</a> that might come up during your continuous integration process (with <a href="http://phpunit.de">PHPUnit</a> flavor unit tests).
</p>
<blockquote>
About half the "Build failed" mails I've gotten from Jenkins in the last two weeks where not due to me breaking the tests but just PHPUnit segfaulting. "Wait! I know PHPUnit can't segfault!", only PHP itself can. And it does, quite often. For some reason that probably has to do with using PHP 5.2.OLD it doesn't survive generate the clover.xml file or the HTML report about 20% of the times it's being run.
</blockquote>
<p>
He finds a solution to keep this from happening - not correcting the segfault as much as running the testing again to get it to pass. He wraps the call to PHPUnit inside of a simple shell script that tries to execute the PHPUnit testing suite as long as a segfault isn't thrown. If something was seriously broken, this could cause all sorts of problems, but in theory it's a simple hack that gets the job done.
</p>]]></description>
      <pubDate>Thu, 14 Apr 2011 11:55:13 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lars Strojny's Blog: PHP Segfaulting with PECL/UUID and PECL/IMAGICK]]></title>
      <guid>http://www.phpdeveloper.org/news/15098</guid>
      <link>http://www.phpdeveloper.org/news/15098</link>
      <description><![CDATA[<p>
If you've been using (or will be using) the <a href="http://usrportage.de/archives/pecl/uuid">uuid</a> and <a href="http://usrportage.de/archives/pecl/imagick">imagick</a> extensions for PHP, you might be able to save yourself a lot of headache by reading <a href="http://usrportage.de/archives/922-PHP-segfaulting-with-pecluuid-and-peclimagick.html">this new post</a> from <i>Lars Strojny</i> about his segfault woes.
</p>
<blockquote>
Ran into a bug yesterday, where <a href="http://usrportage.de/archives/pecl/uuid">http://pecl.php.net/uuid</a> in combination with <a href="http://usrportage.de/archives/pecl/imagick">http://pecl.php.net/imagick</a> yielded a segfault when using uuid_create().
</blockquote>
<p>
After trying to trace it down with a backtrace and cachegrind results, he (and <a href="http://valokuva.org/">Mikko</a> & <a href="http://blog.thepimp.net/">Pierre</a>) found that both extensions were built against the libuuid.so.1 file. While that wasn't the issue directly, they did find a work-around that helped the issue - renaming some ini files so uuid was loaded first.
</p>]]></description>
      <pubDate>Wed, 08 Sep 2010 14:17:13 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Turland's Blog: A Few Kinks in FilterIterator]]></title>
      <guid>http://www.phpdeveloper.org/news/14963</guid>
      <link>http://www.phpdeveloper.org/news/14963</link>
      <description><![CDATA[<p>
In <a href="http://matthewturland.com/2010/08/15/a-few-kinks-in-filteriterator/">this quick post</a> to his blog <i>Matthew Turland</i> shares a "kink" he found in using the <a href="http://php.net/filteriterator">FilterIteractor</a> SPL iterator when working with <a href="http://phergie.org/2010/08/08/known-issue-in-phergie-2-0-3/">the Phergie project</a>'s code.
</p>
<blockquote>
Once I discovered the <a href="http://en.wikipedia.org/wiki/Segmentation_fault">segfault</a> [from the FilterIterator code], I had to come up with a short code sample exposing the bug in order to report it. 
</blockquote>
<p>
He talks about <a href="http://bugs.php.net/bug.php?id=52559">the bug</a> that led him to the segfault and <a href="http://bugs.php.net/bug.php?id=52560">a second bug</a> that was a side effect of the first causing the first element to be skipped during iteration.
</p>]]></description>
      <pubDate>Mon, 16 Aug 2010 10:18:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: PHP's segmentation faults GDB-fu]]></title>
      <guid>http://www.phpdeveloper.org/news/11167</guid>
      <link>http://www.phpdeveloper.org/news/11167</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has <a href="http://derickrethans.nl/phps_segmentation_faults_gdbfu.php">shared a quick tip</a> for locating a code crashing kind of problem with your application when something like XDebug isn't around.
</p>
<blockquote>
However, because we as PHP developers are lazy, provide a few GDB tricks to make this easier. First of all, it's only really going to work if you haven't stripped the symbols from your PHP and Apache binaries. Secondly, you still need to have the PHP source lying around somewhere.
</blockquote>
<p>
He suggests using GDB to run the backtraces and create a file to help you track down the infinite recursion problem that could be giving you issues. 
</p>]]></description>
      <pubDate>Wed, 08 Oct 2008 09:32:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Jones' Blog: Exceptional command-line PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10790</guid>
      <link>http://www.phpdeveloper.org/news/10790</link>
      <description><![CDATA[<p>
In a <a href="http://paul-m-jones.com/?p=279">new post</a> to his blog, <i>Paul Jones</i> anout a small issue when working with the PHP 5.2.5 command line functionality - a segfault if you extend the Exception class.
</p>
<blockquote>
When executing code at the command line using php -r and PHP 5.2.5, be sure not to extend the Exception class. It will cause a segmentation fault.
</blockquote>
<p>
He includes examples of the issue that would cause the problem and the <a href="http://bugs.php.net/?id=45750">bug</a> he's filed in an effort to get it fixed.
</p>]]></description>
      <pubDate>Fri, 08 Aug 2008 09:34:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ian Selby's Blog: Weird PHP Seg Faults & Custom Session Handlers]]></title>
      <guid>http://www.phpdeveloper.org/news/8674</guid>
      <link>http://www.phpdeveloper.org/news/8674</link>
      <description><![CDATA[<p>
In recent work, <i>Ian Selby</i> came across something odd - a setup where PHP was segfaulting without any real indication of where the error might be:
</p>
<blockquote>
Starting to get a little frustrated, I took a peek at my error logs (/var/log/httpd/error_log for the unitiated), and discovered a wonderful message [about the segfault]. As any person scratching their head would do, I hit up google.. to no real avail. Just a bunch of php bug reports. So, what happened, and how did I fix it?
</blockquote>
<p>
After <a href="http://www.gen-x-design.com/archives/quickie-weird-php-seg-faults-custom-session-handlers">searching through the code</a> and narrowing down where it could be, the culprit looked like a custom session handler he was using. It uses MySQL to store the sesion information and, unfortunately, when <i>Ian</i> had compiled the server he didn't let PHP know about his unique setup.
</p>
<p>
His default installation was trying to use the default MySQL information (including the socket) to reach the database. Obviously failing, the server simply gave up and segfaulted. Thankfully, all it takes it a recompile with a few extra parameters and you're back in business.
</p>]]></description>
      <pubDate>Tue, 18 Sep 2007 10:27:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: PHP 4.4.5 Segfaults (register_globals = on)]]></title>
      <guid>http://www.phpdeveloper.org/news/7335</guid>
      <link>http://www.phpdeveloper.org/news/7335</link>
      <description><![CDATA[<p>
According to <a href="http://www.dynamicwebpages.de/99.rdfnews.php?select=1127">this new post</a> on DynamicWebPges.de and <a href="http://news.php.net/php.internals/28086">a message</a> from <i>Derick Rethans</i> on the php.internals mailing list, there's an issue with PHP 4.4.5 where sessions are causing segfaults when register_globals is set to "On".
</p>
<p>
As per <i>Derick</i>:
</p>
<blockquote>
Because of this I'd like to release a 4.4.6 soon with this fixes. As 
there is also an upgrade to pcre 7.0 we'd need at least one RC, which I 
plan to release on Thursday.
</blockquote>
<p>
Users of the PHP 4.4.x series should keep watch for this new update to correct the issue quickly.
</p>]]></description>
      <pubDate>Fri, 23 Feb 2007 09:31:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Stuart Herbert's Blog:  Investigating A PDO Segfault]]></title>
      <guid>http://www.phpdeveloper.org/news/5722</guid>
      <link>http://www.phpdeveloper.org/news/5722</link>
      <description><![CDATA[<p>
Most of the time, working with PDO is simple - fire up the right driver for what you need and you're all set. But sometimes, something's just not right, as <a href="http://blog.stuartherbert.com/gentoo.php/2006/06/29/investigating_a_pdo_segfault">Stuart Herbert found out</a>. He's blogged about this experience in his latest entry.
</p>
<blockquote>
<p>
I've been playing about with using PDO to work with mysql. Something's not quite right in there, and it's resulting in a segfault when I run some local unit tests.
</p>
<p>
PDO objects themselves are created and destroyed when I'd expect them to be, as the objects go out of scope. The problem is that the PDOStatement objects aren't doing the same. According to gdb, PDOStatement objects are only getting cleaned up when php_request_shutdown() runs; never before.
</p>
<p>
Surely we should be seeing PDOStatement objects being destroyed before their corresponding PDO object? 
</p>
</blockquote>
<p>
He <a href="http://blog.stuartherbert.com/gentoo.php/2006/06/29/investigating_a_pdo_segfault">finds</a> that there are relly two problems at work here - persistence of PDOStatement objects and PDO objects' destruction before their corresponding PDOStatement objects.
</p>
<p>
He asks for <a href="http://blog.stuartherbert.com/gentoo.php/2006/06/29/investigating_a_pdo_segfault">any opinions</a> on the matter from anyone with the experience out there to help squash these bugs.
</p>]]></description>
      <pubDate>Thu, 29 Jun 2006 05:56:34 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Scott Mattocks' Blog: PHP-GTK News #11]]></title>
      <guid>http://www.phpdeveloper.org/news/5299</guid>
      <link>http://www.phpdeveloper.org/news/5299</link>
      <description><![CDATA[<p>
<i>Scott Mattocks</i> submitted a link to his most current edition of the latest and greatest from the world of PHP-GTK - <a href="http://crisscott.com/2006/05/03/php-gtk-news-11/">Issue #11</a>.
</p>
<p>
Included in this edition are mentions of:
<ul>
<li>patches applied this week (GtkTreeModel::iter_nth_child, GtkTreeModel::iter_parent, GtkTreeModel::get, GtkWidget::is_visible)
<li>a fix for a segault dealing with the drag-n-drop functionality
<li>the release of a new <a href="http://gtk.php.net/manual/en/tutorials.helloglade.php">Glade tutorial</a>
<li>a question about creating your own widgets to extend PHP-GTK's current set
<li>a new package release by <i>Christian</i> on the Gnope.org site for a drag-n-drop development environment.
</ul>
</p>
<p>
You can get the complete details on each of these stories from <a href="http://gtk.php.net/manual/en/tutorials.helloglade.php">this edition</a> of the latest from the world of PHP-GTK.
</p>]]></description>
      <pubDate>Wed, 03 May 2006 08:57:20 -0500</pubDate>
    </item>
  </channel>
</rss>
