Skip to content
Browse files

Default packet constructor can take data

  • Loading branch information...
1 parent 3358968 commit 354425646ce10036e5064d379739e370a5dff1db @singpolyma singpolyma committed with Apr 1, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/openpgp.php
View
3 lib/openpgp.php
@@ -292,8 +292,9 @@ static function parse_old_format($input) {
return array($tag, $head_length, $data_length);
}
- function __construct() {
+ function __construct($data=NULL) {
$this->tag = array_search(substr(substr(get_class($this), 8), 0, -6), self::$tags);
+ $this->data = $data;
}
function read() {

0 comments on commit 3544256

Please sign in to comment.
Something went wrong with that request. Please try again.