Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PHP-8.3: random: Fix unknown `mt_srand()` compatibility for unknown modes (#13544) Merge branch 'PHP-8.2' into PHP-8.3 Removed `REPORT_EXIT_STATUS=no` in libmysql tests Revert "Fix GH-13519: PGSQL_CONNECT_FORCE_RENEW with persistent connections." (#13546)
- Loading branch information
Showing
2 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--TEST-- | ||
mt_srand(): Test unknown modes | ||
--FILE-- | ||
<?php | ||
// MT_RAND_MT19937 | ||
mt_srand(1, 0); | ||
var_dump(mt_rand()); | ||
// MT_RAND_PHP | ||
mt_srand(1, 1); | ||
var_dump(mt_rand()); | ||
// Unknown | ||
mt_srand(1, 2); | ||
var_dump(mt_rand()); | ||
// Equivalent to 0 when cast as unsigned 8-bit integer | ||
mt_srand(1, 256); | ||
var_dump(mt_rand()); | ||
?> | ||
--EXPECTF-- | ||
int(895547922) | ||
|
||
Deprecated: The MT_RAND_PHP variant of Mt19937 is deprecated in %s on line %d | ||
int(1244335972) | ||
int(895547922) | ||
int(895547922) |