Page MenuHomePhabricator

fwrite to STDERR can fail for command-line script execution
Closed, ResolvedPublic

Description

On my local ubuntu system, I have php-cgi running but no php. As a result, trying to execute a maintenance script that generates an error from the command line leads to this meta-error:

<b>Warning</b>: fwrite(): supplied argument is not a valid stream resource in <b>..../includes/Exception.php</b> on line <b>128</b>

Duesentrieb notes:
...may be wort to report this, btw - at least for basic error output in Exception.php, an fallback should be installed. something like if (!STDERR) echo($msg);


Version: 1.13.x
Severity: minor

Details

Reference
bz15602

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:21 PM
bzimport set Reference to bz15602.
bzimport added a subscriber: Unknown Object (MLST).