~/talk

A field guide to writing PHP extensions

Talkat Laracon EU 2025 · 2025-02-03..02-04· [php]
slides:none on file

Step‑by‑step reveals: scaffold an extension, run buildconf configure make and make install with clang and brew, generate arginfo from stubs, write C using zvals and the PHP function macros, add phpt tests and run them, and mind memory leaks with tools like V grind. The demo builds a PHP module that converts altimeter and QNH values, compiles and installs, tests pass and runtime calls return the expected numbers (1013 and 991).

AI-written summary · about

  1. 0:00Introduction and giveaway
  2. 1:04About the speaker
  3. 2:32Motivation and CDD
  4. 5:05Understanding extensions
  5. 6:02Types of PHP extensions
  6. 7:22Use cases for extensions
  7. 9:36Getting started
  8. 11:52Compiling PHP
  9. 13:12Scaffolding an extension
  10. 15:04Lifecycle and internals
  11. 17:49Building the QNH extension
  12. 19:40Implementation details
  13. 22:11Testing and installation
  14. 24:16Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.