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:
@@ -69,6 +69,9 @@ class Zend_Io_StringWriter extends Zend_Io_Writer
|
||||
*/
|
||||
public function toString()
|
||||
{
|
||||
if ($this->getSize() == 0) {
|
||||
return '';
|
||||
}
|
||||
$offset = $this->getOffset();
|
||||
$this->setOffset(0);
|
||||
$data = fread($this->getFileDescriptor(), $this->getSize());
|
||||
|
||||
Reference in New Issue
Block a user