php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch cli_process_title_windows8_nonEnglish for Testing related Bug #65678Patch version 2013-09-16 09:49 UTC Return to Bug #65678 | Download this patchThis patch renders other patches obsolete Obsolete patches: Patch Revisions: 2013-09-16 09:49 UTC | 2013-09-16 09:48 UTCDeveloper: pierre.renaudet@gmail.comdiff --git a/sapi/cli/tests/cli_process_title_windows.phpt b/sapi/cli/tests/cli_process_title_windows.phpt index 309c09c..ede2f74 100644 index 309c09c..472f9c1 100644 --- a/sapi/cli/tests/cli_process_title_windows.phpt +++ b/sapi/cli/tests/cli_process_title_windows.phpt @@ -20,7 +20,7 @@ // no warnings/errors. $is_windows8 = false; -$ps_output = shell_exec("PowerShell \"(Get-Host).UI.RawUI.WindowTitle\""); +$ps_output = shell_exec("PowerShell -ExecutionPolicy RemoteSigned \"(Get-Host).UI.RawUI.WindowTitle\""); +$ps_output = shell_exec("PowerShell -NoProfile \"(Get-Host).UI.RawUI.WindowTitle\""); if ($ps_output === null) { echo "Get-Host failed\n"; @@ -28,7 +28,8 @@ } else { - $loaded_title = shell_exec("PowerShell \"get-process cmd*,powershell* | Select-Object mainWindowTitle | ft -hide\""); + $loaded_title = shell_exec("PowerShell -ExecutionPolicy RemoteSigned \"get-process cmd*,powershell* | Select-Object mainWindowTitle | ft -hide\""); + $loaded_title = shell_exec("PowerShell -NoProfile \"get-process cmd*,powershell* | Select-Object mainWindowTitle | ft -hide\""); if ($loaded_title === null) { |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Sun May 19 11:01:37 2024 UTC |