Skip to content

Recursion encoded as NULL #142

@m6w6

Description

@m6w6

Code:

$ sapi/cli/php -r '$a=[&$a]; $b = msgpack_unpack(msgpack_pack($a)); var_dump($b);'

Expected output:

array(1) {
  [0]=>
  &array(1) {
    [0]=>
    *RECURSION*
  }
}

Actual output:

array(1) {
  [0]=>
  array(1) {
    [0]=>
    NULL
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions