File: 0001-Search-Autoload.php-where-it-is-in-Debian.patch

package info (click to toggle)
phpunit-dbunit 2.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 900 kB
  • ctags: 1,394
  • sloc: php: 5,449; xml: 477; sh: 42; makefile: 12
file content (28 lines) | stat: -rw-r--r-- 926 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
22
23
24
25
26
27
28
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Sat, 7 Feb 2015 13:11:46 -0400
Subject: Search Autoload.php where it is in Debian

Forwareded: not-needed
---
 dbunit | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dbunit b/dbunit
index 633d80f..d3f1b06 100755
--- a/dbunit
+++ b/dbunit
@@ -1,4 +1,4 @@
-#!/usr/bin/env php
+#!/usr/bin/php
 <?php
 /*
  * This file is part of DBUnit.
@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
+foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php', __DIR__ . '/../share/php/PHPUnit/Extensions/Database/Autoload.php') as $file) {
     if (file_exists($file)) {
         define('DBUNIT_COMPOSER_INSTALL', $file);
         break;