File: 0001-Add-path-to-actual-autoload.patch

package info (click to toggle)
phpcpd 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 264 kB
  • ctags: 368
  • sloc: php: 1,032; xml: 144; makefile: 23
file content (21 lines) | stat: -rw-r--r-- 703 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Wed, 1 Oct 2014 21:06:30 -0400
Subject: Add path to actual autoload

---
 phpcpd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/phpcpd b/phpcpd
index e085575..ca95628 100755
--- a/phpcpd
+++ b/phpcpd
@@ -48,7 +48,7 @@ ini_set('mbstring.internal_encoding', NULL);
 
 $loaded = false;
 
-foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
+foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/vendor/autoload.php', __DIR__ . '/../share/php/SebastianBergmann/PHPCPD/autoload.php') as $file) {
     if (file_exists($file)) {
         require $file;
         $loaded = true;