diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-01-20 10:43:42 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-01-20 10:43:42 +0100 |
commit | e168930ed90c92aead83ff2f5ced9733980892d3 (patch) | |
tree | 5b05605ae28e3d779a154be9fe46710d83c87743 /php-bartlett-PHP-CompatInfo-4.0.0-rpm.patch | |
parent | 0f5c2c3b86b28ebe38e43019aa76a0a479c982c6 (diff) |
php-bartlett-PHP-CompatInfo: add patch for DB path
Diffstat (limited to 'php-bartlett-PHP-CompatInfo-4.0.0-rpm.patch')
-rw-r--r-- | php-bartlett-PHP-CompatInfo-4.0.0-rpm.patch | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/php-bartlett-PHP-CompatInfo-4.0.0-rpm.patch b/php-bartlett-PHP-CompatInfo-4.0.0-rpm.patch index 572f5b1..9e1f22b 100644 --- a/php-bartlett-PHP-CompatInfo-4.0.0-rpm.patch +++ b/php-bartlett-PHP-CompatInfo-4.0.0-rpm.patch @@ -8,13 +8,15 @@ diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo <?php ini_set('memory_limit', -1); $appName = 'phpCompatInfo'; -@@ -17,8 +17,26 @@ if (\Phar::running()) { +@@ -17,8 +17,28 @@ if (\Phar::running()) { putenv("BARTLETTRC=" . strtolower($appName) . '.json'); } } -$loader = require_once $vendorDir . '/autoload.php'; -$loader->setUseIncludePath(true); + ++putenv('BARTLETT_COMPATINFO_DB=/usr/share/php-bartlett-PHP-CompatInfo/compatinfo.sqlite'); ++ +$vendorDir = '/usr/share/php'; +require_once $vendorDir . '/PhpParser/Autoloader.php'; +PhpParser\Autoloader::register(); @@ -76,7 +78,7 @@ diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php diff -up ./data/handleDB.php.rpm ./data/handleDB.php --- ./data/handleDB.php.rpm 2015-01-19 14:17:57.871354474 +0100 +++ ./data/handleDB.php 2015-01-19 14:20:42.213040384 +0100 -@@ -11,7 +11,21 @@ +@@ -11,7 +11,18 @@ * @since Release 4.0.0alpha3 */ @@ -88,10 +90,7 @@ diff -up ./data/handleDB.php.rpm ./data/handleDB.php + +$loader = new UniversalClassLoader(); +$loader->registerNamespaces(array( -+ 'Doctrine\\Common' => $vendorDir, + 'Symfony\\Component' => $vendorDir, -+ 'Bartlett\\Reflect' => $vendorDir, -+ 'Bartlett' => $baseDir . '/src', + )); + +$loader->register(); |