Test Failure Report for ext/openssl/tests/004.phpt ('openssl_csr_new() tests')
Script
1:
<?php 2: 3: $a = 1; 4: var_dump(openssl_csr_new(1,$a)); 5: var_dump(openssl_csr_new(1,$a,1,1)); 6: $a = array(); 7: var_dump(openssl_csr_new(array(), $a, array('config' => __DIR__ . DIRECTORY_SEPARATOR . 'openssl.cnf'), array())); 8: 9: //this leaks 10: $a = array(1,2); 11: $b = array(1,2); 12: var_dump(openssl_csr_new($a, $b, array('config' => __DIR__ . DIRECTORY_SEPARATOR . 'openssl.cnf'))); 13: 14: 15: echo "Done\n"; 16: ?> 17:
Expected
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; check error queue and value of string_mask OpenSSL option if illegal characters are reported) in %s on line %d
bool(false)
resource(%d) of type (OpenSSL X.509 CSR)
Done
Output
Warning: openssl_csr_new() expects parameter 1 to be array, integer given in /var/php_gcov/PHP_5_5/ext/openssl/tests/004.php on line 4
NULL
Warning: openssl_csr_new() expects parameter 1 to be array, integer given in /var/php_gcov/PHP_5_5/ext/openssl/tests/004.php on line 5
NULL
Warning: openssl_csr_new(): key array must be of the form array(0 => key, 1 => phrase) in /var/php_gcov/PHP_5_5/ext/openssl/tests/004.php on line 7
** ERROR: process timed out **
Diff
009+ ** ERROR: process timed out **
009- Warning: openssl_csr_new(): add1_attr_by_txt challengePassword_min -> 4 (failed; check error queue and value of string_mask OpenSSL option if illegal characters are reported) in %s on line %d
010- bool(false)
011- resource(%d) of type (OpenSSL X.509 CSR)
012- Done
Generated at Wed, 15 May 2013 22:03:26 +0000 (7 days ago)
|