1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 09:28:21 +02:00
Files
archived-php-src/win32
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
..
2003-12-08 12:56:47 +00:00
2006-01-01 13:10:10 +00:00
2006-01-01 13:10:10 +00:00
2003-12-19 23:18:14 +00:00
2003-12-19 23:18:14 +00:00
2003-09-20 03:22:36 +00:00
2002-05-19 14:32:24 +00:00
2006-01-01 13:10:10 +00:00
2006-01-01 13:10:10 +00:00
2006-03-08 14:41:45 +00:00
2006-01-01 13:10:10 +00:00
2006-01-01 13:10:10 +00:00
1999-04-07 21:05:13 +00:00
2006-03-08 14:41:45 +00:00
2006-03-08 14:41:45 +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
2005-04-08 21:17:07 +00:00
2006-01-01 13:10:10 +00:00
2006-01-01 13:10:10 +00:00
2005-03-14 12:42:05 +00:00
2006-01-01 13:10:10 +00:00
2006-01-01 13:10:10 +00:00
2006-02-08 21:03:00 +00:00
2006-01-01 13:10:10 +00:00
2004-07-29 02:59:44 +00:00
2003-02-18 13:34:52 +00:00
2001-06-28 23:28:25 +00:00
1999-04-07 21:05:13 +00:00
1999-04-07 21:05:13 +00:00
2006-01-01 13:10:10 +00:00
2006-01-01 13:10:10 +00:00