xref: /php-src/ext/openssl/tests/bug11054.phpt (revision 4d4b9604)
1--TEST--
2Bug #11054: Calling with a PEM public key results in error
3--EXTENSIONS--
4openssl
5--FILE--
6<?php
7
8$key_file_name = __DIR__ . '/bug11054.pem';
9$key_content = file_get_contents($key_file_name);
10openssl_get_publickey($key_content);
11var_dump(openssl_error_string());
12
13?>
14--EXPECT--
15bool(false)
16