~/talk

Introduction to PHP Extensions

Talkat PHP fwdays'20 online · 2020-05-30..05-31· [php]
slides:none on file

Shows how a real geospatial PHP extension wraps a C implementation of the RDP/Douglas‑Peucker algorithm, with build files (config.m4, config.w32), phpize/configure/make steps and phpt tests; converting zvals with parse_parameters, manual memory management and module init/shutdown hooks. The C version runs Belgium simplification in 0.37s versus ~45s in PHP (>100× faster). Debugging uses gdb and Valgrind; the extension builds, passes tests, and frees memory when implemented correctly.

AI-written summary · about

  1. 0:00Introduction
  2. 0:42Todays topic
  3. 1:13What are extensions
  4. 1:53Why write an extension
  5. 2:11Wrapping libraries
  6. 3:39Limitations
  7. 4:22Speed
  8. 4:49Time
  9. 7:06Map
  10. 7:37Polygons
  11. 7:58RaymerDouglasPecker
  12. 9:01C Extension
  13. 9:14Config Files
  14. 11:32Contract Files
  15. 12:48How to Build an Extension
  16. 13:41Header File
  17. 18:33General Information
  18. 22:46Parse Parameters
  19. 26:38Data Types
  20. 28:27Conversion
  21. 28:57GeoHash
  22. 31:29RTP Simplify
  23. 32:52PHP Return
  24. 35:40Return Macros
  25. 36:44Memory Management
  26. 37:37Tests
  27. 39:09Debugging Tools
  28. 40:33Any Questions
  29. 41:09Thank you
  30. 42:26PHP Extensions
  31. 47:00Global variables
  32. 48:10Exception hook
  33. 49:30Exception class
  34. 50:08Extensions API
  35. 51:34Publish
  36. 52:30Dependencies
  37. 54:10Conclusion
~/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.