Diagnosing bug

php.internals

David Mytton

19 years ago
Hi, I have been trying to track down a potential bug in my code and after testing everything I could, I believe it is a bug in PHP. The problem is that it's quite a complex issue and only occurs when mod_rewrite is being used on Linux (it works fine on my Windows PC I'm developing on). I have done all the usual things like disable all 3rd party extensions and use the latest PHP snapshot (PHP 5) but the bug still comes up. I can work around it but I would prefer to submit a bug report so it can be looked and hopefully fixed. This is where the problem is. I have been discussing the problem on php.general - http://news.php.net/php.general/247543 - and my difficulty is producing test code that I can use to submit a bug report. I have attempted to "extract" the code out of the applicatiom but when I do that, the code works fine. I know that this suggests that it is a bug in my code and not PHP at all, but the nature of the bug, and the fact that it only occurs with mod_rewrite on Linux, I believe suggests otherwise. So I'm asking if someone could take a look at my post to php.general and possibly give me some advice for writing up a test case for this so I can report it properly? Thanks, David Mytton

Roman Neuhauser

19 years ago
# david@emomentum.co.uk / 2007-01-22 18:08:06 +0000:
> I have been trying to track down a potential bug in my code and after > testing everything I could, I believe it is a bug in PHP. The problem is > that it's quite a complex issue and only occurs when mod_rewrite is > being used on Linux (it works fine on my Windows PC I'm developing on).
For the sake of the archives: this was a PEBKAC, see php-general@.
-- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991