summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2009-06-25 14:16:18 +0000
committerChristian Schneider2009-06-25 14:16:18 +0000
commite4336712684fedf2ef47281cafc6d57b8c3bc1a5 (patch)
treedd41de745fffba115d34bf4f900ddbf4ceca3eb5
parent5668afc8303b79a0cd577553d49d38774b79d0d8 (diff)
downloaditools-e4336712684fedf2ef47281cafc6d57b8c3bc1a5.tar.gz
itools-e4336712684fedf2ef47281cafc6d57b8c3bc1a5.tar.bz2
itools-e4336712684fedf2ef47281cafc6d57b8c3bc1a5.zip
Make it::file_put pass PHP4 lint commit hook again
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
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);
}
}