openssl tests fails on PHP rebuild
Merging !24411 (merged) and !24434 (merged) I got tests failed on builders (s390x and x86 fail only 5 tests)
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #52093 (openssl_csr_sign truncates $serial) [ext/openssl/tests/bug52093.phpt]
Bug #72165 Null pointer dereference - openssl_csr_new [ext/openssl/tests/bug72165.phpt]
Bug #80747: Providing RSA key size < 512 generates key that crash PHP [ext/openssl/tests/bug80747.phpt]
openssl_*() with OPENSSL_KEYTYPE_EC [ext/openssl/tests/ecc.phpt]
openssl_error_string() tests [ext/openssl/tests/openssl_error_string_basic.phpt]
TLS server rate-limits client-initiated renegotiation [ext/openssl/tests/stream_server_reneg_limit.phpt]
details are pointing to zero key-length on builders
TEST 3901/10930 [ext/openssl/tests/bug52093.phpt]
========DIFF========
001+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/bug52093.php on line 12
001- string(19) "9223372036854775807"
002+
003+ Notice: Trying to access array offset on value of type bool in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/bug52093.php on line 13
004+ NULL
========DONE========
TEST 3919/10930 [ext/openssl/tests/bug72165.phpt]
========DIFF========
001- Warning: openssl_csr_new(): dn: numeric fild names are not supported in %sbug72165.php on line %d
002-
003- 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 %sbug72165.php on line %d
========DONE========
TEST 3941/10930 [ext/openssl/tests/bug80747.phpt]
========DIFF========
002+ error:02001002:system library:fopen:No such file or directory
003+ error:2006D080:BIO routines:BIO_new_file:no such file
004+ error:0E064002:configuration file routines:CONF_load:system lib
========DONE========
TEST 3945/10930 [ext/openssl/tests/ecc.phpt]
========DIFF========
002+ bool(false)
003+ bool(false)
004+
005+ Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/ecc.php on line 18
006+
007+ Notice: Trying to access array offset on value of type null in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/ecc.php on line 19
008+ NULL
009+
010+ Notice: Trying to access array offset on value of type null in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/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 /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/ecc.php on line 21
014+
015+ Notice: Trying to access array offset on value of type null in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/ecc.php on line 21
016+ NULL
017+
018+ Notice: Trying to access array offset on value of type null in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/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 /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/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 /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/ecc.php on line 52
032+
033+ Notice: Trying to access array offset on value of type null in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/ecc.php on line 55
034+
035+ Notice: Trying to access array offset on value of type null in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/ecc.php on line 55
036+
037+ Warning: array_diff(): Expected parameter 1 to be an array, null given in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/ecc.php on line 55
038+ NULL
039+
040+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/ecc.php on line 57
041+ bool(false)
043+ bool(false)
========DONE========
TEST 3963/10930 [ext/openssl/tests/openssl_error_string_basic.phpt]
========DIFF========
008+ openssl_pkey_export_to_file write: no error code 2006D002
009+ openssl_pkey_export_to_file write: uncaught errors
010+ 02001002: error:02001002:system library:fopen:No such file or directory
011+ 2006D080: error:2006D080:BIO routines:BIO_new_file:no such file
012+ 0E064002: error:0E064002:configuration file routines:CONF_load:system lib
008- openssl_pkey_export_to_file write: ok
========DONE========
TEST 4008/10930 [ext/openssl/tests/stream_server_reneg_limit.phpt]
========DIFF========
001+ Warning: openssl_csr_new(): private key length is too short; it needs to be at least 384 bits, not 0 in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/CertificateGenerator.inc on line 128
001- resource(%d) of type (stream)
002+
003+ Warning: openssl_csr_new(): Unable to generate a private key in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/CertificateGenerator.inc on line 128
004+
005+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/CertificateGenerator.inc on line 132
006+
007+ Fatal error: Uncaught Exception: Failed to create certificate in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/CertificateGenerator.inc:135
008+ Stack trace:
009+ #0 /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/stream_server_reneg_limit.php(83): CertificateGenerator->saveNewCertAsFileWithKey('stream_security...', '/home/buildozer...')
010+ #1 {main}
011+ thrown in /home/buildozer/aports/community/php7/src/php-7.4.22/ext/openssl/tests/CertificateGenerator.inc on line 135
========DONE========