xref: /PHP-7.4/ext/openssl/tests/bug72165.phpt (revision 5afba67b)
1--TEST--
2Bug #72165 Null pointer dereference - openssl_csr_new
3--SKIPIF--
4<?php
5if (!extension_loaded("openssl")) die("skip");
6?>
7--FILE--
8<?php
9$var0 = array(0 => "hello", 1 => "world");
10$var2 = openssl_csr_new(array(0),$var0,null,array(0));
11?>
12==DONE==
13--EXPECTF--
14Warning: openssl_csr_new(): dn: numeric fild names are not supported in %sbug72165.php on line %d
15
16Warning: 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
17==DONE==
18