#517814: File API Stream Wrapper Conversion made changes to the logic of the code without reguard to the code that was there and changed its function.
| Comment | File | Size | Author |
|---|---|---|---|
| #22 | 577398-fapi-fix.patch | 3.87 KB | boombatower |
| #20 | 577398-fapi-fix.patch | 3.87 KB | boombatower |
| #18 | 577398-fapi-fix.patch | 3.87 KB | boombatower |
| #16 | 577398-fapi-fix.patch | 3.66 KB | boombatower |
| #14 | 577398-fapi-fix.patch | 3.61 KB | boombatower |
Comments
Comment #1
boombatower commentedComment #2
boombatower commentedExtra stuff form other patch.
Comment #3
boombatower commentedNeed both sets of changes.
Comment #5
chx commentedAh yes. There are more problems here, I think the error_log wants to go to a wrong directory too and it causes problems.
Comment #6
boombatower commentedRe-rolled.
Comment #8
boombatower commentedMail system variable changed names which fixed all the tests.
Comment #10
boombatower commentedPass locally. Any thoughts?
Comment #12
boombatower commented...
Comment #14
boombatower commentedComment #15
c960657 commentedAt this point
file_directory_path('public')still returns the files directory of the site running the test, and that already exists. I assume you meant to prepare$public_files_directoryinstead? The public directory is created in the next line, because the private directory is a subdirectory of the public.Slightly outside the scope of this issue: We should probably use
file_directory_path('public')instead offile_directory_path()when initializing$this->originalFileDirectoryearlier insetUp()to make sure that$public_files_directorypoints to a public directory.Comment #16
boombatower commentedUpdated.
Comment #18
boombatower commentedHow about we fix that line :)
Comment #20
boombatower commentedGotz me.
Comment #22
boombatower commentedLets try this on PIFR 2.x and get some assertion messages!
Comment #23
chx commentedGood one! It's very easy to see that the current is broken, that preg matched simpletest123456 while creating simpletest/123456 dirs.
Comment #24
webchickCommitted to HEAD. Now. The real problem here is actually that we have no test coverage for this bit of code, or else the conversion to stream wrappers would never have broken it in the first place. Is it possible to add test coverage here for SimpleTest's file handling, or is that a bit too meta for it to handle?
Comment #25
webchick.
Comment #26
boombatower commentedComment #27
boombatower commented