119 public static function command( ...$commands ) {
120 if ( count( $commands ) === 1 &&
is_array( reset( $commands ) ) ) {
123 $commands = reset( $commands );
126 ->getShellCommandFactory()
129 return $command->params( $commands );
138 static $disabled =
null;
142 wfDebug(
"proc_open() is disabled\n" );
172 foreach (
$args as $arg ) {
173 if ( $arg ===
null ) {
193 foreach (
$tokens as $token ) {
194 if ( $iteration % 2 == 1 ) {
197 }
elseif ( $iteration % 4 == 2 ) {
209 if (
preg_match(
'/^(.*?)(\\\\+)$/', $arg, $m ) ) {
214 $retVal .=
'"' . $arg .
'"';
239 Hooks::run(
'wfShellWikiCmd', [ &$script, &$parameters, &
$options ] );
247 ->params( $parameters )
248 ->restrict( self::RESTRICT_DEFAULT & ~self::NO_LOCALSETTINGS );
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
$wgPhpCli
Executable path of the PHP cli binary.
wfDebug( $text, $dest='all', array $context=[])
Sends a line to the debug log if enabled or, optionally, to a comment in output.
wfIsWindows()
Check if the operating system is Windows.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options