1
0
Fork 0
Go to file
Ingo Fabbri 750172dc4c
Fix symlink check
Given you have a symlink in one of your path repositories and mirroring-strategy enabled.

```bash
lrwxrwxrwx 1 inf inf    8 27. Aug 17:41 Create.html -> New.html
-rw-r--r-- 1 inf inf  750 27. Aug 17:24 Edit.html
-rw-r--r-- 1 inf inf    0 27. Aug 17:24 List.html
-rw-r--r-- 1 inf inf 5064 27. Aug 17:24 New.html
-rw-r--r-- 1 inf inf  716 27. Aug 17:24 Show.html
```

`$file->getLinkTarget()` just returns a relative path in this example. It does not return an absolute normalized path.
`$sources` is always a normalized path.

`strpos` can never be `0`.

Use `$file->getRealPath()` to fix the strpos-check.
2020-10-15 14:17:53 +02:00
.github Create an issue @ Docker repository on tag 2020-07-16 14:48:16 +02:00
bin Fix: Xdebug vs xdebug 2019-11-03 14:08:14 +01:00
doc replace toran with private packagist 2020-06-19 18:21:03 +02:00
res Fix schema rules to be more strict 2020-03-10 13:56:35 +01:00
src Fix symlink check 2020-10-15 14:17:53 +02:00
tests Revert "Allow specifying a version requirement for CLDR" 2020-07-30 21:00:43 +02:00
.editorconfig Enhancement: Add .editorconfig 2019-01-03 10:49:27 +01:00
.gitattributes Exclude more files from being exported 2019-04-10 13:11:57 +02:00
.gitignore Add PHPCSFixer config 2015-04-15 01:22:20 +01:00
.php_cs Uses config data from Composer object whenever possible on ArchiveCommand 2020-02-10 13:15:58 -02:00
CHANGELOG.md Update changelog 2020-08-03 11:34:31 +02:00
LICENSE lets avoid silly commits in the future 2017-01-19 12:10:26 +01:00
PORTING_INFO Import initial partial port of the libzypp satsolver. 2011-04-05 17:37:19 +02:00
README.md Enhancement: Run jobs on GitHub Actions 2020-04-21 15:40:39 +02:00
composer.json Bump phpunit-bridge version 2020-06-03 10:24:27 +02:00
composer.lock Update deps, fixes #9125 2020-08-23 15:06:23 +02:00
phpunit.xml.dist fix risky tests 2020-02-11 17:27:56 +08:00

README.md

Composer - Dependency Management for PHP

Composer helps you declare, manage, and install dependencies of PHP projects.

See https://getcomposer.org/ for more information and documentation.

Continuous Integration Build Status

Installation / Usage

Download and install Composer by following the official instructions.

For usage, see the documentation.

Packages

Find packages on Packagist.

Community

IRC channels are on irc.freenode.org: #composer for users and #composer-dev for development.

For support, Stack Overflow also offers a good collection of Composer related questions.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project and its community you agree to abide by those terms.

Requirements

PHP 5.3.2 or above (at least 5.3.4 recommended to avoid potential bugs)

Authors

See also the list of contributors who participated in this project.

Security Reports

Please send any sensitive issue to security@packagist.org. Thanks!

License

Composer is licensed under the MIT License - see the LICENSE file for details

Acknowledgments