import from review #1559285
This commit is contained in:
parent
5028163b82
commit
d73e8ef0dc
4 changed files with 214 additions and 0 deletions
29
php-nikic-php-parser4-rpm.patch
Normal file
29
php-nikic-php-parser4-rpm.patch
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
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/PhpParser4/autoload.php';
|
||||
|
||||
ini_set('xdebug.max_nesting_level', 3000);
|
||||
|
||||
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/PhpParser4/autoload.php';
|
||||
|
||||
function canonicalize($str) {
|
||||
// normalize EOL style
|
||||
Loading…
Add table
Add a link
Reference in a new issue