merge internal/constructor internal/destructor into internal/phpfunction