Skip to content

is_resource() of a mixed holding a denormal float dereferences the float's bits as a pointer (SIGSEGV) #331

Closed

Description

@blacktrs

Summary

is_resource() of a mixed holding a denormal float dereferences the float's bits as a pointer (SIGSEGV).

Repro

<?php
function f(mixed $v): bool { return is_resource($v); }
var_dump(f(1.5));
var_dump(f(1e-310));
var_dump(f(5e-324));

Expected (php)

bool(false)
bool(false)
bool(false)

Actual (manticore 2e07cc36, Darwin arm64)


[exit code 139 — SIGSEGV]

Tracking

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

Activity

  1. added
    bug
    crash
    on Oct 17, 2026
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

    bugcrash

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions