This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Mime/Part
Fabien Potencier 6f57fcf9b7 minor #35933 [Mime] strengthen is_resource() checks (nicolas-grekas)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[Mime] strengthen is_resource() checks

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Improves seekable checks by using
`stream_get_meta_data($h)['seekable'] && 0 === fseek($h, 0, SEEK_CUR)`
instead of just
`stream_get_meta_data($h)['seekable']`

which is better when using userland stream wrappers.

Commits
-------

be9c675710 [Mime] strengthen is_resource() checks
2020-04-05 08:41:07 +02:00
..
Multipart Leverage PHP8's get_debug_type() 2020-03-16 17:46:21 +01:00
AbstractMultipartPart.php [Mime] Fix boundary header 2020-03-14 09:10:28 +01:00
AbstractPart.php [Mime] added AbstractPart::asDebugString() 2019-08-04 06:55:52 +02:00
DataPart.php Add missing dots at the end of exception messages 2020-03-15 15:17:26 +01:00
MessagePart.php removed @experimental annotations 2019-06-29 18:43:50 +02:00
SMimePart.php Leverage PHP8's get_debug_type() 2020-03-16 17:46:21 +01:00
TextPart.php minor #35933 [Mime] strengthen is_resource() checks (nicolas-grekas) 2020-04-05 08:41:07 +02:00