Skip to content

sscanf with 0 arguments should be allowed when return value is passed to variables #125

Open

Description

@boesing

In case that sscanf is being requested with 0 arguments (besides the format), sscanf returns the values instead of setting the arguments by reference.

For example:

[$integer, $string] = sscanf('1 GB', '%d%s');

Becomes:

$integer = 1;
$string = 'GB';

Therefore, 0 arguments are okay for sscanf.

Activity

  1. added
    bug
    on Sep 14, 2022
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

    bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions