Skip to content

Commit

Permalink
issue#8 - fixes php7.3 warning continue in switch statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Shardj committed Jul 15, 2019
1 parent 2ad936d commit 4c70923
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions library/Zend/Pdf/FileParser/Font/OpenType.php
Original file line number Diff line number Diff line change
Expand Up @@ -890,15 +890,14 @@ protected function _parseCmapTable()
$cmapOffset = $baseOffset + $offset;
$this->moveToOffset($cmapOffset);
$format = $this->readUInt(2);
$language = -1;
switch ($format) {
case 0x0:
$cmapLength = $this->readUInt(2);
$language = $this->readUInt(2);
if ($language != 0) {
$this->_debugLog('Type 0 cmap tables must be language-independent;'
. ' language: %d; skipping', $language);
continue;
continue 2;
}
break;

Expand All @@ -917,7 +916,7 @@ protected function _parseCmapTable()
case 0xa: // break intentionally omitted
case 0xc:
$this->_debugLog('Format: 0x%x currently unsupported; skipping', $format);
continue;
continue 2;
//$this->skipBytes(2);
//$cmapLength = $this->readUInt(4);
//$language = $this->readUInt(4);
Expand All @@ -929,7 +928,7 @@ protected function _parseCmapTable()

default:
$this->_debugLog('Unknown subtable format: 0x%x; skipping', $format);
continue;
continue 2;
}
$cmapType = $format;
break;
Expand Down

0 comments on commit 4c70923

Please sign in to comment.