In wfShellExec(), log return code 127 to a special log file, to check for missing...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 5 Sep 2008 03:32:09 +0000 (03:32 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 5 Sep 2008 03:32:09 +0000 (03:32 +0000)
includes/GlobalFunctions.php

index a58bbaf..4d50956 100644 (file)
@@ -2113,6 +2113,10 @@ function wfShellExec( $cmd, &$retval=null ) {
        passthru( $cmd, $retval );
        $output = ob_get_contents();
        ob_end_clean();
+
+       if ( $retval == 127 ) {
+               wfDebugLog( 'exec', "Possibly missing executable file: $cmd\n" );
+       }
        return $output;
 
 }