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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user