Public Member Functions | |
stream_open ($path, $mode, $options, &$opened_path) | |
url_stat () | |
stream_read ($count) | |
stream_tell () | |
stream_eof () | |
stream_stat () | |
stream_seek ($offset, $whence) | |
Protected Attributes | |
$_pos = 0 | |
$_data | |
$_stat |
Definition at line 40 of file Stream.php.
stream_eof | ( | ) |
Tells if we are at the end of the stream.
Definition at line 131 of file Stream.php.
stream_open | ( | $ | path, |
$ | mode, | ||
$ | options, | ||
&$ | opened_path | ||
) |
Opens the script file and converts markup.
If reading the file failed, update our local stat store to reflect the real stat of the file, then return on failure
Convert <?= ?> to long-form <?php echo ?> and <? ?> to <?php ?>
file_get_contents() won't update PHP's stat cache, so we grab a stat of the file to prevent additional reads should the script be requested again, which will make include() happy.
Definition at line 66 of file Stream.php.
stream_read | ( | $ | count ) |
Reads from the stream.
Definition at line 111 of file Stream.php.
stream_seek | ( | $ | offset, |
$ | whence | ||
) |
Seek to a specific point in the stream.
Definition at line 149 of file Stream.php.
stream_stat | ( | ) |
Stream statistics.
Definition at line 140 of file Stream.php.
stream_tell | ( | ) |
Tells the current position in the stream.
Definition at line 122 of file Stream.php.
url_stat | ( | ) |
Included so that __FILE__ returns the appropriate info
Definition at line 103 of file Stream.php.