bug72165.phpt 581 B

1234567891011121314
  1. --TEST--
  2. Bug #72165 Null pointer dereference - openssl_csr_new
  3. --EXTENSIONS--
  4. openssl
  5. --FILE--
  6. <?php
  7. $var0 = [0 => "hello", 1 => "world"];
  8. $options = ['config' => __DIR__ . DIRECTORY_SEPARATOR . 'openssl.cnf'];
  9. $var2 = openssl_csr_new([0], $var0, $options, [0]);
  10. ?>
  11. --EXPECTF--
  12. Warning: openssl_csr_new(): dn: numeric fild names are not supported in %sbug72165.php on line %d
  13. Warning: openssl_csr_new(): add1_attr_by_txt challengePassword_min -> 4 (failed; check error queue and value of string_mask OpenSSL option if illegal characters are reported) in %sbug72165.php on line %d