Posted by douggreen on March 29, 2010 at 6:11pm
| Project: | Drupal core |
| Version: | 7.x-dev |
| Component: | base system |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
While I can't point to any core bug this causes, and this can be solved in contrib, I think that we should save and restore the current working directory because this is a known problem with register_shutdown_function (see comments in thread) and a potential hazard for many people.
I just spent several hours tracking this down from devel, to our stream wrappers, and finally to the fact that the current-working-directory was changed to /. This is a very easy fix in core, very few extra lines, and will probably save other developers lots of time.
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| shutdown-cwd.patch | 668 bytes | Idle | PASSED: [[SimpleTest]]: [MySQL] 18,978 pass(es). | View details |
Comments
#1
rerolled, with proper diff (I hope)
#2
Very very nice job.
#3
Yeah, +1 from me too.
#4
Committed to CVS HEAD. Thanks!
#5
Automatically closed -- issue fixed for 2 weeks with no activity.