From: Antony Dovgal Date: Tue, 5 Sep 2006 14:04:36 +0000 (+0000) Subject: add new test for multiple leaks in openssl_csr_new() X-Git-Tag: RELEASE_1_0_0RC1~1767 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c977ee076dcfedb4d4f2dcad4d7c0ef6172c39f;p=php add new test for multiple leaks in openssl_csr_new() --- diff --git a/ext/openssl/tests/004.phpt b/ext/openssl/tests/004.phpt new file mode 100644 index 0000000000..b9c41590cf --- /dev/null +++ b/ext/openssl/tests/004.phpt @@ -0,0 +1,34 @@ +--TEST-- +openssl_csr_new() tests +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: openssl_csr_new() expects parameter 1 to be array, integer given in %s on line %d +NULL + +Warning: openssl_csr_new() expects parameter 1 to be array, integer given in %s on line %d +NULL + +Warning: openssl_csr_new(): key array must be of the form array(0 => key, 1 => phrase) in %s on line %d + +Warning: openssl_csr_new(): add1_attr_by_txt challengePassword_min -> 4 (failed) in %s on line %d +bool(false) +resource(%d) of type (OpenSSL X.509 CSR) +Done