Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a1a8809

Browse files
Tweak MT_RAND_PHP deprecation message
1 parent 2792802 commit a1a8809

16 files changed

+18
-18
lines changed

‎ext/random/random.stub.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @var int
1313
* @cvalue MT_RAND_PHP
1414
*/
15-
#[\Deprecated(since: '8.3', message: 'as it uses a problematic version of Mt19937')]
15+
#[\Deprecated(since: '8.3', message: 'as it uses a biased non-standard variant of Mt19937')]
1616
const MT_RAND_PHP = UNKNOWN;
1717

1818
#[\Deprecated(since: '8.4', message: "use \\Random\\Randomizer::getFloat() instead")]

‎ext/random/random_arginfo.h‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎ext/random/tests/01_functions/array_rand_mt_rand_php.phpt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var_dump(
2424
);
2525
?>
2626
--EXPECTF--
27-
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a problematic version of Mt19937 in %s on line %d
27+
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a biased non-standard variant of Mt19937 in %s on line %d
2828

2929
Deprecated: The MT_RAND_PHP variant of Mt19937 is deprecated in %s on line %d
3030
string(11) "found key 0"

‎ext/random/tests/01_functions/bug75514.phpt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ mt_srand(0, MT_RAND_PHP);
66
var_dump(mt_rand(0,999999999), mt_rand(0,999));
77
?>
88
--EXPECTF--
9-
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a problematic version of Mt19937 in %s on line %d
9+
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a biased non-standard variant of Mt19937 in %s on line %d
1010

1111
Deprecated: The MT_RAND_PHP variant of Mt19937 is deprecated in %s on line %d
1212
int(448865905)

‎ext/random/tests/01_functions/mt_rand_value.phpt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ echo $x.PHP_EOL;
3838

3939
?>
4040
--EXPECTF--
41-
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a problematic version of Mt19937 in %s on line %d
41+
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a biased non-standard variant of Mt19937 in %s on line %d
4242

4343
Deprecated: The MT_RAND_PHP variant of Mt19937 is deprecated in %s on line %d
4444
1614640687

‎ext/random/tests/03_randomizer/compatibility_mt_rand.phpt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ die('success');
4646
--EXPECTF--
4747
MT_RAND_PHP
4848

49-
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a problematic version of Mt19937 in %s on line %d
49+
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a biased non-standard variant of Mt19937 in %s on line %d
5050

5151
Deprecated: The MT_RAND_PHP variant of Mt19937 is deprecated in %s on line %d
5252

53-
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a problematic version of Mt19937 in %s on line %d
53+
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a biased non-standard variant of Mt19937 in %s on line %d
5454

5555
Deprecated: The MT_RAND_PHP variant of Mt19937 is deprecated in %s on line %d
5656
MT_RAND_MT19937

‎ext/random/tests/03_randomizer/methods/getBytes.phpt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ die('success');
3939

4040
?>
4141
--EXPECTF--
42-
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a problematic version of Mt19937 in %s on line %d
42+
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a biased non-standard variant of Mt19937 in %s on line %d
4343

4444
Deprecated: The MT_RAND_PHP variant of Mt19937 is deprecated in %s on line %d
4545
Random\Engine\Mt19937

‎ext/random/tests/03_randomizer/methods/getBytesFromString.phpt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ die('success');
4343

4444
?>
4545
--EXPECTF--
46-
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a problematic version of Mt19937 in %s on line %d
46+
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a biased non-standard variant of Mt19937 in %s on line %d
4747

4848
Deprecated: The MT_RAND_PHP variant of Mt19937 is deprecated in %s on line %d
4949
Random\Engine\Mt19937

‎ext/random/tests/03_randomizer/methods/getFloat.phpt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ die('success');
4242

4343
?>
4444
--EXPECTF--
45-
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a problematic version of Mt19937 in %s on line %d
45+
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a biased non-standard variant of Mt19937 in %s on line %d
4646

4747
Deprecated: The MT_RAND_PHP variant of Mt19937 is deprecated in %s on line %d
4848
Random\Engine\Mt19937

‎ext/random/tests/03_randomizer/methods/getInt.phpt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ die('success');
4646

4747
?>
4848
--EXPECTF--
49-
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a problematic version of Mt19937 in %s on line %d
49+
Deprecated: Constant MT_RAND_PHP is deprecated since 8.3, as it uses a biased non-standard variant of Mt19937 in %s on line %d
5050

5151
Deprecated: The MT_RAND_PHP variant of Mt19937 is deprecated in %s on line %d
5252
Random\Engine\Mt19937

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /