Home
last modified time | relevance | path

Searched refs:getInt (Results 1 – 17 of 17) sorted by relevance

/PHP-8.2/Zend/tests/
H A Dprototype_range.phpt8 public function getInt(): int { return 0; }
11 return $this->getInt();
16 public function getInt(): int { return 1; }
/PHP-8.2/ext/random/tests/03_randomizer/methods/
H A DgetInt_gh9415.phpt2 GH-9415: Randomizer::getInt(0, 2**32 - 1) with Mt19937 always returns 1
11 var_dump($randomizer->getInt(-2147483648, 2147483647));
14 var_dump($randomizer->getInt(-2147483648, 2147483647));
H A DgetInt_expansion_32.phpt2 Random: Randomizer: getInt(): Returned values with insufficient bits are correctly expanded
21 var_dump(bin2hex(pack('V', $randomizer->getInt(0, 0x00FF_FFFF))));
H A DgetInt.phpt2 Random: Randomizer: getInt(): Basic functionality
31 $result = $randomizer->getInt(-$i, $i);
40 $randomizer->getInt(PHP_INT_MIN, PHP_INT_MAX);
H A DgetInt_expansion_64.phpt2 Random: Randomizer: getInt(): Returned values with insufficient bits are correctly expanded (64 Bit)
23 var_dump(bin2hex(pack('P', $randomizer->getInt(0, 0x00FF_FFFF_FFFF_FFFF))));
/PHP-8.2/ext/random/tests/03_randomizer/
H A Dcompatibility_mt_rand.phpt21 if ($randomizer->getInt(0, $i) !== mt_rand(0, $i)) {
22 die("failure: state differs at {$i} for getInt()");
38 if ($randomizer->getInt(0, $i) !== mt_rand(0, $i)) {
39 die("failure: state differs at {$i} for getInt()");
H A Dserialize.phpt28 $randomizer->getInt(0, $i);
34 if ($randomizer->getInt(0, $i) !== $randomizer2->getInt(0, $i)) {
H A Dreadonly.phpt20 if ($randomizer->getInt(0, $i) !== $referenceRandomizer->getInt(0, $i)) {
H A Dcompatibility_user.phpt27 $native = $native_randomizer->getInt(0, $i);
28 $user = $user_randomizer->getInt(0, $i);
H A Dengine_unsafe_biased.phpt23 var_dump(randomizer()->getInt(0, 1234));
H A Dengine_unsafe_empty_string.phpt23 var_dump(randomizer()->getInt(0, 1234));
H A Dengine_unsafe_nul.phpt23 var_dump(randomizer()->getInt(0, 1234));
/PHP-8.2/ext/opcache/tests/opt/
H A Dverify_return_type.phpt20 final public function getInt(): int {
26 public function getInt(): int {
30 return $this->getInt();
95 Test1::getInt:
103 Test2::getInt:
113 0000 INIT_METHOD_CALL 0 THIS string("getInt")
/PHP-8.2/ext/random/
H A Drandom.stub.php136 public function getInt(int $min, int $max): int {} function in Random\\Randomizer
H A Drandom_arginfo.h134 ZEND_METHOD(Random_Randomizer, getInt);
210 ZEND_ME(Random_Randomizer, getInt, arginfo_class_Random_Randomizer_getInt, ZEND_ACC_PUBLIC)
H A Drandomizer.c113 PHP_METHOD(Random_Randomizer, getInt) in PHP_METHOD() argument
/PHP-8.2/
H A DNEWS2285 . Splitted Random\Randomizer::getInt() (without arguments) to
2297 . Fixed bug GH-9415 (Randomizer::getInt(0, 2**32 - 1) with Mt19937
2299 . Fixed Randomizer::getInt() consistency for 32-bit engines. (timwolla)

Completed in 31 milliseconds