From 740c0c023b7b3db601abf6091051bfceaf94dc83 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 21 Jun 2015 20:33:19 +0200 Subject: php-bartlett-PHP-CompatInfo: fix autoload --- php-bartlett-PHP-CompatInfo-4.3.0-rpm.patch | 4 ++-- php-bartlett-PHP-CompatInfo.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/php-bartlett-PHP-CompatInfo-4.3.0-rpm.patch b/php-bartlett-PHP-CompatInfo-4.3.0-rpm.patch index 36e02b5..c64a75e 100644 --- a/php-bartlett-PHP-CompatInfo-4.3.0-rpm.patch +++ b/php-bartlett-PHP-CompatInfo-4.3.0-rpm.patch @@ -37,7 +37,7 @@ diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo +require_once $vendorDir . '/PhpParser/Autoloader.php'; +PhpParser\Autoloader::register(); + -+require_once $vendorDir . '/SebastianBergmann/Version/Version.php'; ++require_once $vendorDir . '/SebastianBergmann/Version/autoload.php'; + +require_once $vendorDir . '/Symfony/Component/ClassLoader/UniversalClassLoader.php'; +use Symfony\Component\ClassLoader\UniversalClassLoader; @@ -115,7 +115,7 @@ diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php +require_once $vendorDir . '/PhpParser/Autoloader.php'; +PhpParser\Autoloader::register(); -+require_once $vendorDir . '/SebastianBergmann/Version/Version.php'; ++require_once $vendorDir . '/SebastianBergmann/Version/autoload.php'; + +require_once $vendorDir . '/Symfony/Component/ClassLoader/UniversalClassLoader.php'; +use Symfony\Component\ClassLoader\UniversalClassLoader; diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index dcfd868..5c04fdf 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -16,7 +16,7 @@ Name: php-bartlett-PHP-CompatInfo Version: 4.3.0 -%global specrel 1 +%global specrel 2 Release: %{?gh_date:0.%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: Find out version and the extensions required for a piece of code to run @@ -168,7 +168,10 @@ fi %changelog -* Tue Jun 16 2015 Remi Collet - 4.6.0-1 +* Sun Jun 21 2015 Remi Collet - 4.3.0-2 +- fix autoloader + +* Tue Jun 16 2015 Remi Collet - 4.3.0-1 - update to 4.3.0 * Tue May 19 2015 Remi Collet - 4.2.0-1 -- cgit