File: Adjust-phing-executable-endpoint.patch

package info (click to toggle)
phing 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,548 kB
  • sloc: php: 59,817; xml: 9,767; sql: 78; makefile: 39; sh: 14
file content (49 lines) | stat: -rw-r--r-- 1,373 bytes parent folder | download | duplicates (2)
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
41
42
43
44
45
46
47
48
49
From: William Desportes <williamdes@wdes.fr>
Date: Mon, 14 Apr 2025 10:55:51 +0200
Subject: Adjust phing executable endpoint

Origin: vendor
Forwarded: not-needed
---
 bin/phing     | 4 ++--
 bin/phing.php | 8 ++------
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/bin/phing b/bin/phing
index 0233a44..b0a5722 100755
--- a/bin/phing
+++ b/bin/phing
@@ -8,6 +8,6 @@
 // turn off html errors
 ini_set('html_errors', 'off');
 
-putenv("PHING_HOME=" . realpath(__DIR__ . '/../'));
+putenv("PHING_HOME=/usr/share/php/phing/");
 
-require_once __DIR__ . '/phing.php';
+require_once '/usr/share/php/phing/phing.php';
diff --git a/bin/phing.php b/bin/phing.php
index 58c103a..51c1a70 100644
--- a/bin/phing.php
+++ b/bin/phing.php
@@ -10,18 +10,14 @@
 use Phing\Exception\ConfigurationException;
 use Phing\Phing;
 
-if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
-    require_once __DIR__ . '/../vendor/autoload.php';
-} elseif (file_exists(__DIR__ . '/../../../autoload.php')) {
-    require_once __DIR__ . '/../../../autoload.php';
-}
+require_once __DIR__ . '/autoload.php';
 
 // Set any INI options for PHP
 // ---------------------------
 
 /* set include paths */
 set_include_path(
-            realpath(__DIR__ . '/../src') .
+            realpath(__DIR__ . '/Phing') .
             PATH_SEPARATOR .
             get_include_path()
         );