Skip to content

A reference to a nested element of a mixed-key array ($q = &$m['b'][0]; $q++) reads back double bits. #251

Closed

Description

@blacktrs

Summary

A reference to a nested element of a mixed-key array ($q = &$m['b'][0]; $q++) reads back double bits.

Repro

<?php
$m = ['a' => 1, 'b' => [1, 2]];
$q = &$m['b'][0];
$q++;
echo $m['b'][0], "|", $q, "\n";

Expected (php)

2|2

Actual (manticore 124c1fdf, Darwin arm64)

4607182418800017408|1

Tracking

Known-bug repro: tests/aot/repro/wrong/ref_nested_mixed_map_elem.php — bash tests/aot/xfail.sh -k ref_nested_mixed_map_elem reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugwrong-answer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions