xref: /PHP-8.1/ext/openssl/tests/bug25614.phpt (revision 74859783)
1--TEST--
2openssl: get public key from generated private key
3--EXTENSIONS--
4openssl
5--SKIPIF--
6<?php
7if (!@openssl_pkey_new()) die("skip cannot create private key");
8?>
9--FILE--
10<?php
11$priv = openssl_pkey_new();
12$pub = openssl_pkey_get_public($priv);
13?>
14--EXPECTF--
15Warning: openssl_pkey_get_public(): Don't know how to get public key from this private key %s
16