Closed UVLabs closed 5 years ago
We use php-graph-sdk on PHP 7.2.x without any issues. The functions / constants you mentioned are only used on older PHP versions (like 5.x), for example:
// Check for PHP 7's CSPRNG first to keep mcrypt deprecation messages from appearing in PHP 7.1.
if (function_exists('random_bytes')) {
return new RandomBytesPseudoRandomStringGenerator();
}
// Since openssl_random_pseudo_bytes() can sometimes return non-cryptographically
// secure pseudo-random strings (in rare cases), we check for mcrypt_create_iv() next.
if (function_exists('mcrypt_create_iv')) {
return new McryptPseudoRandomStringGenerator();
}
Thanks @UVLabs for your concern about PHP 7.2! But as @pako-pl said, it's optional, so I'm closing this.