Feb
26
Bug is known to be small, hides in corners and although is present everywhere, only makes itself known in odd circumstances. It flitters about in the air just above you where you don't expect it during those circumstances. At other times, it snuggles up in a corner, but is always present, waiting for the right opportunity. Considered to be armed and dangerous, as well as mischievous.
For the past year or so, I've been either trying to figure out what's wrong with a script I wrote, or whether or not I should rewrite it from scratch, or if possible, how to save the thing with odd workarounds. I thought, "there's got to be something wrong with my code". Every day after looking at it for hour after hour, not able to figure out what the cause of the problem was, I would think, "There's got to be some sort of bug in PHP!!!"...but when I'd think that, I'd try to do a search to find any other people who've had similar circumstances.
Well, poor coding practice (non-cached dynamic image) alongside some tricky $_SESSION management (and requirements) caused for some odd behavior. Session data was getting dropped on certain pages for no good reason. It worked fine up until a certain page and/or point. I'm not entirely sure what the error is caused by, but I do know that removing the dynamically created image stops the error and the session information continues to behave as would and should be expected. If anyone's interested in tackling the identification of this bug, I'd absolutely love some help, expert or otherwise. Unfortunately, as of right now, I'd have to share full code disclosure as I can't identify any smaller problem code than the full application with those certain settings turned on or off (as I just found the error); so I've really no idea what combination of code is required to recreate this error. I also do not have any debugging software strong enough to show what the stack trace/dump would look like during execution of the problem page.
...but man... 1+ year of being annoyed by this thing. For a long time, I thought it was the server configuration. I was damned sure of it. My test-bed development machine never rendered the dynamic image.
For the past year or so, I've been either trying to figure out what's wrong with a script I wrote, or whether or not I should rewrite it from scratch, or if possible, how to save the thing with odd workarounds. I thought, "there's got to be something wrong with my code". Every day after looking at it for hour after hour, not able to figure out what the cause of the problem was, I would think, "There's got to be some sort of bug in PHP!!!"...but when I'd think that, I'd try to do a search to find any other people who've had similar circumstances.
Well, poor coding practice (non-cached dynamic image) alongside some tricky $_SESSION management (and requirements) caused for some odd behavior. Session data was getting dropped on certain pages for no good reason. It worked fine up until a certain page and/or point. I'm not entirely sure what the error is caused by, but I do know that removing the dynamically created image stops the error and the session information continues to behave as would and should be expected. If anyone's interested in tackling the identification of this bug, I'd absolutely love some help, expert or otherwise. Unfortunately, as of right now, I'd have to share full code disclosure as I can't identify any smaller problem code than the full application with those certain settings turned on or off (as I just found the error); so I've really no idea what combination of code is required to recreate this error. I also do not have any debugging software strong enough to show what the stack trace/dump would look like during execution of the problem page.
...but man... 1+ year of being annoyed by this thing. For a long time, I thought it was the server configuration. I was damned sure of it. My test-bed development machine never rendered the dynamic image.

