Skip to content

openssl_x509_parse_basic test fails with OpenSSL 3.2+ #13806

Closed
@andypost

Description

@andypost

Description

Attempted to build current master with the latest upgrades in Alpine (openssl 3.2.1)

The following test failed because of 2 extra fields displayed for the cert:

TEST 9775/17324 [ext/openssl/tests/openssl_x509_parse_basic.phpt]
========DIFF========
--
       ["signatureTypeNID"]=>
       int(65)
       ["purposes"]=>
-   array(9) {
+   array(10) {
         [1]=>
         array(3) {
           [0]=>
--
           [2]=>
           string(13) "timestampsign"
         }
+     [10]=>
+     array(3) {
+       [0]=>
+       bool(false)
+       [1]=>
+       bool(true)
+       [2]=>
+       string(8) "codesign"
+     }
       }
       ["extensions"]=>
       array(3) {
--
       ["signatureTypeNID"]=>
       int(65)
       ["purposes"]=>
-   array(9) {
+   array(10) {
         [1]=>
         array(3) {
           [0]=>
--
           bool(true)
           [2]=>
           string(18) "Time Stamp signing"
+     }
+     [10]=>
+     array(3) {
+       [0]=>
+       bool(false)
+       [1]=>
+       bool(true)
+       [2]=>
+       string(12) "Code signing"
         }
       }
       ["extensions"]=>
--
========DONE========
FAIL: openssl_x509_parse() tests [ext/openssl/tests/openssl_x509_parse_basic.phpt] 

PHP Version

master

Operating System

Alpinelinux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions