Project

General

Profile

« Previous | Next » 

Revision 45bcbee9

Added by Jim Pingle over 8 years ago

Suppress error logging for Diag > Command Prompt so an error in user-entered code doesn't offer to submit a crash report. A notice is still generated since PHP <7 doesn't yet have error_clear_last(). Fixes #6702

View differences:

src/usr/local/www/diag_command.php
282 282
		fclose($phpfile);
283 283

  
284 284
		$output = array();
285
		exec("/usr/local/bin/php " . $tmpname, $output);
285
		exec("/usr/local/bin/php -d log_errors=off " . $tmpname, $output);
286 286

  
287 287
		unlink($tmpname);
288 288

  

Also available in: Unified diff