https://bugzilla.wikimedia.org/show_bug.cgi?id=57282

Aaron Schulz <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
            Summary|SwiftFileBackend leaves tif |Some TempFSFile tif files
                   |files in /tmp               |in /tmp

--- Comment #1 from Aaron Schulz <[email protected]> ---
In eval.php:

$be = FileBackendGroup::singleton()->get( 'local-multiwrite' );
$path =
'mwstore://local-multiwrite/local-public/6/67/Keith_22_nov_1988_1359Z.jpg';
$tf = $be->getLocalReference( array( 'src' => $path ) );
var_dump( $tf->getPath() ); var_dump( stat( $tf->getPath() ) );
exit;

...this prints some stat info and a path, e.g:
string(33) "/tmp/localcopy_bf6f8afcb908-1.jpg"

When I "ls -l" the path I get:
ls: cannot access /tmp/localcopy_bf6f8afcb908-1.jpg: No such file or directory

The same happens if I throw an Exception instead of calling "exit".

Maybe some circular refs with TempFSFile in some caller might cause this
(though gc_enabled() returns true). The other possibility would be fatal
errors.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to