diff options
author | Urban Müller | 2018-06-22 08:54:54 +0200 |
---|---|---|
committer | Urban Müller | 2018-06-22 08:54:54 +0200 |
commit | 99b7fc8dc08da090bb7f00c2882e1daeec4434ba (patch) | |
tree | 30e2348c995d39d153c0d2056ee2fb69190f7862 /it_pipe.class | |
parent | 3dabbbd5325c9fad9582cd44b1da68dece78eaa0 (diff) | |
download | itools-99b7fc8dc08da090bb7f00c2882e1daeec4434ba.tar.gz itools-99b7fc8dc08da090bb7f00c2882e1daeec4434ba.tar.bz2 itools-99b7fc8dc08da090bb7f00c2882e1daeec4434ba.zip |
Revert "use safer it:: variants of file funcs"
This reverts commit 05e7ceefa1f0a29c665381b54ac882f260ae6c22.
Diffstat (limited to 'it_pipe.class')
-rw-r--r-- | it_pipe.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/it_pipe.class b/it_pipe.class index ea3010d..77ef565 100644 --- a/it_pipe.class +++ b/it_pipe.class @@ -21,7 +21,7 @@ function __construct($p = array()) $this->lines = strlen($data = it::exec($p['cmd'], $p['args'])) ? explode("\n", rtrim($data, "\n")) : array(); else foreach ((array)($p['fn'] ? $p['fn'] : "php://stdin") as $fn) - $this->lines = array_merge((array)$this->lines, ($t = it::file($fn, FILE_IGNORE_NEW_LINES)) === false ? array() : $t); + $this->lines = array_merge((array)$this->lines, ($t = file($fn, FILE_IGNORE_NEW_LINES)) === false ? array() : $t); } /** @@ -250,7 +250,7 @@ function pipe($cmd) */ function write($fn = null, $append = false) { - it::file_put_contents($fn === null ? "php://stdout" : $fn, $this->lines ? join("\n", $this->lines) . "\n" : "", $append ? FILE_APPEND : 0); + file_put_contents($fn === null ? "php://stdout" : $fn, $this->lines ? join("\n", $this->lines) . "\n" : "", $append ? FILE_APPEND : 0); return $this; } |