Fix small bugs

git-svn-id: http://php-reader.googlecode.com/svn/branches/zend@169 51a70ab9-7547-0410-9469-37e369ee0574
This commit is contained in:
svollbehr
2010-03-06 18:17:56 +00:00
parent ebe67fdf7f
commit 089c866bc2
3 changed files with 11 additions and 4 deletions

View File

@@ -570,7 +570,11 @@ class Zend_Io_Reader
}
}
return substr($value, -2) == "\0\0" ? substr($value, 0, -2) : $value;
while (substr($value, -2) == "\0\0") {
$value = substr($value, 0, -2);
}
return $value;
}
/**