summaryrefslogtreecommitdiffstats
path: root/php-jsonlint-bin-without-composer-autoloader.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-jsonlint-bin-without-composer-autoloader.patch')
-rw-r--r--php-jsonlint-bin-without-composer-autoloader.patch13
1 files changed, 2 insertions, 11 deletions
diff --git a/php-jsonlint-bin-without-composer-autoloader.patch b/php-jsonlint-bin-without-composer-autoloader.patch
index fdad739..d17357d 100644
--- a/php-jsonlint-bin-without-composer-autoloader.patch
+++ b/php-jsonlint-bin-without-composer-autoloader.patch
@@ -2,13 +2,7 @@ diff --git a/bin/jsonlint b/bin/jsonlint
index 1b9272a..c15cfa6 100755
--- a/bin/jsonlint
+++ b/bin/jsonlint
-@@ -1,4 +1,4 @@
--#!/usr/bin/env php
-+#!/usr/bin/php
- <?php
-
- /*
-@@ -10,20 +10,10 @@
+@@ -10,20 +10,7 @@
* file that was distributed with this source code.
*/
@@ -26,10 +20,7 @@ index 1b9272a..c15cfa6 100755
- fwrite(STDERR, $msg);
- exit(1);
-}
-+spl_autoload_register(function ($class) {
-+ $src = str_replace('\\', '/', $class).'.php';
-+ @include_once $src;
-+});
++require_once '/usr/share/php/Seld/JsonLint/autoload.php';
use Seld\JsonLint\JsonParser;