Skip to content

Empty string is an invalid expression for phpdbg-ev #16174

Closed

Description

@rrehbein

Description

The following series of commands generated the output:

docker run -it --rm php:8.3-cli-alpine phpdbg
[Welcome to phpdbg, the interactive PHP debugger, v8.3.12]
To get help using phpdbg type "help" and press enter
[Please report bugs to <http://bugs.php.net/report.php>]
prompt> ev $e = ''
[Parse Error: syntax error, unexpected input (input string or data), expecting end of command or # (pound sign)]
prompt> ev $e = ""
[Parse Error: syntax error, unexpected input (input string or data), expecting end of command or # (pound sign)]
prompt> ev $e = "e"
e

But I expected this output instead:
The empty strings in an expression for ev in phpdbg should not have triggered a parse-error.

Observed this issue in v8.2.21 as well.

PHP Version

8.3.12

Operating System

No response

Activity

  1. self-assigned this
    on Oct 2, 2024
  2. added a commit that references this issue on Oct 2, 2024
    354bab1
  3. added 3 commits that reference this issue on Oct 9, 2024
    6bcba24
    5c6fc09
    980d41c
  4. added a commit that references this issue on Oct 9, 2024
    4d32402
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions