summaryrefslogtreecommitdiff
path: root/ext/standard/php_fopen_wrapper.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-09-23 01:47:04 +0000
committerWez Furlong <wez@php.net>2002-09-23 01:47:04 +0000
commit4d8a07d52908505e1516e6cef455debb07f1c2e2 (patch)
tree19a7390f43764582533dba4f4733479fc48cc9b6 /ext/standard/php_fopen_wrapper.c
parent625e7b202bee50d4d2689e23e326aef1f94f08b4 (diff)
downloadphp-git-4d8a07d52908505e1516e6cef455debb07f1c2e2.tar.gz
Implement read buffering in streams.
Eliminate similar code from network.c. Implement fgets equivalent at the streams level, which can detect the mac, dos and unix line endings and handle them appropriately. The default behaviour is unix (and dos) line endings. An ini option to control this behaviour will follow. # Don't forget to make clean! # I've done some testing but would appreciate feedback from # people with scripts/extensions that seek around a lot.
Diffstat (limited to 'ext/standard/php_fopen_wrapper.c')
-rw-r--r--ext/standard/php_fopen_wrapper.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/php_fopen_wrapper.c b/ext/standard/php_fopen_wrapper.c
index 83dd2cca80..6f077a3813 100644
--- a/ext/standard/php_fopen_wrapper.c
+++ b/ext/standard/php_fopen_wrapper.c
@@ -59,10 +59,10 @@ php_stream_ops php_stream_output_ops = {
php_stream_output_close,
php_stream_output_flush,
"Output",
- NULL,
- NULL,
- NULL,
- NULL
+ NULL, /* seek */
+ NULL, /* cast */
+ NULL, /* stat */
+ NULL /* set_option */
};
php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC)