Skip to content

loadCSR: #2094

@ctoesca

Description

@ctoesca

Hello,

I use PHP 8.1.
When I call X509->loadCSR(), I get this error if some fields are not filled in:

explode(): Passing null to parameter #2 ($string) of type string is deprecated

Il solved this problem by adding this lines in X509 class:

private function &subArray(&$root, $path, $create = false)
{
        $false = false;
        if (!is_array($root)) {
            return $false;
        }

>       if (is_null($path)){
>           $path = '';
>       }

        ......
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions