Skip to content

ZendMM C++ api #19362

@devnexen

Description

@devnexen

Description

While working on intl migration to be fully in C++, I was thinking if we could provide a ZendMM C++ api instead of the actual C usage and, while it is not awful as is, we can use the opportunity to use templates instead of having to do super explicit casts.

e.g.

template<T, S = size_t> T ZendMM::fast_alloc(S len) {}

If it was only for intl, not sure that would be worth it but there is couple of C++ extensions out there.
(NB: Maybe reusing a subset of this old PR).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions