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

package info (click to toggle)
phpcpd 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 380 kB
  • sloc: php: 1,251; xml: 132; makefile: 22
file content (21 lines) | stat: -rw-r--r-- 708 bytes parent folder | download | duplicates (4)
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 9c3283f..dcc41bf 100755
--- a/phpcpd
+++ b/phpcpd
@@ -25,7 +25,7 @@ if (version_compare('7.3.0', PHP_VERSION, '>')) {
 
 $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;