Sammy Powers has a new post to his site today showing you how to find and patch a bug in php-src, the source of the PHP language itself.
While he does provide all of the details in the post he also has created a screencast that walks you through the whole process as well. He breaks up the process into the different steps of the process:
- Find the bug (his was with the JSON handling)
- Submit a bug report (on bugs.php.net)
- Make a patch
- Run GDB
- Make a test
- Submit a PR and update the bug
He includes code and descriptions along the way and finishes out with further suggestions about feedback on the PR and how his own situation finished out.