mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Merge branch 'PHP-7.0'
* PHP-7.0: improve test
This commit is contained in:
commit
08086d40a5
1 changed files with 6 additions and 4 deletions
|
@ -9,16 +9,18 @@ $a = 1;
|
|||
var_dump(openssl_csr_new(1,$a));
|
||||
var_dump(openssl_csr_new(1,$a,1,1));
|
||||
$a = array();
|
||||
var_dump(openssl_csr_new(array(), $a, array('config' => __DIR__ . DIRECTORY_SEPARATOR . 'openssl.cnf'), array()));
|
||||
|
||||
$conf = array('config' => dirname(__FILE__) . DIRECTORY_SEPARATOR . 'openssl.cnf');
|
||||
var_dump(openssl_csr_new(array(), $a, $conf, array()));
|
||||
|
||||
// this leaks
|
||||
$a = array(1,2);
|
||||
$b = array(1,2);
|
||||
var_dump(openssl_csr_new($a, $b, array('config' => __DIR__ . DIRECTORY_SEPARATOR . 'openssl.cnf')));
|
||||
var_dump(openssl_csr_new($a, $b, $conf));
|
||||
|
||||
// options type check
|
||||
$x = openssl_pkey_new();
|
||||
var_dump(openssl_csr_new(["countryName" => "DE"], $x, ["x509_extensions" => 0xDEADBEEF]));
|
||||
$x = openssl_pkey_new($conf);
|
||||
var_dump(openssl_csr_new(["countryName" => "DE"], $x, $conf + ["x509_extensions" => 0xDEADBEEF]));
|
||||
|
||||
|
||||
echo "Done\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue