Contributing to PHP's Core

Contributing to PHP's Core

Even wanted to contribute to PHP's Core? This is your time! From tests to a new function, PHP is open for new contributors. Fixing bugs, document things, cleanups, refactorings, or even new small functions. In this talk, we're gonna see how the `is_countable` function was made, and what we can learn from that.

Video: https://youtu.be/8BTxmPppPeQ

A5f6a4724de2c2986c8cbd4f46d52a7c?s=128

Gabriel Caruso

October 27, 2018
Tweet

Transcript

  1. PHP Internals: coding for the Core by Gabriel Caruso phpCE

    2018
  2. Who am I? • Backend Developer at Leroy Merlin BRAZIL

    • PHP enthusiastic • PHPSP member • OSS contributor • Refactor/Talker/Stickers/ELEPHANTS lover
  3. Agenda Background- Where is PHP source code? - Building the

    Core - Coding a new function for PHP - Writing tests for PHP’s Core - Conclusion -
  4. Background

  5. Background

  6. Background

  7. Background

  8. None
  9. None
  10. None
  11. Background

  12. Where’s the PHP’s Core?

  13. https://git.php.net

  14. https://github.com/php/php-src

  15. How do we “use” the Core?

  16. None
  17. None
  18. None
  19. None
  20. None
  21. None
  22. Let’s code a function for PHP

  23. Couple of PHP’s Core stuff before we move on -

    .h files are the “””Interfaces””” of the .c files - C has macros, that we can understand as helper functions - C compiles the changed code every time we change it - Zend Parse Parameters (ZPP)
  24. https://github.com/php/php-src/blob/master/CONTRIBUTING.md#php-source-code-directory-structure

  25. None
  26. Writing tests for PHP - .phpt files are test files

    of php-internals - They are written in PHP - They have they on unique structure
  27. None
  28. Thank you