From e4336712684fedf2ef47281cafc6d57b8c3bc1a5 Mon Sep 17 00:00:00 2001
From: Christian Schneider
Date: Thu, 25 Jun 2009 14:16:18 +0000
Subject: Make it::file_put pass PHP4 lint commit hook again

---
 it.class | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/it.class b/it.class
index ebbecbc..667e76c 100644
--- a/it.class
+++ b/it.class
@@ -748,7 +748,7 @@ function file_put($filename, $data, $p = array())
 	else if ($p['lines'])
 		$data = count((array)$data) ? join("\n", (array)$data) ."\n" : "";
 
-	return file_put_contents($filename == "-" ? "php://stdout" : $filename, $data);
+	return ($out = fopen($filename == "-" ? "php://stdout" : $filename, "w")) && (fputs($out, $data) === strlen($data)) && fclose($out);
 }
 
 }
-- 
cgit v1.2.3