~/talk

PHP Extension Development with C++

Talkat FrOSCon 2012 · 2012-08-25..08-26· [php]
slides:none on file

How to build PHP extensions using C++ instead of plain C by compiling against the PHP C API with a C++ compiler. It demonstrates using C++ features—classes, exceptions, templates and the STL—and small wrapper layers around the PHP extension API to produce cleaner, easier-to-write extensions, starting from a typical C-style extension and evolving it with C++ techniques.

AI-written summary · about

  1. 0:00Introduction
  2. 1:20Why C++ for PHP extensions
  3. 2:35Traditional PHP extension with C API
  4. 7:50Registering functions with C API
  5. 10:04Module entry and function table
  6. 14:34Handling multiple functions
  7. 17:14Parameter handling and type conversion
  8. 20:39Defining functions with C++
  9. 25:11Macro-based function declaration
  10. 35:52C++ classes for PHP values
  11. 37:39Resources and further learning
  12. 39:55Q&A
~/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.