cvs: pear /File_Archive/Archive/Reader Ar.php
| From: | Pablo Fischer | Date: | Mon, 23 May 2005 15:49:02 +0000 |
| Subject: | cvs: pear /File_Archive/Archive/Reader Ar.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-32065@lists.php.net to get a copy of this message | ||
pfischer Mon May 23 11:49:02 2005 EDT
Modified files:
/pear/File_Archive/Archive/Reader Ar.php
Log:
- Add numeric and string indexes to the stat array
- Removed a debug line (an echo)
http://cvs.php.net/diff.php/pear/File_Archive/Archive/Reader/Ar.php?r1=1.4&r2=1.5&ty=u
Index: pear/File_Archive/Archive/Reader/Ar.php
diff -u pear/File_Archive/Archive/Reader/Ar.php:1.4 pear/File_Archive/Archive/Reader/Ar.php:1.5
--- pear/File_Archive/Archive/Reader/Ar.php:1.4 Mon May 23 08:46:57 2005
+++ pear/File_Archive/Archive/Reader/Ar.php Mon May 23 11:49:00 2005
@@ -145,7 +145,6 @@
// if the filename starts with a length, then just read the bytes of it
if (preg_match("/\#1\/(\d+)/", $name, $matches)) {
- echo "matches : {$matches[1]}\n";
$name = $this->source->getData($matches[1]);
$size -= $matches[1];
} else {
@@ -155,17 +154,23 @@
$this->_nbBytesLeft = $size;
if (empty($name) || empty($mtime) || empty($uid) ||
- empty($gid) || empty($mode) || empty($size)) {
+ empty($gid) || empty($mode) || empty($size)) {
return PEAR::raiseError("An ar field is empty");
}
$this->_currentFilename = $this->getStandardURL($name);
- $this->_currentStat = array('name' => $name,
- 'mtime' => $mtime,
+ $this->_currentStat = array(
+ 2 => $mode,
+ 'mode' => $mode,
+ 4 => $uid,
'uid' => $uid,
+ 5 => $gid,
'gid' => $gid,
- 'mode' => $mode,
- 'size' => $size);
+ 7 => $size,
+ 'size' => $size,
+ 9 => $mtime,
+ 'mtime' => $mtime
+ );
return true;
}