Commit Graph

33951 Commits

Author SHA1 Message Date
Dmitry Stogov
159bfd55e1 Unicode support 2006-03-27 10:25:35 +00:00
Dmitry Stogov
06cfa710b4 Fixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed test 2006-03-27 10:15:02 +00:00
Dmitry Stogov
ba72ff3fcc Fixed bug during function/class declaration in unicode mode 2006-03-27 09:44:03 +00:00
Dmitry Stogov
1c7bc1e012 Fixed test file (test still fail) 2006-03-27 09:42:15 +00:00
Dmitry Stogov
e6a8c7405e Fixed test 2006-03-27 09:39:27 +00:00
Antony Dovgal
d15557fb76 MF51: fix #36869 (memory leak in output buffering when using chunked output) 2006-03-27 08:26:20 +00:00
Dmitry Stogov
d7491a3e7e Fixed meory leak in case of unknown pragma 2006-03-27 08:09:08 +00:00
Dmitry Stogov
3cffaf78a3 Better but incomplete fix for bug #36840 2006-03-27 07:35:05 +00:00
03b5fefd39 ChangeLog update 2006-03-27 06:31:51 +00:00
Dmitry Stogov
bdfa3b1d36 Fixed ZTS build 2006-03-27 06:02:42 +00:00
Andrei Zmievski
5dc7c284f6 MFB 2006-03-27 05:01:48 +00:00
Andrei Zmievski
c2bca6239d Fix a case where we could have an encoding conversion exception thrown
while building exception trace args!
2006-03-27 03:47:50 +00:00
Andrei Zmievski
90d03ff1e2 Use (unsigned char) to make sure that only the control chars are
replaced with '?';
2006-03-27 03:41:39 +00:00
Andrei Zmievski
b36d2dfef6 Rewrite unicode_encode() and unicode_decode() functions. Apply the new
conversion error semantics.
2006-03-27 03:19:30 +00:00
Andrei Zmievski
19e6c92ad0 Skip BOM for UTF-16/32 converters when setting subst char. 2006-03-27 03:17:49 +00:00
Yasuo Ohgaki
0821437bdb remove pg_execute() E_WARNING error when query plan is not defined 2006-03-27 02:59:41 +00:00
Andrei Zmievski
29552a6472 Some functions may want to accept only Unicode or binary strings,
without having auto-conversion from the other string type. Add 'U' and
'S' specifiers for this. Also, remove traces of 'native' strings.
2006-03-27 02:52:06 +00:00
Andrei Zmievski
d6ff037f03 *** empty log message *** 2006-03-26 21:46:01 +00:00
Andrei Zmievski
db50082fe9 Add unicode_get_error_mode() and unicode_get_subst_char(). 2006-03-26 21:22:59 +00:00
Ilia Alshanetsky
3bf02bde43 MFB51: Fixed bug #36857 (Added support for partial content fetching to the
HTTP streams wrapper).
2006-03-26 17:12:26 +00:00
Derick Rethans
ad6a972de3 - Implemented basic collation support. For some reason "new Collator" gives segfaults when the object's collation resource is used.
- The following example shows what is implemented:

<?php
$orig = $strings = array(
    'côte',
    'cote',
    'côté',
    'coté',
    'fluße',
    'flüße',
);

echo "German phonebook:\n";
$c = collator_create( "de@collation=phonebook" );
foreach($c->sort($strings) as $string) {
    echo $string, "\n";
}
echo $c->getAttribute(Collator::FRENCH_COLLATION) == Collator::ON
    ? "With" : "Without", " french accent sorting order\n";

echo "\nFrench with options:\n";
$c = collator_create( "fr" );
$c->setAttribute(Collator::CASE_FIRST, Collator::UPPER_FIRST);
$c->setAttribute(Collator::CASE_LEVEL, Collator::ON);
$c->setStrength(Collator::SECONDARY);
foreach($c->sort($strings) as $string) {
    echo $string, "\n";
}
echo $c->getAttribute(Collator::FRENCH_COLLATION) == Collator::ON
    ? "With" : "Without", " french accent sorting order\n";
