Ref https://github.com/php/php-src/pull/15404
https://github.com/php/php-src/issues/15384#issuecomment-2289845283