From ef0779eee1e0d7a2af5b8f422ad1d9a002d8e7a3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 1 Jul 2015 16:45:44 +0200 Subject: php-tecnickcom-tc-lib-barcode: fix for php < 5.5 --- .../php-tecnickcom-tc-lib-barcode-pr2.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 php-tecnickcom-tc-lib-barcode/php-tecnickcom-tc-lib-barcode-pr2.patch (limited to 'php-tecnickcom-tc-lib-barcode/php-tecnickcom-tc-lib-barcode-pr2.patch') diff --git a/php-tecnickcom-tc-lib-barcode/php-tecnickcom-tc-lib-barcode-pr2.patch b/php-tecnickcom-tc-lib-barcode/php-tecnickcom-tc-lib-barcode-pr2.patch new file mode 100644 index 0000000..4116301 --- /dev/null +++ b/php-tecnickcom-tc-lib-barcode/php-tecnickcom-tc-lib-barcode-pr2.patch @@ -0,0 +1,22 @@ +From 1421aa08b9705ebfbef4b6cbbd3575483279a081 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Wed, 1 Jul 2015 16:41:43 +0200 +Subject: [PATCH] restore php < 5.5 compatibility, fix #1 + +--- + src/Type/Square/QrCode.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/Type/Square/QrCode.php b/src/Type/Square/QrCode.php +index 59da935..12458fc 100644 +--- a/src/Type/Square/QrCode.php ++++ b/src/Type/Square/QrCode.php +@@ -108,7 +108,7 @@ protected function setParameters() + if (!isset($this->params[3])) { + $this->params[3] = 1; + } +- $this->case_sensitive = boolval($this->params[3]); ++ $this->case_sensitive = ($this->params[3] ? true : false); + } + + /** -- cgit