blob: df7698329d41334eb428a7ee5f59d847b2a00d64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
diff -up ./bin/php-parse.rpm ./bin/php-parse
--- ./bin/php-parse.rpm 2016-04-19 15:41:41.000000000 +0200
+++ ./bin/php-parse 2016-04-20 06:33:22.712063600 +0200
@@ -1,12 +1,7 @@
#!/usr/bin/env php
<?php
-foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
- if (file_exists($file)) {
- require $file;
- break;
- }
-}
+require '/usr/share/php/PhpParser2/autoload.php';
ini_set('xdebug.max_nesting_level', 3000);
diff -up ./lib/bootstrap.php.rpm ./lib/bootstrap.php
--- ./lib/bootstrap.php.rpm 2016-04-19 15:41:41.000000000 +0200
+++ ./lib/bootstrap.php 2016-04-20 06:33:22.712063600 +0200
@@ -1,6 +1,6 @@
<?php
if (!class_exists('PhpParser\Autoloader')) {
- require __DIR__ . '/PhpParser/Autoloader.php';
+ require __DIR__ . '/Autoloader.php';
}
PhpParser\Autoloader::register();
diff -up ./test/bootstrap.php.rpm ./test/bootstrap.php
--- ./test/bootstrap.php.rpm 2016-04-20 06:33:22.713063604 +0200
+++ ./test/bootstrap.php 2016-04-20 06:34:38.963385593 +0200
@@ -2,7 +2,7 @@
namespace PhpParser;
-require __DIR__ . '/../vendor/autoload.php';
+require '@BUILDROOT@/usr/share/php/PhpParser2/autoload.php';
function canonicalize($str) {
// normalize EOL style
|