A diff file for compiler.inc. It's useful for me because I have to rebuild semi-often as I try out new designs, and the PHP cache I use will sometimes cache the page as it is being rebuilt(which also means someone has viewed the incomplete page), resulting in a truncated page.
362c362
< if (!($fp = fopen($dir.$dst, 'wb'))) {
---
> if (!($fp = fopen($dir.$dst."fudtmp", 'wb'))) {
366a367
> rename($dir.$dst."fudtmp",$dir.$dst);
467,468c468,470
< copy($GLOBALS['DATA_DIR'].'sql/'.__dbtype__.'/db.inc', $GLOBALS['DATA_DIR'].'src/db.inc.t');
<
---
> copy($GLOBALS['DATA_DIR'].'sql/'.__dbtype__.'/db.inc', $GLOBALS['DATA_DIR'].'src/db.inc.tfudtmp');
> rename($GLOBALS['DATA_DIR'].'src/db.inc.tfudtmp',$GLOBALS['DATA_DIR'].'src/db.inc.t');
>
584,585c586,589
< if (!@copy($path, $nd) && !@file_exists($nd)) {
< echo 'cannot copy "'.$path.'" to "'.$nd.'"<br>';
---
> if(!@copy($path, $nd."fudtmp")) {
> echo 'cannot copy "'.$path.'" to "'.$nd.'fudtmp"<br>';
> } else if(!@rename($nd."fudtmp",$nd)) {
> echo 'cannot rename "'.$nd.'fudtmp" to "'.$nd.'"<br>';