• File: class.snaplib.u.stream.php
  • Full Path: /home/chassiw/www/wp-content/plugins/duplicator/lib/snaplib/class.snaplib.u.stream.php
  • File size: 537 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
if(!class_exists('SnapLibStreamU')) {
class SnapLibStreamU
{
    public static function streamGetLine($handle, $length, $ending)
    {
        $line = stream_get_line($handle, $length, $ending);

        if ($line === false) {
            throw new Exception('Error reading line.');
        }

        return $line;
    }
}
}