diff options
author | Christian Schneider | 2009-06-25 14:16:18 +0000 |
---|---|---|
committer | Christian Schneider | 2009-06-25 14:16:18 +0000 |
commit | e4336712684fedf2ef47281cafc6d57b8c3bc1a5 (patch) | |
tree | dd41de745fffba115d34bf4f900ddbf4ceca3eb5 | |
parent | 5668afc8303b79a0cd577553d49d38774b79d0d8 (diff) | |
download | itools-e4336712684fedf2ef47281cafc6d57b8c3bc1a5.tar.gz itools-e4336712684fedf2ef47281cafc6d57b8c3bc1a5.tar.bz2 itools-e4336712684fedf2ef47281cafc6d57b8c3bc1a5.zip |
Make it::file_put pass PHP4 lint commit hook again
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |