Page MenuHomeWickedGov Phorge

WindowsWrapper.php
No OneTemporary

Size
617 B
Referenced Files
None
Subscribers
None

WindowsWrapper.php

<?php
namespace Shellbox\Command;
class WindowsWrapper extends Wrapper {
/**
* Windows should be the outermost wrapper because of its special quoting
*/
public const PRIORITY = 80;
public function wrap( Command $command ) {
// Windows Shell bypassed, but command run is "cmd.exe /C "{$cmd}"
// This solves some shell parsing issues, see T207248.
// This should be unnecessary in PHP 8.0+.
$command->unsafeCommand(
'cmd /s /c "' . $command->getCommandString() . '"'
);
$command->procOpenOptions( [ 'bypass_shell' => true ] );
}
public function getPriority() {
return self::PRIORITY;
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 15 2026, 06:45 (13 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ea/a3/8fde17786ce99f4db4e9d1463434
Default Alt Text
WindowsWrapper.php (617 B)

Event Timeline