summaryrefslogtreecommitdiffstats
path: root/Autoload-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-11-25 14:47:18 +0100
committerRemi Collet <fedora@famillecollet.com>2014-11-25 14:47:18 +0100
commit5736ce8e21eff86e4508fd232d92eef89b924466 (patch)
tree2499149363461076a3c6ade0f320f6ad2c6e5225 /Autoload-rpm.patch
parent9eede81936a0f05c2b6513c5d40702afc28ce22f (diff)
php-theseer-autoload: swicth from pear to github, 1.16.1
Diffstat (limited to 'Autoload-rpm.patch')
-rw-r--r--Autoload-rpm.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/Autoload-rpm.patch b/Autoload-rpm.patch
new file mode 100644
index 0000000..cfc8ddd
--- /dev/null
+++ b/Autoload-rpm.patch
@@ -0,0 +1,26 @@
+--- phpab.php.rpm 2014-11-25 11:32:11.000000000 +0100
++++ phpab.php 2014-11-25 14:40:59.288514790 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env php
++#!/usr/bin/php
+ <?php
+ /**
+ * Copyright (c) 2009-2014 Arne Blankerts <arne@blankerts.de>
+@@ -42,12 +42,15 @@
+ * 4 - Lint Error
+ */
+
+-define('PHPAB_VERSION', '%development%');
++define('PHPAB_VERSION', '@VERSION@');
+
+ if (!ini_get('date.timezone')) {
+ ini_set('date.timezone', 'UTC');
+ }
+-require __DIR__ . '/src/autoload.php';
++require 'TheSeer/DirectoryScanner/autoload.php';
++require 'TheSeer/Autoload/autoload.php';
++require 'ezc/Base/base.php';
++spl_autoload_register(array('\ezcBase','autoload'));
+
+ $factory = new \TheSeer\Autoload\Factory();
+ $factory->getCLI()->run();