PHP in the previous source code to the git management, but also in the github (https://github.com/php/php-src) on the image, so that more developers to contribute code for PHP. this article is intended for Chinese students... "> <LINKhref =" http: // www. php100
PHP in the previous source code to the git management, but also in the github (https://github.com/php/php-src) on the image, so that more developers to contribute code for PHP.
Today, I wrote this article to help students in China who are willing to contribute to the PHP open-source community. I will give an example of how to contribute your wisdom to PHP.
Now, if you want to contribute a new feature, or simply, you want to fix a bug for PHP (in general, you can find the bug reported by PHP here: Register github.
2. fork PHP source code, there is a fork button in the top right corner of the PHP Github page, click it
3. After Fork, you will have a PHP source code repository of your own. now you can modify the source code of PHP in this repository to fix bugs.
4. after the repair is completed, you submit it to your own PHP repository. Then, in the upper right corner of the Github page of your PHP source code repository, there will be a pull request button. click it.
5. then, fill in the relevant information, Github will send a new pull request email containing your updated Pull Request to the PHP pull request Contact Group (you do not have to worry about your english, as long as you can say it, we can understand it. of course, if you really don't want to write English, it doesn't matter. if you write Chinese, I can handle it. I can't handle it, I will also translate for you ).
6. finally, if PHP Committers think that your repair is correct (there are some options to pay attention to contributing code to PHP, I will stay below ). it will Merge your Pull Request to the PHP source code.
There are several points to note when contributing source code to PHP (common errors ):
1. write only the code compatible with C89. for example, do not use a single line comment (//). The variable definition must be prior to all statements (starting with block )..
2. variable naming, which follows the existing PHP specifications. do not use hump naming.
3. for some minor updates, such as spelling errors in the code, we encourage you to submit patches on bugs.php.net. after all, Merge Pull Request may be troublesome sometimes.
For more PHP code specifications, see Submitting patch.