protected function readAmf3String()
{
$strref = $this->readAmf3Int();
if (($strref & 0x1) == 0) {
$strref = $strref >> 1;
if ($strref >= count($this->storedStrings)) {
throw new Amfphp_Core_Exception('Undefined string reference: ' . $strref, E_USER_ERROR);
return false;
}
return $this->storedStrings[$strref];
} else {
$strlen = $strref >> 1;
$str = '';
if ($strlen > 0) {
$str = $this->readBuffer($strlen);
$this->storedStrings[] = $str;
}
return $str;
}
}