blob: b20f85f18bea6a15727a6e4e1a161dd83aeb0841 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
From ded3ffc0a0485d3b34e440a293fe1fbbe14a01ff Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Mon, 15 Oct 2018 10:16:08 +0200
Subject: [PATCH] fix PHP 7.3 warnings
---
.../ZendPdf/BinaryParser/Font/OpenType/AbstractOpenType.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/library/ZendPdf/BinaryParser/Font/OpenType/AbstractOpenType.php b/library/ZendPdf/BinaryParser/Font/OpenType/AbstractOpenType.php
index 2e3d43b..82214df 100644
--- a/library/ZendPdf/BinaryParser/Font/OpenType/AbstractOpenType.php
+++ b/library/ZendPdf/BinaryParser/Font/OpenType/AbstractOpenType.php
@@ -858,7 +858,7 @@ protected function _parseCMapTable()
if ($language != 0) {
$this->_debugLog('Type 0 cmap tables must be language-independent;'
. ' language: %d; skipping', $language);
- continue;
+ continue 2;
}
break;
@@ -877,7 +877,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);
@@ -889,7 +889,7 @@ protected function _parseCMapTable()
default:
$this->_debugLog('Unknown subtable format: 0x%x; skipping', $format);
- continue;
+ continue 2;
}
$cmapType = $format;
break;
|