mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
18 lines
484 B
PHP
18 lines
484 B
PHP
--TEST--
|
|
openssl_sign() tests
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("openssl")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
$data = "Testing openssl_sign()";
|
|
$privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
|
|
$wrong = "wrong";
|
|
|
|
var_dump(openssl_sign($data, $sign, $privkey)); // no output
|
|
var_dump(openssl_sign($data, $sign, $wrong));
|
|
?>
|
|
--EXPECTF--
|
|
bool(true)
|
|
|
|
Warning: openssl_sign(): Supplied key param cannot be coerced into a private key in %s on line %d
|
|
bool(false)
|