?>
2006-03-26 11:06:24 +00:00
150c896dae ChangeLog update 2006-03-26 06:31:42 +00:00
Andrei Zmievski
1709428494 Implement to-Unicode conversion error behavior. Note the adjusted APIs. 2006-03-26 06:19:24 +00:00
Sara Golemon
a64789a452 Expand stream_context_create() to allow specifying params
as well as options.  Ignore the internal name change of the first arg.
The first arg is still for options, the second arg is for actual params.
2006-03-26 04:40:11 +00:00
Andrei Zmievski
c254b21cca Add protos. 2006-03-26 03:33:10 +00:00
Seiji Masugata
c8de944309 fixed compiler warning. 2006-03-26 02:23:25 +00:00
Derick Rethans
3df5f17231 - Commit intermediate work so that I can hack on it on some plane. 2006-03-26 02:15:47 +00:00
Andrei Zmievski
930bde5897 * Remove unicode.from_error_mode and unicode.from_subst_char from INI
settings.
* Add unicode_set_error_mode() and unicode_set_subst_char() functions to
  manipulate these global settings.
2006-03-26 01:48:33 +00:00
Andrei Zmievski
d38d354fe8 *** empty log message *** 2006-03-26 00:56:23 +00:00
Antony Dovgal
ae7fbe8132 MF51: fix #36859 (DOMElement crashes when calling __construct when clone'ing) 2006-03-26 00:23:37 +00:00
Marcus Boerger
31513f9a8b - Make IteratorIterator base class of most SPL iterators 2006-03-26 00:22:45 +00:00
Marcus Boerger
1b6598618b - Fix docu 2006-03-26 00:22:03 +00:00
6702a305a2 ChangeLog update 2006-03-25 06:31:49 +00:00
Sara Golemon
e883cee0b1 Handle converter instantiation errors properly 2006-03-25 04:37:44 +00:00
Sara Golemon
f67ed7f3d4 Allow bidirectional encoding option via single context param 2006-03-24 22:27:13 +00:00
Sara Golemon
dfc827d108 Fix stream_get_line():
Checking type isn't nearly as important as checking nullness...
2006-03-24 21:37:42 +00:00
Sara Golemon
0b2b16e6c7 Update fgetss() for unicode 2006-03-24 21:32:39 +00:00
Andrei Zmievski
abf44bf9df This is probably not a test.. 2006-03-24 21:25:44 +00:00
Andrei Zmievski
fe0cccc003 Use intern->type for break iterator. 2006-03-24 21:06:36 +00:00
Sara Golemon
0260dfc9b1 Hook into new unicode conversion error handling API 2006-03-24 20:21:48 +00:00
Sara Golemon
880dd406f2 Add php_stream_get_record_unicde() API call.
Update stream_get_line() userspace function to handle unicode streams.
2006-03-24 19:22:24 +00:00
Andrei Zmievski
de2f7f1d66 Hey! Don't remove vim modeline completely! :) 2006-03-24 16:45:18 +00:00
Antony Dovgal
d4cdad2c2e add new tests 2006-03-24 12:08:19 +00:00
Antony Dovgal
792a2f6e65 whitespaces -> tabs
no other changes done
2006-03-24 10:25:50 +00:00
Antony Dovgal
9cee8be28e first check for NULL, then use the pointer 2006-03-24 10:21:56 +00:00
Dmitry Stogov
4767e90a47 Fixed bug #36840 (Memory leak if cast operator throws an exception that is caught) 2006-03-24 10:11:49 +00:00
Dmitry Stogov
0623f8471a Fixed SoapFault::getMessage() 2006-03-24 08:46:14 +00:00
Andrei Zmievski
51977c926c Support warning/exceptions flag for conversion errors. 2006-03-24 07:38:07 +00:00
6237738145 ChangeLog update 2006-03-24 06:31:51 +00:00
Andrei Zmievski
19897a5f44 UTODO note 2006-03-24 00:25:49 +00:00