Schmalls » Blog » 2008 » February 2008

February 2008

Infinite Recursion (i.e. Hard To Spot Error)

I ran into a hard to spot bug the other day and decided to share it. I worked on some code for a while and then fired up my browser to test it. I would be using Xdebug straight from Eclipse PDT, but I can't get it to work with the latest php snapshots for Windows. Anyway, when I went to test it, there was no output. It turns out that php-cgi had segfaulted. I spent the better half of a day trying to figure out the problem. When I thought I had figured it out, I would try to write up a test script for just that problem, and all of them ran just fine. Just when I was about to give up, I found the problem in this little class I was sure couldn't be wrong.

→ Read more...

2008-02-12 18:01 · Josh Thompson · 0 Comments · 0 Linkbacks
blog/2008/02/home.txt · Last modified: 2009-09-19 22:47 by Josh Thompson