Check if ini_set exists before calling it
parent
41fc6ff9ee
commit
573aad8801
|
@ -6,8 +6,11 @@ require __DIR__.'/../src/bootstrap.php';
|
|||
use Composer\Console\Application;
|
||||
|
||||
error_reporting(-1);
|
||||
|
||||
if (function_exists('ini_set')) {
|
||||
@ini_set('display_errors', 1);
|
||||
@ini_set('memory_limit', '512M');
|
||||
}
|
||||
|
||||
// run the command application
|
||||
$application = new Application();
|
||||
|
|
|
@ -49,8 +49,10 @@ class Application extends BaseApplication
|
|||
public function __construct()
|
||||
{
|
||||
ErrorHandler::register();
|
||||
if (function_exists('ini_set')) {
|
||||
ini_set('xdebug.show_exception_trace', false);
|
||||
ini_set('xdebug.scream', false);
|
||||
}
|
||||
|
||||
parent::__construct('Composer', Composer::VERSION);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue