public function __construct($filename, $mode = 'at', $delay = false) { parent::__construct($filename, $mode, $delay); if (!file_exists($filename)) { $this->dev = $this->ino = -1; } else { $stats = stat($filename); $this->dev = $stats['dev']; $this->ino = $stats['ino']; } }