original_string: private static function _decodeLongFormTag(string $data, int &$offset): string
      {
          $datalen = strlen($data);
          $tag = gmp_init(0, 10);
          while (true) {
              if ($offset >= $datalen) {
                  throw new DecodeException(
                      "Unexpected end of data while decoding" .
                      " long form identifier.");
              }
              $byte = ord($data[$offset++]);
              $tag <<= 7;
              $tag |= 0x7f & $byte;
              // last byte has bit 8 set to zero
              if (!(0x80 & $byte)) {
                  break;
              }
          }
          return gmp_strval($tag, 10);
      }
code: private static function _decodeLongFormTag(string $data, int &$offset): string
      {
          $datalen = strlen($data);
          $tag = gmp_init(0, 10);
          while (true) {
              if ($offset >= $datalen) {
                  throw new DecodeException(
                      "Unexpected end of data while decoding" .
                      " long form identifier.");
              }
              $byte = ord($data[$offset++]);
              $tag <<= 7;
              $tag |= 0x7f & $byte;
              // last byte has bit 8 set to zero
              if (!(0x80 & $byte)) {
                  break;
              }
          }
          return gmp_strval($tag, 10);
      }
code_tokens: private static function _decodeLongFormTag ( string $ data , int & $ offset ) : string { $ datalen = strlen ( $ data ) ; $ tag = gmp_init ( 0 , 10 ) ; while ( true ) { if ( $ offset >= $ datalen ) { throw new DecodeException ( "Unexpected end of data while decoding" . " long form identifier." ) ; } $ byte = ord ( $ data [ $ offset ++ ] ) ; $ tag <<= 7 ; $ tag |= 0x7f & $ byte ; // last byte has bit 8 set to zero if ( ! ( 0x80 & $ byte ) ) { break ; } } return gmp_strval ( $ tag , 10 ) ; }
docstring: Parse long form tag.
  
  @param string $data DER data
  @param int $offset Reference to the variable containing offset to data
  @throws DecodeException If decoding fails
  @return string Tag number
docstring_tokens: Parse long form tag .