Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: fread() in Parser.php #151

Open
st2cs opened this issue May 14, 2014 · 2 comments
Open

Warning: fread() in Parser.php #151

st2cs opened this issue May 14, 2014 · 2 comments

Comments

@st2cs
Copy link

st2cs commented May 14, 2014

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

@feulf
Copy link
Owner

feulf commented May 14, 2014

@st2cs please review #152

@Blackskyliner
Copy link

@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants