protected function convertToUseRealPath($filePath)
    {
        $realFilePath = $filePath;

        if ($this->isZipStream($filePath)) {
            if (preg_match('/zip:\/\/(.*)#(.*)/', $filePath, $matches)) {
                $documentPath = $matches[1];
                $documentInsideZipPath = $matches[2];
                $realFilePath = 'zip://' . realpath($documentPath) . '#' . $documentInsideZipPath;
            }
        } else {
            $realFilePath = realpath($filePath);
        }

        return $realFilePath;
    }
protected function convertToUseRealPath($filePath)
    {
        $realFilePath = $filePath;

        if ($this->isZipStream($filePath)) {
            if (preg_match('/zip:\/\/(.*)#(.*)/', $filePath, $matches)) {
                $documentPath = $matches[1];
                $documentInsideZipPath = $matches[2];
                $realFilePath = 'zip://' . realpath($documentPath) . '#' . $documentInsideZipPath;
            }
        } else {
            $realFilePath = realpath($filePath);
        }

        return $realFilePath;
    }
protected function convertToUseRealPath ( $ filePath ) { $ realFilePath = $ filePath ; if ( $ this -> isZipStream ( $ filePath ) ) { if ( preg_match ( '/zip:\/\/(.*)#(.*)/' , $ filePath , $ matches ) ) { $ documentPath = $ matches [ 1 ] ; $ documentInsideZipPath = $ matches [ 2 ] ; $ realFilePath = 'zip://' . realpath ( $ documentPath ) . '#' . $ documentInsideZipPath ; } } else { $ realFilePath = realpath ( $ filePath ) ; } return $ realFilePath ; }
Updates the given file path to use a real path.
This is to avoid issues on some Windows setup.

@param string $filePath File path
@return string The file path using a real path
Updates the given file path to use a real path . This is to avoid issues on some Windows setup .