36 $readpipe = $stderr ? 2 : 1;
40 "{$this->config['tidyBin']} -config {$this->config['tidyConfigFile']} " .
41 $this->config[
'tidyCommandLine'] . $opts, $descriptorspec, $pipes );
46 if ( is_resource( $process ) ) {
52 fwrite( $pipes[0], $text );
54 while ( !feof( $pipes[$readpipe] ) ) {
55 $cleansource .= fgets( $pipes[$readpipe], 1024 );
57 fclose( $pipes[$readpipe] );
58 $retval = proc_close( $process );
60 wfWarn(
"Unable to start external tidy process" );
64 if ( !$stderr && $cleansource ==
'' && $text !=
'' ) {