1--TEST--
2openssl_sign() tests
3--EXTENSIONS--
4openssl
5--FILE--
6<?php
7$data = "Testing openssl_sign()";
8$privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
9$wrong = "wrong";
10
11var_dump(openssl_sign($data, $sign, $privkey, OPENSSL_ALGO_SHA256));                 // no output
12var_dump(openssl_sign($data, $sign, $wrong));
13?>
14--EXPECTF--
15bool(true)
16
17Warning: openssl_sign(): Supplied key param cannot be coerced into a private key in %s on line %d
18bool(false)
19