Commit Graph

34006 Commits

Author SHA1 Message Date
Pierre Joye
ed35661f1e - move setSchema to the 2.6.20 block, this method is only available from
this version
2006-03-31 23:20:58 +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
Marcus Boerger
e08784867c - Add XMLReader::setSchema 2006-03-31 20:50:29 +00:00
Antony Dovgal
ec376e510c MF51: fix compile failure with old GCC (see bug #36931) 2006-03-31 11:11:26 +00:00
8eb12d6116 ChangeLog update 2006-03-31 06:31:50 +00:00
Marcus Boerger
e365c4b7c4 - Fix build 2006-03-30 23:03:53 +00:00
Marcus Boerger
b7244fc2c0 - MFB Make readable 2006-03-30 22:03:02 +00:00
Marcus Boerger
2c8b47ca31 - Add another test 2006-03-30 21:45:27 +00:00
Antony Dovgal
eea22a0ffa MF51: fix compilation on AIX 2006-03-30 21:39:15 +00:00
Antony Dovgal
8c63a3bce7 MF51: fix tests 2006-03-30 20:43:55 +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
Marcus Boerger
72a8396032 - Return NULL instead of '' if node does not exist 2006-03-30 17:36:46 +00:00
Seiji Masugata
cbd37caefc added mb_stripos( ), mb_strripos( ). 2006-03-30 15:43:54 +00:00
Dmitry Stogov
e25b5062e3 typo 2006-03-30 14:08:38 +00:00
Antony Dovgal
cb2232e808 MF51: fix #36922 (missing MYSQLI_REPORT_STRICT constant in userspace) 2006-03-30 11:23:11 +00:00
Dmitry Stogov
01cb2b07ed Unicode support 2006-03-30 08:15:18 +00:00
Dmitry Stogov
8fbc029247 Describe registr_long_arrays, ze1_compatibility_mode, dl(), E_ALL/E_STRICT 2006-03-30 07:54:53 +00:00
66287d9fb6 ChangeLog update 2006-03-30 06:31:53 +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
Antony Dovgal
87f6b66a62 fix typo 2006-03-29 16:30:54 +00:00
Seiji Masugata
e42f182be3 added mb_strrchr( ). 2006-03-29 15:47:07 +00:00
Antony Dovgal
6a53a49c8b MF51: fix bug #36898 (__set() leaks in classes extending internal ones)
Added:
ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC)
ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC)
2006-03-29 15:08:52 +00:00
39392cce19 ChangeLog update 2006-03-29 06:31:49 +00:00
Andrei Zmievski
d57e79782e Bug! 2006-03-29 05:56:06 +00:00
Sara Golemon
4816e6f1c4 Ooops, missed a file 2006-03-29 01:52:28 +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
Yasuo Ohgaki
f028fcecb5 restore E_WARNING in correct place 2006-03-29 01:10:27 +00:00
Antony Dovgal
e98f9777db initialize bucket #0 with nulls 2006-03-28 21:58:21 +00:00
Antony Dovgal
f34d655334 MF51: fix #36897 (debug_print_backtrace() doesn't return void but array(0) {}) 2006-03-28 19:43:37 +00:00
Seiji Masugata
b5cd8f02d8 added mb_strstr( ). 2006-03-28 16:05:16 +00:00
Antony Dovgal
8629171612 fix tests 2006-03-28 09:13:35 +00:00
Antony Dovgal
c5f35d7d95 MF51: fix #36851 (Documentation and code discrepancies for NULL data) 2006-03-28 09:13:22 +00:00
25a73301a5 ChangeLog update 2006-03-28 06:31:49 +00:00
Andrei Zmievski
a65a781b16 Note 2006-03-28 06:30:47 +00:00
Andrei Zmievski
3eee3a5fd6 Fix collator instantiation. 2006-03-28 04:33:29 +00:00
Andrei Zmievski
cbbfebc428 Fix typos. 2006-03-28 03:28:08 +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
Antony Dovgal
31123e33b3 MF51: fix #36878 (error messages are printed even though an exception has been thrown) 2006-03-27 22:07:50 +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
Andrei Zmievski
0f3a42a4c1 *** empty log message *** 2006-03-27 19:18:40 +00:00
Andrei Zmievski
978c58ad78 Add UTODO. 2006-03-27 19:15:58 +00:00
Andrei Zmievski
443f9d0844 Mark with UTODO instead of FIXME. 2006-03-27 17:34:06 +00:00
Antony Dovgal
036fc47efb fix possible NULL dereference 2006-03-27 16:43:02 +00:00
Seiji Masugata
d28ec107ac added mb_list_mime_names( ). 2006-03-27 15:20:02 +00:00
Dmitry Stogov
d1d9ce8fed Test for strtr() with non-ascii encoding 2006-03-27 14:37:14 +00:00