1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00
Commit Graph

29 Commits

Author SHA1 Message Date
Andrei Zmievski 966d8022b9 Fix off-by-one error. 2006-09-29 20:59:26 +00:00
Antony Dovgal f5715ee86f implement zend_unicode_to_string() and zend_string_to_unicode()
part #1 (of 2)
2006-08-08 16:58:06 +00:00
Andrei Zmievski 974f55ace3 Fix off-by-one error in zend_case_fold_string(). 2006-08-01 21:49:57 +00:00
Andrei Zmievski 0667864631 Callable checks and class fetching and lookup should support identifer
normalization now. (Marcus, Andrei)
2006-07-18 17:52:45 +00:00
Andrei Zmievski 2c8398fe81 Implement convert_to_unicode_with_converter() and adjust zval_* APIs. 2006-07-12 17:35:06 +00:00
Antony Dovgal b062531746 nuke unused variable 2006-07-10 13:53:47 +00:00
Andrei Zmievski e875205714 Implement user conversion error handler support. Works as normal error
handler, in that it can return false to make the default one take over.
Handler signature is:
  user_handler($direction, $encoding, $char_byte, $offset, $message)

Also removed support for using exceptions in default error handler.
2006-06-21 20:17:21 +00:00
Andrei Zmievski 534cad7064 Add a global ASCII connverter, macros to return single codepoints
(UCHAR32), and zend_unicode_to_ascii() function.
2006-05-04 21:22:17 +00:00
Andrei Zmievski 16c55fb25a Move to refcounted implementation of collators. 2006-04-20 21:56:43 +00:00
Andrei Zmievski 978c58ad78 Add UTODO. 2006-03-27 19:15:58 +00:00
Dmitry Stogov 3cffaf78a3 Better but incomplete fix for bug #36840 2006-03-27 07:35:05 +00:00
Dmitry Stogov bdfa3b1d36 Fixed ZTS build 2006-03-27 06:02:42 +00:00
Andrei Zmievski 19e6c92ad0 Skip BOM for UTF-16/32 converters when setting subst char. 2006-03-27 03:17:49 +00:00
Andrei Zmievski 1709428494 Implement to-Unicode conversion error behavior. Note the adjusted APIs. 2006-03-26 06:19:24 +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 de2f7f1d66 Hey! Don't remove vim modeline completely! :) 2006-03-24 16:45:18 +00:00
Antony Dovgal 792a2f6e65 whitespaces -> tabs
no other changes done
2006-03-24 10:25:50 +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
Andrei Zmievski 51977c926c Support warning/exceptions flag for conversion errors. 2006-03-24 07:38:07 +00:00
Andrei Zmievski 1c09ef8e37 Update conversion error behavior and add some new modes.
# The various escape modes are what ICU calls them. We may want to come
# up with different names for UNICODE/ICU/JAVA ones..
2006-03-23 22:00:42 +00:00
Dmitry Stogov c366cc6d1a Nuke int32_t (everywhere except streams layer) and signed/unsigned warnings 2006-03-02 13:12:45 +00:00
Dmitry Stogov 0f1209ab3d Portable unicode string API:
- use the same type (int) for zval.value.usr.len and zval.value.str.len
  - use union "zstr" as char*/UChar* mixture instead of void*
  - Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
  - nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Dmitry Stogov 2e5d0a3a9d WS 2006-02-21 08:00:39 +00:00
Antony Dovgal b8dda54715 fix build 2006-01-17 22:13:39 +00:00
Dmitry Stogov 227295a4f1 Unicode stuff is changed according to decision maden on PDM.
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +00:00
Andi Gutmans a93ddab01e - More -> 2006 changes 2006-01-05 02:35:02 +00:00
foobar d99d22dc11 oops 2006-01-01 13:25:34 +00:00
foobar 3631df802d - fix typo 2006-01-01 13:13:11 +00:00
Andrei Zmievski b80cb7bd2f Unicode support 2005-08-11 23:35:03 +00:00