Test: /ext/openssl/tests/ecc.phpt - Version 7.4.22    

There are 2 different diffs reported by users for this test.

Count Diff
25 (96%)
002+ bool(false) 003+ bool(false) 004+ 005+ Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in %s/ecc.php on line 18 006+ 007+ Notice: Trying to access array offset on value of type null in %s/ecc.php on line 19 008+ NULL 009+ 010+ Notice: Trying to access array offset on value of type null in %s/ecc.php on line 20 011+ int(0) 002- resource(%d) of type (OpenSSL key) 004- Warning: openssl_pkey_new(): Unknown elliptic curve (short) name invalid_cuve_name in %s on line %d 006- int(384) 007- int(215) 008- string(9) "secp384r1" 010- resource(%d) of type (OpenSSL key) 011- bool(true) 013+ Notice: Trying to access array offset on value of type null in %s/ecc.php on line 21 014+ 015+ Notice: Trying to access array offset on value of type null in %s/ecc.php on line 21 016+ NULL 017+ 018+ Notice: Trying to access array offset on value of type null in %s/ecc.php on line 22 019+ bool(false) 014- resource(%d) of type (OpenSSL key) 016- resource(%d) of type (OpenSSL X.509 CSR) 018- array(1) { 019- ["d"]=> 020- string(%d) "%a" 021- } 022- resource(%d) of type (OpenSSL X.509) 021+ 022+ Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in %s/ecc.php on line 27 024- bool(true) 026+ NULL 028+ bool(false) 029+ 030+ Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in %s/ecc.php on line 52 032+ 033+ Notice: Trying to access array offset on value of type null in %s/ecc.php on line 55 034+ 035+ Notice: Trying to access array offset on value of type null in %s/ecc.php on line 55 036+ 037+ Warning: array_diff(): Expected parameter 1 to be an array, null given in %s/ecc.php on line 55 038+ NULL 039+ 040+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in %s/ecc.php on line 57 041+ bool(false) 043+ bool(false)
1 (4%)
002+ 003+ Warning: openssl_pkey_new(): private key length is too short; it needs to be at least 384 bits, not 0 in %s/ecc.php on line 7 004+ bool(false) 002- resource(%d) of type (OpenSSL key) 006- int(384) 007- int(215) 008- string(9) "secp384r1" 009- bool(true) 010- resource(%d) of type (OpenSSL key) 011- bool(true) 008+ 009+ Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in %s/ecc.php on line 18 010+ 011+ Notice: Trying to access array offset on value of type null in %s/ecc.php on line 19 012+ NULL 013+ 014+ Notice: Trying to access array offset on value of type null in %s/ecc.php on line 20 015+ int(0) 016+ 017+ Notice: Trying to access array offset on value of type null in %s/ecc.php on line 21 018+ 019+ Notice: Trying to access array offset on value of type null in %s/ecc.php on line 21 020+ NULL 021+ 022+ Notice: Trying to access array offset on value of type null in %s/ecc.php on line 22 023+ bool(false) 024+ 025+ Warning: openssl_pkey_new(): private key length is too short; it needs to be at least 384 bits, not 0 in %s/ecc.php on line 24 026+ bool(false) 027+ 028+ Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in %s/ecc.php on line 27 029+ bool(true) 014- resource(%d) of type (OpenSSL key) 016- resource(%d) of type (OpenSSL X.509 CSR) 018- array(1) { 019- ["d"]=> 020- string(%d) "%a" 021- } 022- resource(%d) of type (OpenSSL X.509) 024- bool(true) 032+ 033+ Warning: openssl_csr_new(): private key length is too short; it needs to be at least 384 bits, not 0 in %s/ecc.php on line 43 034+ 035+ Warning: openssl_csr_new(): Unable to generate a private key in %s/ecc.php on line 43 036+ NULL 038+ 039+ Warning: openssl_csr_new(): private key length is too short; it needs to be at least 384 bits, not 0 in %s/ecc.php on line 49 040+ 041+ Warning: openssl_csr_new(): Unable to generate a private key in %s/ecc.php on line 49 042+ bool(false) 043+ 044+ Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in %s/ecc.php on line 52 046+ 047+ Notice: Trying to access array offset on value of type null in %s/ecc.php on line 55 048+ 049+ Notice: Trying to access array offset on value of type null in %s/ecc.php on line 55 050+ 051+ Warning: array_diff(): Expected parameter 1 to be an array, null given in %s/ecc.php on line 55 052+ NULL 053+ 054+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in %s/ecc.php on line 57 055+ bool(false) 057+ bool(false) 058+ 059+ Warning: openssl_pkey_new(): private key length is too short; it needs to be at least 384 bits, not 0 in %s/ecc.php on line 63