From edc608782f74407aa5372ee44dfe08b7f81e4dfc Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Sun, 7 Oct 2018 20:28:04 +1100 Subject: [PATCH] Avoid warning on PHP 7.3 --- src/PhpSpreadsheet/Reader/Xls.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/Reader/Xls.php b/src/PhpSpreadsheet/Reader/Xls.php index d08d85e8..d7cbcf63 100644 --- a/src/PhpSpreadsheet/Reader/Xls.php +++ b/src/PhpSpreadsheet/Reader/Xls.php @@ -4687,7 +4687,7 @@ class Xls extends BaseReader $offset += 4; // offset: var; size: $us; character array of the URL, no Unicode string header, always 16-bit characters, zero-terminated $url = self::encodeUTF16(substr($recordData, $offset, $us - 2), false); - $nullOffset = strpos($url, 0x00); + $nullOffset = strpos($url, chr(0x00)); if ($nullOffset) { $url = substr($url, 0, $nullOffset); }