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

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

Count Diff
1 (50%)
002+ bool(false)
003+ bool(false)
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
005+ Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in %s/ecc.php on line 18
006+ NULL
007+ int(0)
008+ NULL
009+ bool(false)
006- int(384)
007- int(215)
008- string(9) "secp384r1"
010- resource(%d) of type (OpenSSL key)
011- bool(true)
011+
012+ Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in %s/ecc.php on line 27
014- resource(%d) of type (OpenSSL key)
016+ NULL
016- resource(%d) of type (OpenSSL X.509 CSR)
018+ bool(false)
019+
020+ Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in %s/ecc.php on line 52
021+ bool(false)
022+
023+ Warning: array_diff(): Expected parameter 1 to be an array, null given in %s/ecc.php on line 55
024+ NULL
025+
026+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in %s/ecc.php on line 57
027+ bool(false)
028+ Testing openssl_x509_check_private_key
029+ bool(false)
018- array(1) {
019- ["d"]=>
020- string(%d) "%a"
021- }
022- resource(%d) of type (OpenSSL X.509)
023- Testing openssl_x509_check_private_key
025- bool(false)
026- Testing openssl_get_curve_names
027- bool(true)
031+ Testing openssl_get_curve_names
1 (50%)
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)
008+
009+ Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in %s/ecc.php on line 18
010+ NULL
011+ int(0)
012+ NULL
013+ bool(false)
014+
015+ 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
016+ bool(false)
017+
018+ Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in %s/ecc.php on line 27
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)
023- Testing openssl_x509_check_private_key
022+
023+ 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
024+
025+ Warning: openssl_csr_new(): Unable to generate a private key in %s/ecc.php on line 43
026+ NULL
025- bool(false)
026- Testing openssl_get_curve_names
027- bool(true)
028+
029+ 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
030+
031+ Warning: openssl_csr_new(): Unable to generate a private key in %s/ecc.php on line 49
032+ bool(false)
033+
034+ Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in %s/ecc.php on line 52
035+ bool(false)
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)
042+ Testing openssl_x509_check_private_key
043+ bool(false)
044+
045+ 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
047+ Testing openssl_get_curve_names