Sara Golemon
30a2bd1d11
Another (and hopefully last) major streams commit.
...
This moves unicode conversion to the filter layer
(rather than at the lower streams layer)
unicode_filter.c has been moved from ext/unicode to main/streams
as it's an integral part of the streams unicode conversion process.
There are now three ways to set encoding on a stream:
(1) By context
$ctx = stream_context_create(NULL,array('encoding'=>'latin1'));
$fp = fopen('somefile', 'r+t', false, $ctx);
(2) By stream_encoding()
$fp = fopen('somefile', 'r+');
stream_encoding($fp, 'latin1');
(3) By filter
$fp = fopen('somefile', 'r+');
stream_filter_append($fp, 'unicode.from.latin1', STREAM_FILTER_READ);
stream_filter_append($fp, 'unicode.to.latin1', STREAM_FILTER_WRITE);
Note: Methods 1 and 2 are convenience wrappers around method 3.
2006-03-29 01:20:43 +00:00
..
2006-01-01 13:10:10 +00:00
2006-03-13 04:40:11 +00:00
2006-01-01 13:10:10 +00:00
2006-02-19 00:55:22 +00:00
2006-01-17 12:18:53 +00:00
2006-02-19 05:05:42 +00:00
2006-03-18 23:44:30 +00:00
2006-03-08 00:43:32 +00:00
2006-02-19 18:20:51 +00:00
2006-03-26 00:23:37 +00:00
2006-03-21 19:02:00 +00:00
2006-01-01 13:10:10 +00:00
2006-03-22 19:41:42 +00:00
2006-01-01 13:10:10 +00:00
2006-02-19 00:55:22 +00:00
2005-12-20 19:17:00 +00:00
2006-02-19 18:20:51 +00:00
2006-02-04 15:36:35 +00:00
2006-02-19 04:29:42 +00:00
2006-03-14 03:46:59 +00:00
2006-01-01 13:10:10 +00:00
2006-01-01 13:10:10 +00:00
2006-03-04 14:17:35 +00:00
2006-01-01 13:10:10 +00:00
2006-03-08 00:43:32 +00:00
2006-02-19 04:29:42 +00:00
2006-01-13 14:30:34 +00:00
2006-03-08 00:43:32 +00:00
2006-03-18 04:15:16 +00:00
2006-01-01 13:10:10 +00:00
2006-02-26 11:57:14 +00:00
2006-03-28 16:05:16 +00:00
2006-01-01 13:10:10 +00:00
2006-03-08 00:43:32 +00:00
2006-02-19 04:29:42 +00:00
2006-03-06 10:06:03 +00:00
2006-03-08 00:43:32 +00:00
2006-03-08 00:43:32 +00:00
2006-03-08 00:43:32 +00:00
2006-03-21 15:35:48 +00:00
2006-03-28 09:13:35 +00:00
2006-02-19 00:55:22 +00:00
2006-02-21 20:12:43 +00:00
2006-01-01 13:10:10 +00:00
2006-03-16 09:44:42 +00:00
2006-03-27 16:43:02 +00:00
2006-01-01 13:10:10 +00:00
2006-01-01 13:10:10 +00:00
2006-03-23 18:39:12 +00:00
2006-03-18 22:06:45 +00:00
2005-11-25 15:44:40 +00:00
2006-03-17 22:17:15 +00:00
2006-02-19 00:55:22 +00:00
2006-03-29 01:10:27 +00:00
2006-03-11 00:25:07 +00:00
2006-02-19 00:55:22 +00:00
2006-02-19 00:55:22 +00:00
2006-01-01 13:10:10 +00:00
2006-01-01 13:10:10 +00:00
2006-03-13 22:59:36 +00:00
2006-03-27 14:08:10 +00:00
2006-01-01 13:10:10 +00:00
2006-03-27 13:53:19 +00:00
2005-12-05 23:52:30 +00:00
2006-01-01 13:10:10 +00:00
2006-03-24 08:46:14 +00:00
2006-01-01 13:10:10 +00:00
2006-03-27 13:53:19 +00:00
2006-03-02 13:12:45 +00:00
2006-03-29 01:20:43 +00:00
2006-03-08 00:43:32 +00:00
2006-03-08 00:43:32 +00:00
2006-01-01 13:10:10 +00:00
2006-01-01 13:10:10 +00:00
2006-01-01 13:10:10 +00:00
2006-03-23 14:22:40 +00:00
2006-03-10 08:29:43 +00:00
2006-03-29 01:20:43 +00:00
2006-02-22 07:25:09 +00:00
2006-03-08 00:43:32 +00:00
2006-03-17 10:17:36 +00:00
2006-01-01 13:10:10 +00:00
2006-03-05 16:31:02 +00:00
2006-01-01 13:10:10 +00:00
2006-03-13 04:40:11 +00:00
2004-05-16 12:10:35 +00:00