summaryrefslogtreecommitdiffstats
path: root/php-bartlett-PHP-Reflect-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-09-20 09:13:14 +0200
committerRemi Collet <fedora@famillecollet.com>2014-09-20 09:13:14 +0200
commit685fb8480727533b0b13a36c50309cb60ffcd9cb (patch)
tree9c57deb38ee10a559e32b3df3f121b5ca53f4de1 /php-bartlett-PHP-Reflect-rpm.patch
parent4f39b288d6e5f39ed95de4bc89a9df96c7faf11a (diff)
php-pecl-couchbase2: duplicate of php-pecl-couchbase (for new API)
Diffstat (limited to 'php-bartlett-PHP-Reflect-rpm.patch')
-rw-r--r--php-bartlett-PHP-Reflect-rpm.patch18
1 files changed, 10 insertions, 8 deletions
diff --git a/php-bartlett-PHP-Reflect-rpm.patch b/php-bartlett-PHP-Reflect-rpm.patch
index 2d25467..942bc5c 100644
--- a/php-bartlett-PHP-Reflect-rpm.patch
+++ b/php-bartlett-PHP-Reflect-rpm.patch
@@ -1,6 +1,6 @@
diff -up ./bin/phpreflect.json.dist.rpm ./bin/phpreflect.json.dist
---- ./bin/phpreflect.json.dist.rpm 2014-08-22 08:04:25.256132414 +0200
-+++ ./bin/phpreflect.json.dist 2014-08-22 08:04:29.413148972 +0200
+--- ./bin/phpreflect.json.dist.rpm 2014-09-19 13:52:26.000000000 +0200
++++ ./bin/phpreflect.json.dist 2014-09-19 16:08:31.695874693 +0200
@@ -9,6 +9,19 @@
{
"name": "Analyser",
@@ -22,8 +22,8 @@ diff -up ./bin/phpreflect.json.dist.rpm ./bin/phpreflect.json.dist
],
"analysers" : [
diff -up ./bin/phpreflect.rpm ./bin/phpreflect
---- ./bin/phpreflect.rpm 2014-08-21 19:09:40.000000000 +0200
-+++ ./bin/phpreflect 2014-08-22 08:04:07.852063131 +0200
+--- ./bin/phpreflect.rpm 2014-09-19 13:52:26.000000000 +0200
++++ ./bin/phpreflect 2014-09-19 16:12:13.853757847 +0200
@@ -1,11 +1,11 @@
-#!/usr/bin/env php
+#!/usr/bin/php
@@ -38,11 +38,12 @@ diff -up ./bin/phpreflect.rpm ./bin/phpreflect
if (!getenv("REFLECT")) {
$home = defined('PHP_WINDOWS_VERSION_BUILD') ? 'USERPROFILE' : 'HOME';
-@@ -22,7 +22,26 @@ if (\Phar::running()) {
+@@ -22,8 +22,27 @@ if (\Phar::running()) {
}
}
}
--require_once $vendorDir . '/autoload.php';
+-$loader = require_once $vendorDir . '/autoload.php';
+-$loader->setUseIncludePath(true);
+require_once $vendorDir . '/PhpParser/Autoloader.php';
+PhpParser\Autoloader::register();
+
@@ -62,13 +63,14 @@ diff -up ./bin/phpreflect.rpm ./bin/phpreflect
+ 'Seld\\JsonLint' => $vendorDir,
+ 'Bartlett' => $vendorDir,
+));
++$loader->useIncludePath(true);
+$loader->register();
if (PHP_SAPI !== 'cli') {
return;
diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php
---- ./tests/bootstrap.php.rpm 2014-08-21 19:09:40.000000000 +0200
-+++ ./tests/bootstrap.php 2014-08-22 08:04:07.852063131 +0200
+--- ./tests/bootstrap.php.rpm 2014-09-19 13:52:26.000000000 +0200
++++ ./tests/bootstrap.php 2014-09-19 16:08:31.695874693 +0200
@@ -1,6 +1,19 @@
<?php