[php-src] Issue #19362: ZendMM C++ api
| From: | devnexen | Date: | Mon, 04 Aug 2025 09:38:43 +0000 |
| Subject: | [php-src] Issue #19362: ZendMM C++ api | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-250555@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/19362
Author: 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.
```c++
template<T, S = size_t> T ZendMM::fast_alloc(len S) {}
```
If it was only for intl, not sure that would be worth it but there is couple of C++ extensions out
there.