Jordi Boggiano
21e708f2c4
Remove upper bound PHP version checks from platform-check as there is not enough value added and it risks causing issues
4 years ago
Jordi Boggiano
45d3e133a4
Avoid checking for unbounded constraints in platform checks
4 years ago
Jordi Boggiano
6a6ea6057f
Handle provider/replacer packages and avoid checking extensions which are provided by packages, refs #8546
4 years ago
Jordi Boggiano
d494df61ff
Make sure platform-check returns a non-0 exit code if it fails
4 years ago
Jordi Boggiano
7049bbb714
Switch require_once to require for autoload_static as the once variant seems unnecessary
4 years ago
Jordi Boggiano
0d1922dc27
Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions
5 years ago
Nicolas Grekas
6463ab9e49
Optimize extension checks
5 years ago
Yanick Witschi
e23710f92d
Implemented php version check in autoload.php ( #8546 )
5 years ago
remorhaz
8df263a756
Test added for issue #8622 fix
5 years ago
Markus Staab
e47aa38ad4
Added phpdoc for ComposerAutoloaderInit$SHA1::getLoader() ( #8393 )
5 years ago
zakonnic
f159eb724a
Add test for double gap in php-file
5 years ago
ShiraNai7
a2b647a99e
Handle absolute phar:// paths in autoload_static.php
6 years ago
Rob Bast
25e3f6d4b9
expand regex and testcases
6 years ago
Rob Bast
971528916b
fix regex for heredoc/nowdoc
...
* take into account relaxed changes introduced in php 7.3
* see: 4887357269
* allow " as well as ', which was introduced in php 5.3
closes #8080
6 years ago
Jordi Boggiano
3b9d6769bf
Fix class names in comments being parsed in short_open_tags files, fixes #7289
6 years ago
Vladimir Reznichenko
c8615358cb
SCA with PHP Inspections (EA Extended)
7 years ago
Jordi Boggiano
e9d04f2b2d
Merge branch '1.2'
8 years ago
Hans-Joachim Michl
817b2747c7
Fix #5672
...
This fixes the issue reported in #5672 .
It just makes sure the ZendGuard encoded files can be autoloaded correctly.
8 years ago
Konstantin.Myakshin
dc70b40d34
Use implode instead of join
8 years ago
Rob Bast
181b172e77
test cases for #5701
8 years ago
SpacePossum
2ae0800cd3
Remove useless concat.
8 years ago
Jordi Boggiano
05fab170a7
Merge branch '1.0'
9 years ago
Jordi Boggiano
f0d67923a5
Fix classmap generator over anonymous classes extending/implementing something, fixes #5239
9 years ago
Jordi Boggiano
4f6693ad70
Fix regression in 0b44662087
, fixes #5199
9 years ago
Jordi Boggiano
0b44662087
Disable static autoloader on HHVM, fixes #5192
9 years ago
Jordi Boggiano
1dc65a40d3
Fix tests, refs #5174
9 years ago
Nicolas Grekas
fd2f51cea8
Speedup autoloading on PHP 5.6 & 7.0+ using static arrays
9 years ago
Jordi Boggiano
8072448cf3
Adjust deduplication of files autoloads, refs 9710b26d3f
9 years ago
Jordi Boggiano
1fe690f810
Autoload generator cleanups
9 years ago
Jordi Boggiano
3748c11709
Simplify files autoload include function, and make sure files are included once per package even if exactly the same, refs #4186
9 years ago
Jordi Boggiano
9710b26d3f
Merge remote-tracking branch 'jeskew/feature/require_files_but_once'
9 years ago
Bryan Davis
cc2b9cfca5
Add cli argument for classmap-authoritative
...
Add a `--classmap-authoritative (-a)` argument to `composer install`,
`composer update` and `composer dumpautoload`. This enables the same
authoritative classmap behavior as the existing `classmap-authoritative`
configuration setting. The option can be used for creating highly
optimized production autoloaders via `composer install --no-dev
--optimize-autoloader --classmap-authoritative` for projects where
multiple autoloaders are present and unnecessary `file_exists` calls
introduce performance issues.
Closes #4361
9 years ago
voroks
154092ba1a
Added removing file 'include_path.php' (if it is empty).
9 years ago
voroks
4fa1cb2e9c
Removing file autoload_files.php was added ( #4254 )
9 years ago
Nicolas Grekas
fbae6b1589
Revert "Merge pull request #3975 from marc-mabe/hotfix/3974"
...
This reverts commit bdb6ecb29e
, reversing
changes made to 8a12e50a16
.
9 years ago
Jonathan Eskew
42b025776a
Move file identifier calculation to compile time
9 years ago
Jonathan Eskew
24c4322672
Use 5.3 compatible array syntax
9 years ago
Jonathan Eskew
868a872df2
Push the hash to $GLOBALS
9 years ago
Jonathan Eskew
61ed7a9547
Explicitly check if a file has already been required before requiring it
9 years ago
Jordi Boggiano
e73448ae1e
Add possessive quantifiers to avoid backtracking and fix segfault on large files, fixes #4153
9 years ago
elazar
6c029a850c
Resolves #4138 : Removed *Test.php filtering from AutoloadGenerator->dump()
9 years ago
Marc Bennewitz
9455c49053
fixes #3974 : Autoloader have to distinguish between files and directories
10 years ago
Andrew Berry
5b7c5cf41e
Fix missing semicolons.
10 years ago
Andrew Berry
59e14ff098
Fix test classes with invalid PHP.
10 years ago
Fred Emmott
23d5e30fbc
Add test for Generics class
...
Already worked, just adding a test.
10 years ago
Fred Emmott
33ea86573e
Add support for using classmap to autoload Hack enums
...
fixes composer/composer#3823
Ran tests with both PHP5.5.9-1ubuntu4.5 and HHVM 3.6. Test fails on HHVM only
if I back out the ClassMapGenerator.php change.
10 years ago
jakoch
a0e5ead9b0
removed unused variables $baseDir and $vendorDir from "autoloader_real.php" generated by AutoloadGenerator. adjusted tests accordingly.
11 years ago
Fabien Potencier
12421dd6b7
fixed class map generator when using a heredoc with spaces
11 years ago
Jordi Boggiano
49d4054e51
Handle files with no php at all, fixes #2910
11 years ago
Denis Sokolov
65b9cca7b5
Fix ClassMapGenerator unambiguousReference test coverage
...
Without this fix the test only covers having files in "test", the "fixture"
portion it is not covered at all, because all fixtures in phpunit tests
are already in "test" directory
11 years ago