PHP Extensions
summary
Slides show how to build a real PHP extension end to end: install GCC make autoconf and PHP development headers, configure PHP with enable-debug and enable-maintainers, write a simple hello() function that compiles via config.m4 and make and runs in minutes, parse parameters into ZVAL/ZV types, copy/separate strings to avoid mutating user data, use emalloc vs malloc for request-scoped memory, hook MINIT/RINIT lifecycles, link external libraries with AC_TRY_RUN and handle version checks.
AI-written summary · about
chapters (17)
- 0:00Start
- 1:17Php Development Headers
- 4:33Accepting Parameters
- 14:01Variable Arguments
- 14:12Variable Argument
- 16:01Types of Memory Php Extensions
- 19:24Returning Values from Functions
- 21:24Sp Printf Function
- 25:27Life Cycles of the Php Runtime
- 25:58Requests
- 26:36System Level Callbacks
- 27:59Work Dependencies
- 31:05Thread Global
- 34:25Namespaces
- 35:54Declaring Methods
- 38:34Custom Objects
- 42:31Windows for Php








