33 $readpipe = $stderr ? 2 : 1;
37 "{$this->config['tidyBin']} -config {$this->config['tidyConfigFile']} " .
38 $this->config[
'tidyCommandLine'] . $opts, $descriptorspec, $pipes );
43 if ( is_resource( $process ) ) {
49 fwrite( $pipes[0], $text );
51 while ( !feof( $pipes[$readpipe] ) ) {
52 $cleansource .= fgets( $pipes[$readpipe], 1024 );
54 fclose( $pipes[$readpipe] );
55 $retval = proc_close( $process );
57 wfWarn(
"Unable to start external tidy process" );
61 if ( !$stderr && $cleansource ==
'' && $text !=
'' ) {