summaryrefslogtreecommitdiffstats
path: root/php-JsonSchema-php-lt-5-4-0-compat.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-06-15 08:11:24 +0200
committerRemi Collet <fedora@famillecollet.com>2015-06-15 08:11:24 +0200
commite2b9ce080782c777002d061f1064c85b6eddfd86 (patch)
tree7593c91910a9ff6ccf6d3379cfa72c50d9f2844b /php-JsonSchema-php-lt-5-4-0-compat.patch
parentb92962b39c5d60be7adffeaaf27b0059232546ca (diff)
php-JsonSchema: 1.4.2
Diffstat (limited to 'php-JsonSchema-php-lt-5-4-0-compat.patch')
-rw-r--r--php-JsonSchema-php-lt-5-4-0-compat.patch23
1 files changed, 0 insertions, 23 deletions
diff --git a/php-JsonSchema-php-lt-5-4-0-compat.patch b/php-JsonSchema-php-lt-5-4-0-compat.patch
deleted file mode 100644
index a63c44e..0000000
--- a/php-JsonSchema-php-lt-5-4-0-compat.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-From 3973764636b93f1b94ea6842bdf2e780b2a59822 Mon Sep 17 00:00:00 2001
-From: Shawn Iwinski <siwinski@redhat.com>
-Date: Fri, 29 Aug 2014 22:41:25 -0400
-Subject: [PATCH] PHP < 5.4.0 compatibility for "--dump-schema"
-
----
- bin/validate-json | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/bin/validate-json b/bin/validate-json
-index 2f2fe44..8831a6e 100755
---- a/bin/validate-json
-+++ b/bin/validate-json
-@@ -218,7 +218,8 @@ $refResolver = new JsonSchema\RefResolver($retriever);
- $refResolver->resolve($schema, $urlSchema);
-
- if (isset($arOptions['--dump-schema'])) {
-- echo json_encode($schema, JSON_PRETTY_PRINT) . "\n";
-+ $options = version_compare(PHP_VERSION, '5.4.0', '>=') ? JSON_PRETTY_PRINT : 0;
-+ echo json_encode($schema, $options) . "\n";
- exit();
- }
-