Skip to content

Overflow in gmp_random_bits #16501

Closed
Closed
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
var_dump(gmp_random_bits(PHP_INT_MAX));

Resulted in this output:

gmp: overflow in mpz type
Aborted (core dumped)

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions