Skip to content

Commit

Permalink
Update Zend_Pdf_StringParser pattern for php >= 5.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Feb 5, 2021
1 parent b344d5a commit 232e616
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/zend-pdf/library/Zend/Pdf/StringParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,7 @@ public function readLexeme()
}
} else {
$start = $this->offset;
$compare = '';
if( version_compare( phpversion(), '5.2.5' ) >= 0) {
$compare = "()<>[]{}/%\x00\t\n\f\r ";
} else {
$compare = "()<>[]{}/%\x00\t\n\r ";
}
$compare = "()<>[]{}/%\x00\t\n\f\r ";

$this->offset += strcspn($this->data, $compare, $this->offset);

Expand Down

0 comments on commit 232e616

Please sign in to comment.