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.



Gabriel Caruso

October 27, 2018


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

  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?



  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)

  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