"Aaron Schulz" posted a comment on MediaWiki.r113688.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/113688#c32261

Commit summary for MediaWiki.r113688:

Made wfShellMaintenanceCmd() not totally broken due to excess shell escaping.

Aaron Schulz's comment:

OK, wtf...If I set the "bypass cmd.exe" flag it works again. See:
<source lang="php">
$process = proc_open(
        '"php" "C:\wamp\www\MW_trunk/maintenance/showStats.php"',
        #'php C:\wamp\www\MW_trunk/maintenance/showStats.php',
        array(
                0 => array( 'pipe', 'r' ), // input
                1 => array( 'pipe', 'w' ), // output
                2 => array( 'file', 'NUL', 'a' ) // error
        ),
        $pipes, // respective outputs
        null,
        null,
        array( 'bypass_shell' => true )
);
</source>

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to