Jordi Boggiano
af4b74d332
Update logic
2024-12-11 09:25:02 +01:00
Jordi Boggiano
24e5df1937
Avoid duplicate errors in the output, fixes #12214
2024-12-10 16:37:36 +01:00
David Zülke
3b27dc105c
Suppress E_DEPRECATED for PHP 8.4 compatibility ( #12217 )
...
The E_STRICT constant is deprecated in PHP 8.4, and explicit nullable types are also advised with a deprecation notice.
As there are circumstances where people still have to run the 2.2 LTS with newer versions of PHP, we're now suppressing E_DEPRECATED.
Also see #12214
2024-12-10 16:19:44 +01:00
Jordi Boggiano
95e091c921
Merge pull request from GHSA-jm6m-4632-36hf
2023-09-29 10:15:51 +02:00
Jordi Boggiano
d7f0733959
Detect exec failures in compile script, refs #10693
2022-04-02 13:04:27 +02:00
Jordi Boggiano
e103ee0249
Remove getenv workaround on fixed PHP versions
2022-01-21 11:19:44 +01:00
Jordi Boggiano
d9619985db
Workaround PHP bug properly as getenv() without arg also returns mangled values, fixes #10434
2022-01-07 13:57:17 +01:00
Jordi Boggiano
9305dea128
Only run getenv workaround on PHP 7.1.13+
2022-01-07 13:50:03 +01:00
Jordi Boggiano
65c8daa969
Workaround PHP bug with env vars not being read correctly on Windows, fixes #10434
...
refs https://github.com/php/php-src/issues/7896
2022-01-07 09:17:46 +01:00
Cédric Anne
f0d621e101
Prevent uncaught exception when iconv/mbstring are missing; fixes #10168 ( #10224 )
2021-10-27 09:39:15 +02:00
Jordi Boggiano
29a52ff463
Register ErrorHandler early to catch deprecation notices while the Application is being initialized
2021-07-22 12:58:14 +02:00
Jordi Boggiano
49d7ff1626
Fix typo
2021-06-03 10:23:06 +02:00
Jordi Boggiano
91dd175f74
Fix env var handling when variables_order includes E and symfony/console 3.3.15+ is used, fixes #9930
2021-06-03 10:17:54 +02:00
Jordi Boggiano
e0366bc760
Fix COMPOSER_BINARY env not being set in $_SERVER, refs #9930
2021-06-03 09:28:30 +02:00
John Stevenson
c3b76a8532
Upgrade to xdebug-handler 2 ( #9832 )
...
This adds support for Xdebug3 modes and changes the default behaviour
from always restarting if Xdebug is loaded, to only restarting if Xdebug
is active.
Xdebug is considered active if it is loaded, and for Xdebug3, if it is
running in a mode other than `xdebug.mode=off`.
2021-04-13 09:59:06 +02:00
jvoisin
456096d5ff
Fix a type-juggling issue ( #9498 )
2020-11-18 21:53:09 +01:00
Simon Berger
3aadbaa6c4
Cleaned up memory_limit set logic
2020-09-12 21:09:20 +02:00
Andreas Möller
f7f7883a5e
Fix: Xdebug vs xdebug
2019-11-03 14:08:14 +01:00
Jordi Boggiano
d9f873d00e
Abort when HHVM 4.0 is detected to output a clear user message, refs #7990
2019-02-16 17:40:47 +01:00
Michele Locati
04098153c8
Add support for running composer with phpdbg ( #7798 )
2018-11-26 12:32:31 +01:00
Jordi Boggiano
4ebb747e12
Merge branch '1.6'
2018-05-04 11:18:18 +02:00
Nicolas Grekas
658685744b
Force "C" locale to prevent issue with turkish "I"
2018-05-02 17:17:22 -07:00
johnstevenson
ed97c2116c
Use external XdebugHandler library
2018-03-08 19:20:16 +00:00
Jordi Boggiano
882b82d542
Add COMPOSER_MEMORY_LIMIT env var to force a given memory_limit, fixes #6931
2018-01-04 10:49:41 +01:00
Jordi Boggiano
e4840ee413
Add a COMPOSER_BINARY env var so that chdir does not affect @composer script resolvability, fixes #6080
2017-01-22 18:26:49 +01:00
Jordi Boggiano
0bc75c3fb6
Bump memory limit to 1.5G
2016-12-31 16:29:31 +01:00
johnstevenson
896d1d71f8
Use ConsoleOutput to determine color support
2016-09-06 14:57:18 +01:00
johnstevenson
e381abeec0
Simplify argv handling
2016-09-03 19:00:41 +01:00
johnstevenson
586eb3bb41
Restart with xdebug disabled
2016-08-08 18:30:56 +01:00
Rob Bast
5ae9e7fe22
remove spdx files, introduce external library
2015-07-16 11:42:12 +02:00
Rob Bast
e4118385a0
updated spdx related files
2015-07-03 12:22:16 +02:00
Jordi Boggiano
fbc0fa9688
Fix line endings
2015-05-28 14:54:42 +01:00
Jordi Boggiano
2a48b0faa0
Make autoloader suffix a reproducible value as well, refs #3927
2015-05-01 14:32:32 +01:00
Jordi Boggiano
facdd8a503
Add phar-utils package to update timestamps after the build is done, refs #3927
2015-05-01 13:50:16 +01:00
Jordi Boggiano
92785ac677
Make builds more reproducible, refs #3927
2015-05-01 11:21:44 +01:00
jakoch
74a077dd3d
updated spdx-license handling to include metadata
...
issue https://github.com/composer/composer/issues/3744
summary of changes
- replaced bin script "fetch-spdx-identifiers" by "update-spdx-licenses"
- "update-spdx-licenses" uses "Composer/Util/SpdxLicensesUpdater" to update "spdx-licenses.json" file with license identifier, fullname and osi-approved-status
- dropped "spdx-identifiers.json" (identifiers only)
- dropped "SpdxLicenseIdentifier", it's just "SpdxLicense" now
- modified "ShowCommand" to output the license with metadata and removed some unused method arguments (cleanup)
2015-03-29 22:46:38 +02:00
Jordi Boggiano
8e6f62e769
Bump max memory to 1GB, fixes #3785
2015-03-05 14:16:44 +00:00
Jordi Boggiano
c1ff6ea62b
Just output a warning but don't prevent usage through non-cli SAPIs
2013-04-11 10:23:35 +02:00
Jordi Boggiano
3bec538970
Fail if the CLI SAPI is not used to invoke composer
2013-04-09 10:33:14 +02:00
Jordi Boggiano
cfc8bf0730
Make phar build fails more debuggable
2013-03-10 13:58:49 +01:00
Jordi Boggiano
5652ce5e55
Update SPDX license identifiers
2013-02-22 19:24:20 +01:00
Jordi Boggiano
16671831ef
CS fix
2013-01-10 17:55:41 +01:00
Bryan J. Agee
0db97259ba
Adds fallthrough comments to bin/composer (PSR-2 compliance)
2013-01-10 08:20:45 -08:00
Jordi Boggiano
3946a44499
Merge remote-tracking branch 'chEbba/memory_limit'
...
Conflicts:
bin/composer
2012-08-24 17:39:49 +02:00
Jordi Boggiano
573aad8801
Check if ini_set exists before calling it
2012-08-24 16:38:01 +02:00
Kirill chEbba Chebunin
21596b2ccd
Increase memory to 512M, remove warning
2012-08-24 17:49:35 +04:00
Kirill chEbba Chebunin
ba45ef2b70
Remove commented code forom cli script
2012-08-24 17:25:10 +04:00
Kirill chEbba Chebunin
4f129424e1
Increase memory_limit to 256M if it is lower than this value
2012-08-24 17:06:03 +04:00
Kirill chEbba Chebunin
47156103a6
Remove hard coded memory limit. Add troubleshooting doc
2012-08-24 13:53:02 +04:00
Jordi Boggiano
32692e519c
Boost memory_limit at runtime if permitted
2012-06-14 14:21:44 +02:00