Open YuanchengJiang opened 1 month ago
Apparently, the library aborts, instead of signaling failure by some other means. At least mpir 3.0.0, which we use on Windows (and which is no longer maintained), aborts even on memory allocation failures. If gmplib behaves the same, it might not something we can fix.
I think we should call mp_set_memory_functions()
to install ZendMM.
PS: see #16507.
Possibly partial fix for this issue on Windows: https://github.com/BrianGladman/mpir/commit/33be9007f95b85230da2330ef3ed525896370cc2
Description
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
nightly
Operating System
ubuntu 22.04