Hudzilla.org - the homepage of Paul Hudson
Contents > Writing PHP > Getting Help Wish List | Report Bug | About Me ]

19.13.7     Submitting a bug

This is NOT the latest copy of this book; click here for the latest version.

If you are convinced you have found a problem with PHP, it is quite possible you are correct and you should notify the developers. Note that many hundreds of "bogus bugs" have been reported in the past, which are usually the result of people not reading the manual correctly. If you think you have found a problem, follow these steps before you submit a bug:

  1. Go to http://snaps.php.net and download the latest PHP snapshot for your machine. Take a backup of your existing installation, then install the snapshot - this essentially gives you the bleeding-edge version of PHP. If your problem still exists, go to step 2.

  2. Go to IRC and ask people there to reproduce the problem. It is possible that the problem lies in your PHP configuration, DBMS, operating system, or any other of a dozen potential culprits. If the problem is reproduced by others on IRC, then go to step 3.

  3. At this point you have almost certainly got a bug. However, before you send it off to the developers, you need to try to reproduce your problem using the shortest possible chunk of code. While it is possible that you are 3000-line masterpiece does show up a bug in PHP, it is also very hard for other developers to verify the problem. Take out every line that does not stop the bug from appearing - the shorter your script, the faster others can pick it up and reproduce the problem.

  4. You should now clearly be able to see what sequence of events causes the bug to show itself. You now need to make sure the bug has not been reported before, so go to http://bugs.php.net and search for it.

  5. If there is no record of a bug like yours existing, you can file a bug report from the same URL. Try to be as descriptive as possible, as your bug report will be mailed off to everyone on the PHP Internals mailing list for analysis.

  6. Once your bug has been submitted, you will be notified as to its progress. All being well it will be fixed immediately, but you may find that the developers need to ask you a few questions before they can get to work.

  7. Finally, developers will fix your bug and a new version of PHP will be available on http://snaps.php.net for you to download and try out. If the bug has been fixed, write back and say it is all working fine so that the bug can be signed off. The most common problem when fixing a bug is "no feedback" - a possible fix has been applied but the original finder hasn't gotten back to say "it is fixed". Do not let this be you!





<< 19.13.6 User groups   19.13.8 Contacting the author >>
Table of Contents
Want to see this stuff in print? PHP in a Nutshell takes the core topics covered here, adds in thousands of edits from the editorial team and myself, and combines them to make an unbeatable reference for PHP programmers at all levels.



My latest book has hundreds more tips on how to use PHP, Apache, and MySQL, plus Perl, Python, shell scripts, performance tuning, and more!



Top-right shadow
 
Bottom-left shadow Bottom shadow

Comments from other readers
Be the first to add a comment to this chapter!



Add comment
Please note that by posting a comment here you are committing it to the public domain. This is important so that others can make use of your code themselves, and also so that I can incorporate helpful notes directly into the main text. Comments are limited to 2000 characters in length.

If you are reporting an error in the content, please tell me directly.

Your name/email address:
Your comment:
 
Now, in order to verify that you're a real person, please answer this simple question: what is three plus two?
The answer is:
(please write in
numbers, eg 19)


Top-right shadow
 
Bottom-left shadow Bottom shadow