Diff of /compile.php [961ec0] .. [85d212]  Maximize  Restore

Switch to side-by-side view

--- a/compile.php
+++ b/compile.php
@@ -394,5 +394,5 @@
 $file = php_shrink($file);
 
 $filename = $project . (preg_match('~-dev$~', $VERSION) ? "" : "-$VERSION") . ($driver ? "-$driver" : "") . ($_SESSION["lang"] ? "-$_SESSION[lang]" : "") . ".php";
-fwrite(fopen($filename, "w"), $file); // file_put_contents() since PHP 5
+file_put_contents($filename, $file);
 echo "$filename created (" . strlen($file) . " B).\n";

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks