Eliminate unnecessary version checks
This commit is contained in:
parent
4d92e77d00
commit
8f7db244de
|
@ -161,14 +161,15 @@ class PHPExcel_Shared_OLE_ChainedBlockStream
|
||||||
*/
|
*/
|
||||||
public function stream_eof()
|
public function stream_eof()
|
||||||
{
|
{
|
||||||
$eof = $this->pos >= strlen($this->data);
|
// As we don't support below 5.2 anymore, this is simply redundancy and overhead
|
||||||
// Workaround for bug in PHP 5.0.x: http://bugs.php.net/27508
|
// $eof = $this->pos >= strlen($this->data);
|
||||||
if (version_compare(PHP_VERSION, '5.0', '>=') &&
|
// // Workaround for bug in PHP 5.0.x: http://bugs.php.net/27508
|
||||||
version_compare(PHP_VERSION, '5.1', '<')) {
|
// if (version_compare(PHP_VERSION, '5.0', '>=') &&
|
||||||
|
// version_compare(PHP_VERSION, '5.1', '<')) {
|
||||||
$eof = !$eof;
|
// $eof = !$eof;
|
||||||
}
|
// }
|
||||||
return $eof;
|
// return $eof;
|
||||||
|
return $this->pos >= strlen($this->data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue