Maurits van der Schee 5 anni fa
parent
commit
f466a33a7d
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1
    2
      install.php

+ 1
- 2
install.php Vedi File

31
             $patched = preg_replace('/\):\s*(\?[a-zA-Z]+|void)\s*\n/', ") /*:$1*/\n", $patched);
31
             $patched = preg_replace('/\):\s*(\?[a-zA-Z]+|void)\s*\n/', ") /*:$1*/\n", $patched);
32
             $patched = preg_replace('/private const/', "/*private*/ const", $patched);
32
             $patched = preg_replace('/private const/', "/*private*/ const", $patched);
33
             if ($patched && $patched != $original) {
33
             if ($patched && $patched != $original) {
34
-                echo "$filename\n";
35
                 file_put_contents($filename, $patched);
34
                 file_put_contents($filename, $patched);
36
                 $count++;
35
                 $count++;
37
             }
36
             }
50
     $end = microtime(true);
49
     $end = microtime(true);
51
     $time = ($end - $start) * 1000;
50
     $time = ($end - $start) * 1000;
52
     if ($count) {
51
     if ($count) {
53
-        echo sprintf("%d files patched in %d ms\n", $count, $time);
52
+        fwrite(STDERR, sprintf("%d files patched in %d ms\n", $count, $time));
54
     }
53
     }
55
 }
54
 }
56
 
55
 

Loading…
Annulla
Salva