Run the following example with the attached tarball:
<?php
require_once '/home/derick/dev/ezcomponents/trunk/Base/src/ezc_bootstrap.php';
date_default_timezone_set( "UTC" );
// Open the gzipped TAR archive.
$archive = ezcArchive::open( 'test.tar' );
while( $archive->valid() )
{
// Returns the current entry (ezcArchiveEntry).
$entry = $archive->current();
// ezcArchiveEntry has an __toString() method.
echo $entry, "\n";
// Extract the current archive entry to /tmp/target_location/
$archive->extractCurrent( "/tmp/target_location/" );
$archive->next();
}
?>
and see that the last two lines have a broken dir name.