Each UDF has three C/C++ functions
- • php_init(): check arguments, allocate memory, set up
- • php(): generate a row of results
- • php_deinit(): free memory, clean up
- • php_init() is called once per query
- • php() is called once per row in the result set
- • php_deinit() is called once per query