When using encryption today, I found that the two methods openssl_cipher_iv_length and openssl_random_pseudo_bytes cannot be used.
The error reported is: openssl_cipher_iv_length(): Unknown cipher algorithm