Home
last modified time | relevance | path

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

/php-src/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-src/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_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))));
H A DgetInt.phpt2 Random: Randomizer: getInt(): Basic functionality
32 $result = $randomizer->getInt(-$i, $i);
41 $randomizer->getInt(PHP_INT_MIN, PHP_INT_MAX);
/php-src/ext/opcache/tests/opt/
H A Dtype_inference_final_class.phpt16 public function getInt(): int {
20 return $this->getInt();
32 Test::getInt:
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-src/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.phpt29 $randomizer->getInt(0, $i);
35 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.phpt28 $native = $native_randomizer->getInt(0, $i);
29 $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-src/ext/random/
H A Drandom.stub.php141 public function getInt(int $min, int $max): int {} function in Random\\Randomizer
H A Drandom_arginfo.h148 ZEND_METHOD(Random_Randomizer, getInt);
219 ZEND_ME(Random_Randomizer, getInt, arginfo_class_Random_Randomizer_getInt, ZEND_ACC_PUBLIC)
H A Drandomizer.c231 PHP_METHOD(Random_Randomizer, getInt) in PHP_METHOD() argument

Completed in 19 milliseconds