Skip to content

Commit 36f83f6

Browse files
Merge branch '2.8' into 3.4
* 2.8: [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 5b1fdfa + e8e59b7 commit 36f83f6

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
@@ -218,12 +218,11 @@ public function run(InputInterface $input, OutputInterface $output)
218218

219219
if (null !== $this->processTitle) {
220220
if (function_exists('cli_set_process_title')) {
221-
if (false === @cli_set_process_title($this->processTitle)) {
221+
if (!@cli_set_process_title($this->processTitle)) {
222222
if ('Darwin' === PHP_OS) {
223223
$output->writeln('<comment>Running "cli_get_process_title" as an unprivileged user is not supported on MacOS.</comment>');
224224
} else {
225-
$error = error_get_last();
226-
trigger_error($error['message'], E_USER_WARNING);
225+
cli_set_process_title($this->processTitle);
227226
}
228227
}
229228
} elseif (function_exists('setproctitle')) {

0 commit comments

Comments
 (0)