1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext
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 05:05:42 +00:00
2006-02-19 18:20:51 +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
2005-12-20 19:17:00 +00:00
2006-02-19 18:20:51 +00:00
2006-02-19 04:29:42 +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-01-13 14:30:34 +00:00
2006-01-01 13:10:10 +00:00
2006-03-28 16:05:16 +00:00
2006-01-01 13:10:10 +00:00
2006-03-06 10:06:03 +00:00
2006-03-28 09:13:35 +00:00
2006-02-21 20:12:43 +00:00
2006-01-01 13:10:10 +00:00
2006-03-27 16:43:02 +00:00
2006-01-01 13:10:10 +00:00
2006-03-23 18:39:12 +00:00
2006-03-29 01:10:27 +00:00
2006-03-11 00:25:07 +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
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-01-01 13:10:10 +00:00
2006-01-01 13:10:10 +00:00
2006-01-01 13:10:10 +00:00
2006-02-22 07:25:09 +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