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