Finally found the bug

So, I spent the last two days trying to figure out why a set of PHP scripts that worked well on my PowerBook spectacularly failed on the company web server. Had to work through the scripts almost character by character and finally found the bug was due to the glob() function with the GLOB_BRACE option set on a PHP version 4.3.4 server not finding a file match and therefore crashing. As J. Gordon Letwin is reported to have said about bugs: “One in a million is next Tuesday.”

No comments: