File: 0001-Allow-require-to-search-in-the-path.patch

package info (click to toggle)
php-parser 5.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,532 kB
  • sloc: php: 23,585; yacc: 1,272; makefile: 39; sh: 8
file content (22 lines) | stat: -rw-r--r-- 700 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Wed, 3 Sep 2014 23:28:35 -0400
Subject: Allow autoload in system path

Forwarded: not-needed
---
 bin/php-parse | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/php-parse b/bin/php-parse
index fc44f23..595f7d6 100755
--- a/bin/php-parse
+++ b/bin/php-parse
@@ -1,7 +1,7 @@
 #!/usr/bin/env php
 <?php
 
-foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
+foreach ([__DIR__ . '/../share/php/PhpParser/autoload.php', __DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
     if (file_exists($file)) {
         require $file;
         break;