mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-27 17:18:25 +00:00
Merge branch '2.0' into 3.0
This commit is contained in:
commit
08c27ae48a
@ -97,7 +97,7 @@ abstract class Random
|
||||
(isset($_POST) ? self::safe_serialize($_POST) : '') .
|
||||
(isset($_GET) ? self::safe_serialize($_GET) : '') .
|
||||
(isset($_COOKIE) ? self::safe_serialize($_COOKIE) : '') .
|
||||
// as of PHP 8.1 $GLOBALS cann't be accessed by reference, which eliminates
|
||||
// as of PHP 8.1 $GLOBALS can't be accessed by reference, which eliminates
|
||||
// the need for phpseclib_safe_serialize. see https://wiki.php.net/rfc/restrict_globals_usage
|
||||
// for more info
|
||||
(version_compare(PHP_VERSION, '8.1.0', '>=') ? serialize($GLOBALS) : self::safe_serialize($GLOBALS)) .
|
||||
|
Loading…
x
Reference in New Issue
Block a user