1
0
Fork 0
Commit Graph

92 Commits (3a2d1c5f9c798cda7131ad20fe42fa0dccd2a8d5)

Author SHA1 Message Date
Jordi Boggiano 3a2d1c5f9c
Update logic 2024-12-11 09:24:40 +01:00
Jordi Boggiano 008129be49
Avoid duplicate errors in the output, fixes #12214 2024-12-10 16:37:56 +01:00
Jordi Boggiano 955a48e631
Merge pull request from GHSA-jm6m-4632-36hf 2023-09-29 10:15:51 +02:00
Jordi Boggiano e0cce2bfb0
Allow autoload to run on 5.6 still, add early exits when running composer or autoload.php with outdated PHP versions, fixes #10714, refs #10709 2022-04-06 22:07:16 +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
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 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
Jordi Boggiano 3be04fd3b5 CS fix 2012-05-12 09:41:15 +02:00
Tom Klingenberg c4d5819ec4 Compile has a message to tell. 2012-05-11 18:04:13 +02:00
Jordi Boggiano 438cea6363 Regroup bootstrapers 2012-03-15 13:14:02 +01:00
Marcin Chyłek 0e0b5ac222 chache to return (file_exists() && include ); 2012-03-15 11:36:40 +01:00
Marcin Chyłek 768bedc164 Fix xdebug display errors in autoload 2012-03-15 00:58:12 +01:00
Jordi Boggiano 26e909a1a0 Apply nested-autoload support to all relevant files 2012-02-05 21:23:52 +01:00
Beau Simensen 8d0c2e0079 Check for vendor differently for "installs as a dependency" case 2012-01-22 10:37:28 -08:00
Beau Simensen d7714983c3 Fallback to include `vendor/.composer/autoload.php` for `bin/composer`
When Composer is a dependency for a project the `vendor/bin/composer`
script will not run as it is looking for `__DIR__.'/../vendor'` which
likely will not exist. What I believe is intended is for the script
to include the packages `vendor/.composer/autoload.php`.
2012-01-19 22:28:51 -08:00
Jordi Boggiano e91897a59b Restore +x on bin files 2012-01-17 22:34:37 +01:00
François Pluchino f65b34860f Merge branch 'test'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
	src/Composer/Repository/Vcs/HgBitbucketDriver.php
2012-01-12 12:19:13 +01:00