Andrei Zmievski
966d8022b9
Fix off-by-one error.
2006-09-29 20:59:26 +00:00
Andrei Zmievski
1efe216585
Use internal converter name to speed up instantiation.
2006-09-19 20:44:37 +00:00
Sara Golemon
3f56da6eba
Add INI controlled default stream encoding (unicode.stream_encoding).
...
Add convenience function stream_defualt_encoding() for setting it.
2006-09-19 20:36:48 +00:00
Antony Dovgal
398a45429e
fix #38779 (engine crashes when require()'ing file with syntax error through userspace stream wrapper)
2006-09-11 14:28:19 +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
Marcus Boerger
617a18fc40
- Fix for #34505 and repated (improved version of what is in 5.2, 5.1)
2006-07-24 17:51:41 +00:00
Antony Dovgal
93094e525b
MFB: fetch tsrm_ls, don't use it uninitialized
2006-07-19 06:33:07 +00:00
Dmitry Stogov
6687f0377b
New memory manager
2006-07-18 09:08:06 +00:00
Antony Dovgal
90d62b46a0
initialize EG(exit_status)
2006-07-12 21:03:07 +00:00
Andrei Zmievski
ed77c07a35
Commit Sara's patch for supporting filesystem enccoding in
...
include/require.
2006-07-12 17:04:13 +00:00
Andrei Zmievski
619350f27c
Rename unicode_semantics to unicode.semantics.
2006-06-28 14:13:13 +00:00
Andrei Zmievski
37972451f8
Implement unicode_set_error_handler() / unicode_restore_error_handler().
...
The error handler doesn't do anything yet. (vaporware)
2006-06-20 23:00:02 +00:00
Stefan Esser
08e355e39e
Added hook for compile_string()
2006-06-13 12:56:20 +00:00
Marcus Boerger
9b29f1a3f4
- Fix memleaks (by nuno)
2006-06-12 22:48:46 +00:00
Marcus Boerger
3350fd0fd1
- Revert - Needs further discussing
2006-06-03 11:41:29 +00:00
Marcus Boerger
c870888d06
- Printable is supposed to return nativ/unicode depending on ini setting
2006-06-03 11:01:40 +00:00
Dmitry Stogov
916a317385
SAPI globals are destroied at this point and reporting errors about memory leaks
...
can cause crash.
2006-06-02 13:31:38 +00:00
Dmitry Stogov
ab9e070bbf
Optimized zend_try/zend_catch macroses (eliminated memcpy())
2006-05-19 06:11:02 +00:00
Ilia Alshanetsky
2639d7e6d8
Fixed bug #35512 (Lack of read permission on main script results in
...
E_WARNING rather then E_ERROR).
2006-05-17 13:28:20 +00:00
Andrei Zmievski
7009fb94fe
Oops.
2006-05-04 21:23:53 +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
Dmitry Stogov
39a5677cf3
Fixed cleanup dependent on uninitialized value
2006-04-19 10:29:46 +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
eea22a0ffa
MF51: fix compilation on AIX
2006-03-30 21:39:15 +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
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
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
53e1f2adfb
Optimization of module unloading (temporary modules can be only in the end)
2006-03-17 08:34:34 +00:00
Dmitry Stogov
9d7ca01c8b
Dropped allow_call_time_pass_reference, the error is maden E_STRICT.
2006-03-16 11:32:00 +00:00
Dmitry Stogov
7c0e534157
Dropped zend.ze1_compatibility_mode
2006-03-16 10:33:23 +00:00
Marcus Boerger
cd35eae1aa
- Use object handler get in the same way as the rest of the engine does
2006-03-02 00:40:19 +00:00
Marcus Boerger
9158218d3a
- Must use return as in 5.1 after recursion
2006-03-01 16:18:35 +00:00
Marcus Boerger
bf086dff71
- Fix string conversion issues
2006-03-01 16:15:40 +00:00
Dmitry Stogov
e3b7f3fd0d
Unicode support: MS Visual C compatibility
2006-02-26 11:57:14 +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
b424a32610
Preparation for portable string API (use macroses to access zval).
2006-02-20 19:03:43 +00:00
Dmitry Stogov
09ca61c125
Made server wide switch for unicode on/off (according to PDM).
2006-02-13 10:23:59 +00:00
Marcus Boerger
5a4b6845dc
- Fix ini unicode_semantics (patch by Brion Vibber)
2006-02-13 09:23:13 +00:00
Andrei Zmievski
d8db0d6a15
unicode_semantics cannot be set on per-request basis
2006-02-08 18:52:13 +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
5de7cc3194
- Update copyright notices to 2006
2006-01-04 23:54:12 +00:00
Dmitry Stogov
feaa2501d0
Fixed bug #34729 (Crash in ZTS mode under Apache)
2005-12-01 11:49:51 +00:00
Dmitry Stogov
c58d4c590a
Fixed bug #35373 (HP-UX "alias not allowed in this configuration")
2005-11-30 10:25:51 +00:00
Marcus Boerger
a40a48fbd4
- Move Reflection into its own extension
2005-11-17 22:59:39 +00:00
Dmitry Stogov
32fe5f2c3b
Fixed bug #35009 (ZTS: Persistent resource destruct crashes when extension is compiled as shared)
2005-11-07 12:24:20 +00:00
Dmitry Stogov
8ac7004ea7
Unicode support
2005-10-12 10:12:15 +00:00
Marcus Boerger
7c083fcc07
- Have __toString() be called if available in all places an object is used
...
as a string.
#
# Note that "Object #<id>" is no longer afallback for debugging purpose use
# var_dump, which was made for debugging. If you used this to grab the id
# of an object you can never rely on this. For object storage look at SPL's
# ObjectStorage class.
#
# Note the signature change in the cast handler:
#
# int (*cast_t)(zval *readobj, zval *writeobj, int type, int should_free TSRMLS_DC);
# int (*cast_t)(zval *readobj, zval *retval, int type TSRMLS_DC);
2005-10-05 19:02:27 +00:00
Dmitry Stogov
f94344d7fd
Changed __toString() behavior to call it in all necessary places
2005-09-27 07:59:18 +00:00