1--TEST-- 2Bug #80747: Providing RSA key size < 512 generates key that crash PHP 3--EXTENSIONS-- 4openssl 5--FILE-- 6<?php 7 8$conf = array( 9 'config' => __DIR__ . DIRECTORY_SEPARATOR . 'openssl.cnf', 10 'private_key_bits' => 511, 11); 12var_dump(openssl_pkey_new($conf)); 13var_dump(openssl_error_string() !== false); 14 15?> 16--EXPECT-- 17bool(false) 18bool(true) 19