diff options
Diffstat (limited to 'ext/standard/file.c')
| -rw-r--r-- | ext/standard/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index 5cb33932bf..d471fa6899 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1934,7 +1934,7 @@ PHPAPI int php_fputcsv(php_stream *stream, zval *fields, char delimiter, char en smart_str_appendc(&csvline, '\n'); smart_str_0(&csvline); - ret = php_stream_write(stream, csvline.c, csvline.len); + ret = php_stream_write(stream, csvline.s->val, csvline.s->len); smart_str_free(&csvline); |
