Skip to content

openssl_private_decrypt - different behaviour on alpine v3.20 #15936

@mrVrAlex

Description

@mrVrAlex

Description

Hello,
try run following code in 2 docker images

  • php:8.3.11-alpine3.20

  • php:8.3.11-alpine3.19

and check results.
openssl_private_decrypt not getting error.
In old Alpine version results is expected

https://3v4l.org/vrTcG#v8.3.11

Resulted (for alpine 3.20) in this output:

bool(true)
bool(false)

But I expected this output instead (alpine 3.19):

bool(false)
string(48) "error:0200009F:rsa routines::pkcs decoding error"

Please help understand. It is some problem with OpenSSL in Alpine or it is problem somewhere in PHP source??

PHP Version

PHP 8.3.11

Operating System

Alpine 3.20

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