Skip to content

Warning: fread() in Parser.php #151

@st2cs

Description

@st2cs

When a 0 length template is loaded PHP sends a warning.
"Warning: fread(): Length parameter must be greater than 0 in (...)"

The warning comes from the metehod "compileFile", in the line
"$this->templateInfo['code'] = $code = fread($fp, filesize($templateFilepath));" in the Parser.php file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions