~/talk

Introduction to PHP Extensions

Talkat PHP UK Conference 2018 · 2018-02-14..02-16· [php]
slides:none on file

Converts a PHP function into a loadable C extension, showing the actual build steps (phpize, configure, make), the API calls used (zend_parse_parameters, PHP headers and macros), and the test setup (.phpt tests, pecl-friendly config.m4); implements a geospatial polygon-simplification library and measures real speedup — an example goes from 45s → 0.33s in PHP vs C — and shows the size, memory-care and return-value details that make the extension practical rather than theoretical.

AI-written summary · about

  1. 0:00Intro
  2. 1:31What are extensions?
  3. 3:56Wrapping Ubraries
  4. 4:54Unpossible in userland
  5. 6:28Why not implement something in an
  6. 9:38Ramer-Douglas-Peucker algorithm
  7. 10:59What makes up an Extension?
  8. 17:14Building the Extension
  9. 27:48Implementing the function
  10. 28:52Parsing Input Parameters
  11. 44:50Memory Management
  12. 46:08Example Test File
~/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.