[Pkg-owncloud-commits] [php-sabre-vobject] 98/128: It's a bit weird but this should put hhvm in line with vanilla php.
David Prévot
taffit at moszumanska.debian.org
Tue May 20 23:11:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 87c76147dfbb118f3f2d5d97ea24ecdaf132fe44
Author: Evert Pot <evert at rooftopsolutions.nl>
Date: Wed Apr 2 19:33:07 2014 -0400
It's a bit weird but this should put hhvm in line with vanilla php.
---
lib/Sabre/VObject/Parser/MimeDir.php | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/Sabre/VObject/Parser/MimeDir.php b/lib/Sabre/VObject/Parser/MimeDir.php
index 24b5683..61245a5 100644
--- a/lib/Sabre/VObject/Parser/MimeDir.php
+++ b/lib/Sabre/VObject/Parser/MimeDir.php
@@ -231,11 +231,12 @@ class MimeDir extends Parser {
} else {
do {
$eof = feof($this->input);
- if ($eof) {
- throw new EofException('End of document reached prematurely');
- }
$rawLine = fgets($this->input);
+
+ if ($eof || (feof($this->input) && $rawLine===false)) {
+ throw new EofException('End of document reached prematurely');
+ }
if ($rawLine === false) {
throw new ParseException('Error reading from input stream');
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list