Skip to content

Calling parse_ini_file with invalid ini file do not take the usual error handling path #5561

@nicolas-grekas

Description

@nicolas-grekas
<?php

set_error_handler(function() {var_dump(func_get_args());});
@parse_ini_file(__FILE__);

displays "syntax error, unexpected JUNK, expecting $end or TC_SECTION or TC_LABEL or END_OF_LINE".

But the error should be @-silenced, and the user error handler should be called also.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions