Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
if (!@copy($source, $destination)) {
drupal_set_message(t('The specified file %file could not be copied.', array('%file' => $source)), 'error');
return FALSE;
}
Spits errors to the screen even when errors are set not to display, doesn't tell you the destination.
Comment | File | Size | Author |
---|---|---|---|
#5 | 883400-file-watchdog.patch | 614 bytes | chx |
#1 | file.patch | 599 bytes | catch |
file.patch | 602 bytes | catch | |
Comments
Comment #1
catchwatchdog arguments and dsm() arguments sadly not the same.
Comment #2
chx CreditAttribution: chx commentedThat's a good idea.
Comment #3
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #5
chx CreditAttribution: chx commented#874326: Invalid scheme fails to halt processing of a stream request partially reverted this.
Comment #6
sun#5: 883400-file-watchdog.patch queued for re-testing.
Comment #7
sunAlthough badly needed, this is D8 material according to the rules (I had to learn today). It may be backported at a later point in time (though that's unlikely).
Comment #8
catchJust because a bug might not get fixed until D8, doesn't mean it should be moved to D8 in advance.
Comment #9
hgurol CreditAttribution: hgurol commentedyes, lets move it to D9 then...
Comment #10
webchickCommitted to HEAD.