Commit Graph

4619 Commits

Author SHA1 Message Date
Frank M. Kromann
954199c9fb More ZSTR() fixes 2006-04-29 14:53:26 +00:00
Frank M. Kromann
e6e2754439 Remove ZSTR() from stream macros. Calling function must apply this macro 2006-04-28 19:03:58 +00:00
Antony Dovgal
cf31c2f51a remove nonexistent tag 2006-04-25 12:50:14 +00:00
Antony Dovgal
7bde7e87eb MF51: fix possible substr_compare() crash
add new tests
2006-04-25 12:49:04 +00:00
Antony Dovgal
8a434f5df0 merge fix for #37158 into HEAD
add test
2006-04-22 23:49:39 +00:00
Frank M. Kromann
1791befa0c Fix Win32 build. NULL_ZSTR was converted to ZSTR(NULL_ZSTR) 2006-04-22 10:39:31 +00:00
Antony Dovgal
acf25d1aac fix typo (see #35900) 2006-04-19 08:43:05 +00:00
Sara Golemon
ea106887a7 Silence compiler warnings 2006-04-18 19:10:12 +00:00
Andrei Zmievski
efd298e2eb I'm not sure what the heck people were thinking here, but it should be
fixed finally. Please test.
2006-04-18 05:18:12 +00:00
Andrei Zmievski
6b336175a6 Fix trim("a") bug. 2006-04-18 02:40:29 +00:00
Sara Golemon
04ecb8b1fd Fix 'soft line break' handling in convert.quoted-printable-decode 2006-04-17 19:25:48 +00:00
Ilia Alshanetsky
78b81f2591 MFB51: fixed typo 2006-04-16 17:41:26 +00:00
Ilia Alshanetsky
53ab6c0920 MFB51: Fixed bug #37045 (Fixed check for special chars for http redirects). 2006-04-16 16:55:25 +00:00
Antony Dovgal
8c086bcf8d make this test to work on all systems 2006-04-14 20:30:47 +00:00
Sara Golemon
1e9a9d596b MFB (r-1.409.2.6) copy() should not disrespect open_basedir on source file 2006-04-14 17:44:56 +00:00
Antony Dovgal
becb273c16 MF51: fix #37077 (stream_socket_server() leaks when the port is not allowed) 2006-04-14 10:01:34 +00:00
Sara Golemon
d05836890b Preserve full name of filter for use in stream_get_meta_data() 2006-04-13 04:41:08 +00:00
Sara Golemon
0b84c73635 Allow http:// wrapper to automatically apply correct unicode.from.* filter based on content-type header 2006-04-12 22:40:56 +00:00
Antony Dovgal
a44fe39f40 fix test title 2006-04-12 22:21:13 +00:00
Johannes Schlüter
e7747e8d74 - Fix bug #37060 (Type of retval of Countable::count() is not checked) 2006-04-12 19:29:52 +00:00
Ilia Alshanetsky
490609ffc4 MFB51: fixed test 2006-04-10 23:48:38 +00:00
foobar
6af3218f81 more cleanup (lingering ini settings which do not exist anymore, etc.) 2006-04-10 15:09:15 +00:00
foobar
a6a3c9059d - Fixed bug #36909 (ld: Undefined symbols: _lchown) 2006-04-10 11:56:04 +00:00
foobar
0e8b5470be fix credits 2006-04-10 09:46:32 +00:00
Ilia Alshanetsky
f58ef85af5 MFB51: Fixed bug #36875 (is_*() functions do not account for open_basedir). 2006-04-09 17:58:02 +00:00
Sara Golemon
5a9feaa6b1 Plug leak which occurs in unicode mode 2006-04-06 20:05:43 +00:00
Sara Golemon
b6f62cabff Silence false positives on test results 2006-04-06 20:03:27 +00:00
Sara Golemon
78d1f7ea40 Silence false positives in test failures 2006-04-06 19:51:36 +00:00
Antony Dovgal
4e85f445f0 add test 2006-04-05 12:29:35 +00:00
Ilia Alshanetsky
1df7d39695 Fixed bug #36957 (serialize() does not handle recursion). 2006-04-05 02:28:39 +00:00
Derick Rethans
1bad8fea12 - No need to have this one twice here... (Thanks Steph) 2006-04-04 06:04:49 +00:00
Ilia Alshanetsky
a24cb8773f MFB51: Fixed an unlikely, but possible memory leak. 2006-04-03 13:46:35 +00:00
Antony Dovgal
0b0fff07b2 fix spelling in error messages:
greater/less thEn -> greater/less thAn
2006-04-03 09:14:50 +00:00
Sara Golemon
53450fae8a Update tests for working with unicode 2006-04-03 05:57:40 +00:00
Sara Golemon
b2523b29b8 Update filename handling and mark various functions for unicode safety 2006-04-01 00:05:31 +00:00
Sara Golemon
fd606a8d78 Add API hooks and unicode.filesystem_encoding for handling unicode
conversions of filename entries.

Normal path conversions will simply use this converter,
Certain other protocols (such as http) which specify a
required character set (utf8), may override the conversion
by defining a path_encode() and/or path_decode() wrapper ops method.
2006-03-31 22:51:37 +00:00
Antony Dovgal
ec376e510c MF51: fix compile failure with old GCC (see bug #36931) 2006-03-31 11:11:26 +00:00
Antony Dovgal
4f1da95828 fix TSRM build 2006-03-30 19:59:51 +00:00
Ilia Alshanetsky
0f48af3cec MFB51: Fixed XSS inside phpinfo() with long inputs. 2006-03-30 19:16:28 +00:00
Sara Golemon
51b9a0f269 Make php_stream_copy_to_mem() unicode aware and
update userspace function file_get_contents().

Note: fgc()'s second parameter (use_include_path) has been changed
to be a bitmask "flags" parameter instead.

For the most commonly used values (TRUE, 1) this will continue functioning
as expected since the value of FILE_USE_INCLUDE_PATH is (coincidentally) 1.
The impact to other values should be noted in the migration6 guide.

This change makes it possible to allow fgc() to return binary file
contents (default) or unicode transcoded contents (using FILE_TEXT flag).
2006-03-30 00:22:51 +00:00
Sara Golemon
1c97a0d78c Update php_stream_passthru() to handle unicode data.
This updates userspace functions fpassthru() and readfile()

UG(output_encoding) is used by php_stream_passthru() to translate
unicode stream contents back to an outputable character set.

Note: readfile()'s second parameter (use_include_path) has been changed
to be a bitmask "flags" parameter instead.

For the most commonly used values (TRUE, 1) this will continue functioning
as expected since the value of FILE_USE_INCLUDE_PATH is (coincidentally) 1.
The impact to other values should be noted in the migration6 guide.

This change makes it possible to allow readfile() to output binary file
contents (default) or unicode transcoded contents (using FILE_TEXT flag).
2006-03-29 22:52:24 +00:00
Andrei Zmievski
d57e79782e Bug! 2006-03-29 05:56:06 +00:00
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
Ilia Alshanetsky
75c7f810ea MFB51: Check 2nd parameter of tempnam() against path components. 2006-03-27 23:41:05 +00:00
Andrei Zmievski
e85495f6f1 Fix UErrorCode check. 2006-03-27 23:05:38 +00:00
Andrei Zmievski
d761aa7eb2 Typo. 2006-03-27 22:16:53 +00:00
Andrei Zmievski
626be75d6c Make a UTODO note. 2006-03-27 21:19:12 +00:00
Andrei Zmievski
a8c291f8fe Proto updates. 2006-03-27 19:24:18 +00:00
Dmitry Stogov
d1d9ce8fed Test for strtr() with non-ascii encoding 2006-03-27 14:37:14 +00:00
Dmitry Stogov
9d9adb2f35 Unicode support 2006-03-27 14:19:18 +00:00