463 Commits (ba94445bb9401528ca048213252a514d6aab800d)

Author SHA1 Message Date
Jordi Boggiano 24a5a0dacb
Skip invalid PSR-0/4 classes from optimized autoloader, fixes #8403 4 years ago
Jordi Boggiano 34fb609aad
Merge pull request #8652 from clxmstaab/more-ambiguous
report ambiguous classes across all classmaps
4 years ago
Markus Staab cc5c5dbee1 merge fix from https://github.com/composer/composer/pull/8651 4 years ago
Markus Staab 04a18c72ba fix CS 4 years ago
Markus Staab 883a179dec removed superflous code 4 years ago
Markus Staab 61e0bf1cb5 fix typo 4 years ago
remorhaz 339ee953e5 Fix incorrect --no-dev handling of replaced packages 4 years ago
Markus Staab 30b1dfb8a9 report ambiguous classes across all classmaps 4 years ago
Jordi Boggiano 8fd70d2dc4
Target ClassMapGenerator ignoring of invalid PSR classes for 2.0 4 years ago
Jordi Boggiano 4d74f5ba95
Fix exclude-from-classmap handling to avoid foo matching foo* directories, fixes #8563, refs #8575 4 years ago
Жаков Виталий 48c7442b63 should be || not OR 5 years ago
Жаков Виталий f02989ceba revert formatting 5 years ago
Жаков Виталий a4dc076dc8 fix file load errors 5 years ago
Жаков Виталий 8429a48dac Change only modified files 5 years ago
Jordi Boggiano 3496431a6c
Fix PSR warnings for optimized autoloader, refs #8397, refs #8403 5 years ago
Jordi Boggiano d059d90ecf
Fix PSR warnings for optimized autoloader, refs #8397, refs #8403 5 years ago
Jordi Boggiano 502b68967a
Fix tests for PSR-fix in optimized autoloader, refs #8397 5 years ago
Jordi Boggiano f6b8643dcd
Change PSR-fix for optimized autoloader to only warn for now, refs #8397 5 years ago
Jordi Boggiano 3a0d05c148
Merge remote-tracking branch 'and800/fix-autoload-opts' 5 years ago
Andriy Maletsky ec293adabc make optimized autoloader respect PSR standards 5 years ago
Markus Staab e47aa38ad4 Added phpdoc for ComposerAutoloaderInit$SHA1::getLoader() (#8393) 5 years ago
zakonnic 9f6e45051a Optimize template for striping non-php blocks 5 years ago
zakonnic ec96e5de64 Fix incorrect strip of non-php blocks in the file 5 years ago
Jordi Boggiano 9d642fe9af
Merge pull request #8085 from danepowell/issue-8065-2
Fixes #8065: Sort plugins deterministically before loading.
5 years ago
ShiraNai7 a2b647a99e Handle absolute phar:// paths in autoload_static.php 5 years ago
Dane Powell 188e2b0044
Merge branch 'master' into issue-8065-2 5 years ago
Dane Powell 3501423eab
Undo previous change. 5 years ago
Dane Powell d4150cafc4
Move sortPackages to static helper class. 5 years ago
Dane Powell 266a41e046
Refactor sortPackageMap to depend on separate sortPackage function. 5 years ago
Dane Powell 3e6300b5e8
code style fix. 5 years ago
Dane Powell 043b33ed38
Fixes #8065: Sort plugins deterministically before loading. 5 years ago
Rob Bast 4ea8e48bf8 leading whitespace is optional, but newline is not 5 years ago
Rob Bast 25e3f6d4b9 expand regex and testcases 5 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
5 years ago
Den Girnyk 3b6b63784f Fix: Keep replaced packages for autoload dumping with --no-dev 6 years ago
Den Girnyk 5b78ea529a
Fix: Keep replaced packages for autoload dumping with --no-dev 6 years ago
Jordi Boggiano 2528654c53 Merge branch '1.7' 6 years ago
François-Xavier de Guillebon 114217c6e3
Fix ini_get() for boolean values 6 years ago
Markus Staab 766ceccd00 Print number of classes contained within the generated classmap
to give the developer a better feeling about number of dependent classes
6 years ago
Jordi Boggiano a74b63985e Avoid filtering dev-require packages when loading plugins/scripts, fixes #7516 6 years ago
Jordi Boggiano ff59bbdab0 CS fixer 6 years ago
Gabriel Caruso 7d9f8e2247
Improvements
Small improvements, such as remove unused imports, unecessaries casts, parentheses, etc.
6 years ago
Jordi Boggiano eedbd218f5 Make sure circular dependencies do not break the autoload dumper, refs #7316, refs #7348 6 years ago
Jordi Boggiano 46f973e213 Merge branch '1.6' 6 years ago
Philipp Fritsche b0be87177d
Filter dev-dependencies from "dump-autoload --no-dev" , fixes #4343 6 years ago
Jordi Boggiano 4ebb747e12 Merge branch '1.6' 6 years ago
Jordi Boggiano 3b9d6769bf Fix class names in comments being parsed in short_open_tags files, fixes #7289 6 years ago
Jordi Boggiano bfa01285c2 Merge branch '1.6' 6 years ago
Petr /Peggy/ Sládek 8d06832077 Update ClassMapGenerator to work better with symlinks, fixes #7252, closes #7251 6 years ago
David Yell fb40967349
Added space to concatenation
Fix a missed space for string concatenation
6 years ago
Nicolas Grekas 0c912d6eee Fix generated static map... 7 years ago
Nicolas Grekas ce70e0e9dd Fix BC of generated static map 7 years ago
Jordi Boggiano 3be9591930 Simplify some ClassLoader code, minor memory improvement, fixes #6937 7 years ago
Pedro de Carvalho f569833f5a move $length variable outsite foreach (#6828)
the `foreach` over the `prefixDirsPsr4[$search]` won't affect `$length`. 

It's used for the offset of `$logicalPathPsr4`.
7 years ago
Vladimir Reznichenko c8615358cb SCA with PHP Inspections (EA Extended) 7 years ago
Jordi Boggiano 23ab57c311 Merge branch '1.4' 7 years ago
Jordi Boggiano bf940fb21b Fix exclude-from-classmap when a package is installed as a symlink, fixes #6397 7 years ago
Jordi Boggiano 17b7387c37 Merge branch '1.4' 7 years ago
Jordi Boggiano 81f65b7a2a Fix exclude-from-classmap being ignored when cwd has the wrong case on case insensitive filesystems 7 years ago
Jordi Boggiano 47bc2fa51a Fix exclude-from-classmap being ignored when generating on-the-fly class loader, fixes #6503 7 years ago
Saumini Navaratnam 27b8209990 Fix for issue #6492
Able to include specific finle in phar in "files" option in composer
7 years ago
Li Chuangbo 1f4882a3e6 Revert "Fixed an issue when a phar file is used in "files" option in composer.json"
This reverts commit 41e91f3064.

The commit 41e91f3 in current codebase generates absolute path in
autoload_static.php for phar file.

Also according to http://php.net/manual/en/phar.using.intro.php, the `phar://`
prefix is not needed.
7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
David WATTIER e6d648f465 Improve performance on psr4 autoload file finding 7 years ago
Jordi Boggiano 1dcb2b5758 Merge remote-tracking branch 'nicolas-grekas/apcu' 8 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
Nicolas Grekas 6d4e60b991 Add --apcu-autoloader option to enable APCu caching of found/not-found classes 8 years ago
Konstantin.Myakshin dc70b40d34 Use implode instead of join 8 years ago
Kévin Dunglas 3e3fd3c6b1
Remove unused variable 8 years ago
Fabien Potencier 2853e82400 removed obsolete code 8 years ago
Jordi Boggiano 902a5c32db Add bug ref 8 years ago
AnrDaemon c774d41a9c Fix realpath() failing on Windows 8 years ago
SpacePossum 2ae0800cd3 Remove useless concat. 8 years ago
Nicolas Grekas c6b26c4e96 Make static inlining more selective 8 years ago
Nicolas Grekas dd67b01ac5 Add ClassLoader::$missingClasses to not trigger a COW 8 years ago
Jordi Boggiano c289776d94 Force-collapse multiple slashes into one, fixes #5387 8 years ago
Jordi Boggiano d1a0502f92 Make sure we only replace complete paths to the base-dir/vendor-dir, not partial dir matches, fixes #5289 8 years ago
Jordi Boggiano 05fab170a7 Merge branch '1.0' 8 years ago
Jordi Boggiano f0d67923a5 Fix classmap generator over anonymous classes extending/implementing something, fixes #5239 8 years ago
Jordi Boggiano 4f6693ad70 Fix regression in 0b44662087, fixes #5199 8 years ago
Jordi Boggiano 0b44662087 Disable static autoloader on HHVM, fixes #5192 8 years ago
Nicolas Grekas 40aca80bd9 Workaround https://bugs.php.net/68057 8 years ago
Nicolas Grekas fd2f51cea8 Speedup autoloading on PHP 5.6 & 7.0+ using static arrays 8 years ago
Jordi Boggiano b9ce06f46b Minor tweaks, refs #5162 8 years ago
Niels Keurentjes eb77c0b7f5 phpDoc cleanup, removed unused imports, variables and parameters. 8 years ago
Jordi Boggiano 5822b58c1f Avoid using realpath when generating classmap, speeds up generation and keeps paths local to project in case of symlinks/path repo 8 years ago
Niels Keurentjes b059cbe37c Removed unused variables and includes, fixed functions being called with more arguments than declared. 8 years ago
Jordi Boggiano cdea645eab Avoid outputing duplicate warnings for ambiguous class resolution, fixes #4953 8 years ago
Niels Keurentjes 0b55a0ca91 Can't use error_clear_last as it was introduced in PHP7. 9 years ago
Niels Keurentjes 6a53b1df42 Further reorganized messy checking code. 9 years ago
Niels Keurentjes bb08f76ad9 Use error_get_last to verify why php_strip_whitespace would return an empty string. 9 years ago
Niels Keurentjes 86fc85fe56 Add a comment explaining the use of @ instead of Silencer in this specific situation. 9 years ago
Niels Keurentjes c2d9960898 Ensure exception is thrown when classmaps are requested for corrupted or binary files. Refs #4885 9 years ago
Niels Keurentjes 18cd4f966b Added silencer utility to more gracefully handle error suppression without hiding errors or worse. Fixes #4203, #4683 9 years ago
Jordi Boggiano bda2c0f9b7 Re-enable include path even when classmap authoritative is present, refs #4556 9 years ago
Jordi Boggiano e05207dbad Merge remote-tracking branch 'bp1222/save-loads' 9 years ago
Markus Staab 5752559ae8 fixed typo 9 years ago
Jordi Boggiano 43f7b762e5 Revert "[ClassLoader] performance improvement: use str_replace instead of strtr" 9 years ago
Tobias Schultze a76ce9b25a [ClassLoader] no need to call str_replace on Windows 9 years ago