Sitelet https://github.com/feulf/raintpl3/issues/151
Skip to content

Warning: fread() in Parser.php #151

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

Activity

  1. feulf commented on May 14, 2014

    @feulf
    Owner

    @st2cs please review #152

  2. Blackskyliner commented on May 27, 2015

    @Blackskyliner

    @RainPHP Added #175 - should fix the error, I use this in production already. Sorry for the duplicated pull-request, but I didn't looked up the pending requests before creating mine.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions