Skip to content

zend_ast_export() - float number is not preserved #18695

Description

@mvorisek

Description

The following code:

<?php

assert(!is_float(0.0));

Resulted in this output:

Uncaught AssertionError: assert(!is_float(0))

But I expected this output instead:

Uncaught AssertionError: assert(!is_float(0.0))

online repro: https://3v4l.org/Rt2QB

The dumped AST must preserve the original meaning.

PHP Version

any

Operating System

any

Metadata

Metadata

Assignees

No one assigned

    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