summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Zelenka <bukka@php.net>2016-06-16 20:11:02 +0100
committerJakub Zelenka <bukka@php.net>2016-06-16 20:11:02 +0100
commit0c34f53c93d65ef4741a9c6493f84a13ab68cb72 (patch)
treecf4c81544fa86f8cac8d030d1cffaa1b2a520eeb
parent84948e63820fad817b526168531c62fc33a6c13f (diff)
downloadphp-git-0c34f53c93d65ef4741a9c6493f84a13ab68cb72.tar.gz
Fix incorrect error suppressing in openssl_error_string test
-rw-r--r--ext/openssl/tests/openssl_error_string_basic.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/tests/openssl_error_string_basic.phpt b/ext/openssl/tests/openssl_error_string_basic.phpt
index 76bc2d570a..82f3099264 100644
--- a/ext/openssl/tests/openssl_error_string_basic.phpt
+++ b/ext/openssl/tests/openssl_error_string_basic.phpt
@@ -128,8 +128,8 @@ echo "CSR errors\n";
@openssl_csr_get_subject("file://" . $invalid_file_for_read);
expect_openssl_errors('openssl_csr_get_subject open', ['02001002', '2006D080', '20068079', '0906D06C']);
// file or str csr is not correct PEM - failing PEM_read_bio_X509_REQ
-openssl_csr_get_subject($crt_file);
-@expect_openssl_errors('openssl_csr_get_subjec pem', ['0906D06C']);
+@openssl_csr_get_subject($crt_file);
+expect_openssl_errors('openssl_csr_get_subjec pem', ['0906D06C']);
// other possible cuases that are difficult to catch:
// - ASN1_STRING_to_UTF8 fails in add_assoc_name_entry