mirror of
https://github.com/php/php-src.git
synced 2026-04-29 19:23:22 +02:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
25 lines
388 B
PHP
25 lines
388 B
PHP
--TEST--
|
|
Bug #69803: gmp_random_range() modifies second parameter if GMP number
|
|
--EXTENSIONS--
|
|
gmp
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = gmp_init(100);
|
|
$b = gmp_init(200);
|
|
echo $a . ", ", $b . "\n";
|
|
gmp_random_range($a, $b);
|
|
echo $a . ", ", $b . "\n";
|
|
|
|
$b = gmp_init(200);
|
|
echo $a . ", ", $b . "\n";
|
|
gmp_random_range(100, $b);
|
|
echo $a . ", ", $b . "\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
100, 200
|
|
100, 200
|
|
100, 200
|
|
100, 200
|