Minor fixes

git-svn-id: http://php-reader.googlecode.com/svn/trunk@93 51a70ab9-7547-0410-9469-37e369ee0574
This commit is contained in:
svollbehr
2008-05-10 17:11:44 +00:00
parent a97d59bf89
commit f85884f492
7 changed files with 60 additions and 25 deletions

View File

@@ -263,7 +263,7 @@ class ISO14496_Box
if ($size == 0)
$size = $this->_reader->getSize() - $offset;
if (preg_match("/^\xa9?[a-z]{3,4}$/i", $type) &&
if (preg_match("/^\xa9?[a-z0-9]{3,4}$/i", $type) &&
substr($base, 0, min(strlen($base), strlen
($tmp = $path . ($path ? "." : "") . $type))) ==
substr($tmp, 0, min(strlen($base), strlen($tmp))))
@@ -287,14 +287,6 @@ class ISO14496_Box
array_pop(self::$_path);
}
protected function getPath()
{
$path = "";
echo "box: " .$this->getType() . ", parent: " . $this->getParent()."\n";
for ($child = $this; ($parent = $child->getParent()) !== null; $child = $parent){echo "parent found";$path = $parent->getType() . "." . $path;};
return $path;
}
/**
* Checks whether the box given as an argument is present in the file. Returns
* <var>true</var> if one or more boxes are present, <var>false</var>