diff options
author | Anatol Belski <ab@php.net> | 2016-02-16 08:06:38 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-02-16 08:06:38 +0100 |
commit | 84014cf73392c5860621c4c02650475c8d83dc67 (patch) | |
tree | eaddddc05bab90c638a0e689cb3ca88fcb6ec4c8 /ext/openssl | |
parent | 0fccd154bdb27476289bab18a9112fb7b20ae607 (diff) | |
parent | 974dea5e88c689320190dd91f5c51fc4dff07e49 (diff) | |
download | php-git-84014cf73392c5860621c4c02650475c8d83dc67.tar.gz |
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
improve test
Diffstat (limited to 'ext/openssl')
-rw-r--r-- | ext/openssl/tests/openssl_csr_new_basic.phpt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/openssl/tests/openssl_csr_new_basic.phpt b/ext/openssl/tests/openssl_csr_new_basic.phpt index a3a4746b39..e0f52d739f 100644 --- a/ext/openssl/tests/openssl_csr_new_basic.phpt +++ b/ext/openssl/tests/openssl_csr_new_basic.phpt @@ -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"; |