* 7.3:
Fix merge
[FrameworkBundle] Clean `http_cache` dir in `KernelTestCase::ensureKernelShutdown()`
fix tests on Windows
[PropertyInfo] Conflict with phpdocumentor/reflection-docblock >= 6
[Finder] Fix appending empty iterators
Fix attributeLoader
Bump Symfony version to 7.3.11
Update VERSION for 7.3.10
Update CHANGELOG for 7.3.10
Bump Symfony version to 6.4.33
Update VERSION for 6.4.32
Update CONTRIBUTORS for 6.4.32
Update CHANGELOG for 6.4.32
[Process] Fix escaping for MSYS on Windows
* 6.4:
fix tests on Windows
[PropertyInfo] Conflict with phpdocumentor/reflection-docblock >= 6
[Finder] Fix appending empty iterators
Fix attributeLoader
Bump Symfony version to 6.4.33
Update VERSION for 6.4.32
Update CONTRIBUTORS for 6.4.32
Update CHANGELOG for 6.4.32
[Process] Fix escaping for MSYS on Windows
* 7.3:
do not use PHPUnit mock objects without configured expectations
[Form] Fix ICU 72+ whitespace handling in `DateTimeToLocalizedStringTransformer`
[Process] Adjust Process mustRun method phpdoc
[Serializer] Fix NameConverter not detecting wrong input format with allow_extra_attributes=false
* 6.4:
do not use PHPUnit mock objects without configured expectations
[Form] Fix ICU 72+ whitespace handling in `DateTimeToLocalizedStringTransformer`
[Process] Adjust Process mustRun method phpdoc
[Serializer] Fix NameConverter not detecting wrong input format with allow_extra_attributes=false
* 7.3:
fix high deps tests
[HttpFoundation] Fix double-prefixing of session keys when using redis/memcached
[TypeInfo] Fix static type resolution when called class is in different namespace
[FrameworkBundle] Revert destination file change for secrets:decrypt-to-local
[Process] Ignore invalid env var names
[JsonStreamer] Fix memory leak by caching stream readers/writers
* 6.4:
fix high deps tests
[HttpFoundation] Fix double-prefixing of session keys when using redis/memcached
[FrameworkBundle] Revert destination file change for secrets:decrypt-to-local
[Process] Ignore invalid env var names
* 7.2:
[Process] Fix process status tracking
Prevent empty request body stream in HttplugClient and Psr18Client
[Lock] Fix Predis error handling
[HttpClient] Fix buffering AsyncResponse with no passthru
[TypeInfo] Fix promoted property phpdoc reading
[HttpClient] Fix retrying requests with Psr18Client and NTLM connections
[HttpClient] Fix uploading files > 2GB
[Mime] use isRendered method to avoid rendering an email twice
* 6.4:
[Process] Fix process status tracking
[HttpClient] Fix buffering AsyncResponse with no passthru
[HttpClient] Fix uploading files > 2GB
[Mime] use isRendered method to avoid rendering an email twice
* 7.1:
Do not read from argv on non-CLI SAPIs
[Process] Use %PATH% before %CD% to load the shell on Windows
[HttpFoundation] Reject URIs that contain invalid characters
[HttpClient] Filter private IPs before connecting when Host == IP
* 6.4:
Do not read from argv on non-CLI SAPIs
[Process] Use %PATH% before %CD% to load the shell on Windows
[HttpFoundation] Reject URIs that contain invalid characters
[HttpClient] Filter private IPs before connecting when Host == IP
* 5.4:
Do not read from argv on non-CLI SAPIs
[Process] Use %PATH% before %CD% to load the shell on Windows
[HttpFoundation] Reject URIs that contain invalid characters
[HttpClient] Filter private IPs before connecting when Host == IP
This PR was merged into the 7.2 branch.
Discussion
----------
[Process] On Windows, don't rely on the OS to find executables
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues | -
| License | MIT
Porting part of https://github.com/composer/composer/pull/12180 here:
On Windows, when searching for an executable, the OS always looks at the current directory before using the PATH variable. This makes it easier than desired to hijack executables. Unix-like OSes don't have this issue.
This PR proposes to rely on ExecutableFinder instead.
Commits
-------
b35a7d42931 [Process] On Windows, don't rely on the OS to find executables
* 7.1:
[Validator] Fix 58691 (missing plural-options in serbian language translation)
profiler form data collector extart value property if it is setted
[Process] Fix escaping /X arguments on Windows
fix the constant being used
fix the path separator being used
fix the directory separator being used
ignore case of built-in cmd.exe commands
[Process] Improve test cleanup by unlinking in a `finally` block
[Notifier] Fix test with hard coded date in `SmsboxTransportTest`
[Process] Return built-in cmd.exe commands directly in ExecutableFinder
Re-add missing Profiler shortcuts on Profiler homepage
[Config] Handle Phar absolute path in `FileLocator`
[Runtime] Remove unused `SKIPIF` from `dotenv_overload.phpt`
* 6.4:
[Validator] Fix 58691 (missing plural-options in serbian language translation)
profiler form data collector extart value property if it is setted
[Process] Fix escaping /X arguments on Windows
[Config] Handle Phar absolute path in `FileLocator`
[Runtime] Remove unused `SKIPIF` from `dotenv_overload.phpt`
* 5.4:
[Validator] Fix 58691 (missing plural-options in serbian language translation)
profiler form data collector extart value property if it is setted
[Process] Fix escaping /X arguments on Windows
[Config] Handle Phar absolute path in `FileLocator`
* 5.4:
Mitigate PHPUnit deprecations
[TwigBundle] Add support for resetting globals between HTTP requests
[Validator] Add Catalan and Spanish translation for `Week` constraint
Don't use is_resource() on non-streams
[Ldap] Fix extension deprecation
* 7.0:
[Serializer] Improve exception message in UnwrappingDenormalizer
[PropertyInfo] Update DoctrineExtractor for new DBAL 4 BIGINT type
Update security.nl.xlf
[Validator] IBAN Check digits should always between 2 and 98
[Security] Populate translations for trans-unit 20
add missing plural translation messages
filter out empty HTTP header parts
[String] Fix folded in compat mode
Remove calls to `getMockForAbstractClass()`
[ErrorHandler] Do not call xdebug_get_function_stack() with xdebug >= 3.0 when not in develop mode
[Serializer] Fix type for missing property
add test for JSON response with null as content
[Filesystem] Fix dumpFile `stat failed` error hitting custom handler
Return false in isTtySupported() when open_basedir restrictions prevent access to /dev/tty.
Remove calls to `TestCase::iniSet()` and calls to deprecated methods of `MockBuilder`
[PhpUnitBridge] Fix `DeprecationErrorHandler` with PhpUnit 10
* 6.4:
[Serializer] Improve exception message in UnwrappingDenormalizer
[PropertyInfo] Update DoctrineExtractor for new DBAL 4 BIGINT type
Update security.nl.xlf
[Validator] IBAN Check digits should always between 2 and 98
[Security] Populate translations for trans-unit 20
add missing plural translation messages
filter out empty HTTP header parts
[String] Fix folded in compat mode
Remove calls to `getMockForAbstractClass()`
[ErrorHandler] Do not call xdebug_get_function_stack() with xdebug >= 3.0 when not in develop mode
[Serializer] Fix type for missing property
add test for JSON response with null as content
[Filesystem] Fix dumpFile `stat failed` error hitting custom handler
Return false in isTtySupported() when open_basedir restrictions prevent access to /dev/tty.
Remove calls to `TestCase::iniSet()` and calls to deprecated methods of `MockBuilder`
[PhpUnitBridge] Fix `DeprecationErrorHandler` with PhpUnit 10
If open_basedir restrictions are in effect, checking if the file /dev/tty is writable will prevent setting tty mode on the process, and avoid failing to create a Process.
* 7.0:
[VarExporter] Uniform unitialized property error message under ghost and non-ghost objects
[AssetMapper] Ignore comment lines in JavaScriptImportPathCompiler
Update configuration path in help message
[Validator] Review Albanian translation
[Process] Fix Inconsistent Exit Status in proc_get_status for PHP Versions Below 8.3
[Validator] Update Czech (cz) translation
Sync translations
[Mailer][Postmark][Webhook] Make allowed IPs configurable
Review portuguese translations
[Validator] Fix fields without constraints in `Collection`
deal with fields for which no constraints have been configured
[DomCrawler] [Form] Fix the exclusion of <template>
* 6.4:
[VarExporter] Uniform unitialized property error message under ghost and non-ghost objects
[AssetMapper] Ignore comment lines in JavaScriptImportPathCompiler
Update configuration path in help message
[Validator] Review Albanian translation
[Process] Fix Inconsistent Exit Status in proc_get_status for PHP Versions Below 8.3
[Validator] Update Czech (cz) translation
Sync translations
[Mailer][Postmark][Webhook] Make allowed IPs configurable
Review portuguese translations
[Validator] Fix fields without constraints in `Collection`
deal with fields for which no constraints have been configured
[DomCrawler] [Form] Fix the exclusion of <template>
* 5.4:
Update configuration path in help message
[Validator] Review Albanian translation
[Process] Fix Inconsistent Exit Status in proc_get_status for PHP Versions Below 8.3
[Validator] Update Czech (cz) translation
Sync translations
Review portuguese translations
[Validator] Fix fields without constraints in `Collection`
deal with fields for which no constraints have been configured
* 7.0:
List CS fix in .git-blame-ignore-revs
Fix implicitly-required parameters
minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench)
Fix bad merge
List CS fix in .git-blame-ignore-revs
Fix implicitly-required parameters
List CS fix in .git-blame-ignore-revs
Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
[Messenger][AmazonSqs] Allow async-aws/sqs version 2
* 6.4:
Fix implicitly-required parameters
minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench)
Fix bad merge
List CS fix in .git-blame-ignore-revs
Fix implicitly-required parameters
List CS fix in .git-blame-ignore-revs
Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
[Messenger][AmazonSqs] Allow async-aws/sqs version 2
* 6.3:
minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench)
Fix bad merge
List CS fix in .git-blame-ignore-revs
Fix implicitly-required parameters
List CS fix in .git-blame-ignore-revs
Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value