[2.8][Filesystem] Changed dumpFile to allow dumping to streams... - #14970
[2.8][Filesystem] Changed dumpFile to allow dumping to streams...#14970markchalloner wants to merge 1 commit into
Conversation
…tive tempnam() and fixed dumpFile to allow dumping to streams
|
Hi @xabbuh, Are there any further actions needed on this before it can be merged? Thanks |
There was a problem hiding this comment.
I think it would be better to throw an exception if an error occurred instead of silently fail and return a magic return value (same below).
|
@markchalloner Are you still interested in finishing this PR? |
|
@fabpot. Sure |
There was a problem hiding this comment.
should be removed as we only document "major" features in READMEs.
|
@fabpot Thanks for the feedback. On reflection I am happy to pass this over to anyone who wants to pick this up, unfortunately I don't currently have the time to dedicate to this. |
|
Thanks for your feedback @markchalloner I'm closing this PR. Someone can take over anytime by finishing this PR. |
…ams (markchalloner, pierredup) This PR was merged into the 2.8 branch. Discussion ---------- [Filesystem] Changed dumpFile to allow dumping to streams | Q | A | ------------- | --- | Bug fix? | yes | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #10018 | License | MIT | Doc PR | symfony/symfony-docs#5393 This is a follow-up of #14970 with comments addressed Commits ------- 5ca7dee Fix mode a17aa5e Fixed failing test for HHVM 61a3afd Removed unused logic in MockStream 247266c Update coding standard for MockStream c6a7747 [Filesystem] added tempnam() stream wrapper aware version of PHP's native tempnam() and fixed dumpFile to allow dumping to streams
...as rename can only work where $oldname and $newname have the same streams wrappers.
Added tempnam, stream wrapper aware version of tempnam(), to do the heavy lifting.