diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-07-02 15:01:43 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-07-02 15:01:43 +0200 |
commit | 732250cb5568dcc31e0056a887c582c91f0dc48d (patch) | |
tree | d2c9b7abfbc84bc75b5103f89ed2c7c384862a8c /php-tecnickcom-tc-lib-pdf-parser/php-tecnickcom-tc-lib-pdf-parser-pr2.patch | |
parent | d62ce00901b81b464c8bfff6b14d3350baf88266 (diff) |
php-tecnickcom-tc-lib-pdf-parser: fir php < 5.5 compat
Diffstat (limited to 'php-tecnickcom-tc-lib-pdf-parser/php-tecnickcom-tc-lib-pdf-parser-pr2.patch')
-rw-r--r-- | php-tecnickcom-tc-lib-pdf-parser/php-tecnickcom-tc-lib-pdf-parser-pr2.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/php-tecnickcom-tc-lib-pdf-parser/php-tecnickcom-tc-lib-pdf-parser-pr2.patch b/php-tecnickcom-tc-lib-pdf-parser/php-tecnickcom-tc-lib-pdf-parser-pr2.patch new file mode 100644 index 0000000..0242702 --- /dev/null +++ b/php-tecnickcom-tc-lib-pdf-parser/php-tecnickcom-tc-lib-pdf-parser-pr2.patch @@ -0,0 +1,22 @@ +From b8e3ae24efd9f59f78863ca28715df0f9e73fefe Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@famillecollet.com> +Date: Thu, 2 Jul 2015 14:59:30 +0200 +Subject: [PATCH] Fix PHP < 5.5 compatibility + +--- + src/Parser.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/Parser.php b/src/Parser.php +index cddba0b..ac3b3ed 100644 +--- a/src/Parser.php ++++ b/src/Parser.php +@@ -65,7 +65,7 @@ class Parser extends \Com\Tecnick\Pdf\Parser\Process\Xref + public function __construct($cfg = array()) + { + if (isset($cfg['ignore_filter_errors'])) { +- $this->cfg['ignore_filter_errors'] = boolval($cfg['ignore_filter_errors']); ++ $this->cfg['ignore_filter_errors'] = ($cfg['ignore_filter_errors'] ? true : false); + } + } + |