Precondition for the +1 from my side is:
- comply with the PCS!
- remove the keyword 'var' in CodeGen_Mysql_UDF_Extension and in CodeGen_Mysql_UDF_Element_Function:
Note: The PHP 4 method of declaring a variable with the var keyword is no longer valid for PHP 5 objects. For compatibility a variable declared in php will be assumed with public visibility, and a E_STRICT warning will be issued.
as you're coding for PHP5.