MediaWiki REL1_33
wfShellExecTest.php
Go to the documentation of this file.
1<?php
2
8 public function testT69870() {
10 // 333 = 331 + CRLF
11 ? ( 'for /l %i in (1, 1, 1001) do @echo ' . str_repeat( '*', 331 ) )
12 : 'printf "%-333333s" "*"';
13
14 // Test several times because it involves a race condition that may randomly succeed or fail
15 for ( $i = 0; $i < 10; $i++ ) {
17 $this->assertEquals( 333333, strlen( $output ) );
18 }
19 }
20}
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
wfShellExec( $cmd, &$retval=null, $environ=[], $limits=[], $options=[])
Execute a shell command, with time and memory limits mirrored from the PHP configuration if supported...
wfIsWindows()
Check if the operating system is Windows.
$command
Definition cdb.php:65
GlobalFunctions wfShellExec.
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title e g db for database replication lag or jobqueue for job queue size converted to pseudo seconds It is possible to add more fields and they will be returned to the user in the API response after the basic globals have been set but before ordinary actions take place $output
Definition hooks.txt:2272