Overview
Explore the world of PHP extensions in this 48-minute conference talk from PHP UK Conference 2018. Learn how to convert PHP functions into loadable C extensions through step-by-step examples. Compare performance between PHP and C implementations, discover the benefits of writing extensions, and understand why starting with simple tasks is crucial. Delve into topics such as wrapping libraries, implementing algorithms like Ramer-Douglas-Peucker, extension components, building process, function implementation, input parameter parsing, and memory management. Gain insights into testing extensions and grasp why rewriting entire frameworks in C isn't practical.
Syllabus
Intro
What are extensions?
Wrapping Ubraries
Unpossible in userland
Why not implement something in an
Ramer-Douglas-Peucker algorithm
What makes up an Extension?
Building the Extension
Implementing the function
Parsing Input Parameters
Memory Management
Example Test File
Taught by
PHP UK Conference