Set tag on packet creation

This commit is contained in:
Stephen Paul Weber 2010-03-31 14:25:21 -05:00
parent 1333a1a035
commit 355ea44301
1 changed files with 3 additions and 1 deletions

View File

@ -258,7 +258,9 @@ class OpenPGP_Packet {
return array($tag, $head_length, $data_length);
}
function __construct() {}
function __construct() {
$this->tag = array_search(substr(substr(get_class($this), 8), 0, -6), self::$tags);
}
function read() {
}