Skip to content

Commit e8e59b7

Browse files
Merge branch '2.7' into 2.8
* 2.7: [Security] Fix logout #27250 limiting GET_LOCK key up to 64 char due to changes in MySQL 5.7.5 and later [Profiler] Remove propel & event_listener_loading category identifiers [Filesystem] Fix usages of error_get_last() [Debug] Fix populating error_get_last() for handled silent errors Suppress warnings when open_basedir is non-empty
2 parents 932d1e4 + 574cb4c commit e8e59b7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Command/Command.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,11 @@ public function run(InputInterface $input, OutputInterface $output)
208208

209209
if (null !== $this->processTitle) {
210210
if (function_exists('cli_set_process_title')) {
211-
if (false === @cli_set_process_title($this->processTitle)) {
211+
if (!@cli_set_process_title($this->processTitle)) {
212212
if ('Darwin' === PHP_OS) {
213213
$output->writeln('<comment>Running "cli_get_process_title" as an unprivileged user is not supported on MacOS.</comment>');
214214
} else {
215-
$error = error_get_last();
216-
trigger_error($error['message'], E_USER_WARNING);
215+
cli_set_process_title($this->processTitle);
217216
}
218217
}
219218
} elseif (function_exists('setproctitle')) {

0 commit comments

Comments
 (0)