summaryrefslogtreecommitdiffstats
path: root/php-PHPParser-command.patch
blob: 703637f8675a8e291b3f934512c7a649fd2b428d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff -up ./bin/php-parse.php.rpm ./bin/php-parse.php
--- ./bin/php-parse.php.rpm	2015-08-09 18:15:56.693662775 +0200
+++ ./bin/php-parse.php	2015-08-09 18:19:42.621773752 +0200
@@ -1,7 +1,7 @@
 #!/usr/bin/env php
 <?php
 
-require __DIR__ . '/../lib/bootstrap.php';
+require '/usr/share/php/PhpParser/autoload.php';
 
 ini_set('xdebug.max_nesting_level', 3000);
 
diff -up ./lib/PhpParser/autoload.php.rpm ./lib/PhpParser/autoload.php
--- ./lib/PhpParser/autoload.php.rpm	2015-08-09 18:17:51.123225470 +0200
+++ ./lib/PhpParser/autoload.php	2015-08-09 18:18:08.435310601 +0200
@@ -0,0 +1,6 @@
+<?php
+
+if (!class_exists('PhpParser\Autoloader')) {
+    require __DIR__ . '/Autoloader.php';
+}
+PhpParser\Autoloader::register();