ef59df70a4
ChangeLog update
2006-04-14 05:31:53 +00:00
Dmitry Stogov
a2a69a3ba2
Fixed bug #36513 (comment will be outputed in last line)
2006-04-13 13:48:40 +00:00
Dmitry Stogov
0699fdfb4f
Fixed test
2006-04-13 06:05:16 +00:00
f3514eae3b
ChangeLog update
2006-04-13 05:31:51 +00:00
Dmitry Stogov
ec12098c3b
Fixed bug #37046 (foreach breaks static scope)
2006-04-12 11:38:09 +00:00
Dmitry Stogov
1681bd494c
Fixed bug #37002 (Have to quote literals in INI when concatenating with vars)
2006-04-12 09:52:06 +00:00
faa0b32fec
ChangeLog update
2006-04-11 05:31:53 +00:00
Marcus Boerger
509c9d44e2
- Iterators from overloaded objects are allowed to not have keys...
2006-04-10 23:15:26 +00:00
Marcus Boerger
b967992116
- Allowing to pass in ce as NULL has its charme, too
2006-04-10 22:49:09 +00:00
Marcus Boerger
36b3b8ef63
- Fix coverity issue 49: ce might be forwarded as NULL without an exception
...
being thrown in case the Zend API is being used wrong (in custom exts for
instance).
2006-04-10 22:37:55 +00:00
Dmitry Stogov
68dd370e96
Fixed possible crash in interactive mode
2006-04-10 12:27:17 +00:00
ca88b09b5e
ChangeLog update
2006-04-08 05:31:55 +00:00
Dmitry Stogov
ee4fb4c41d
- Fixed storing NULL pointers in HashTable
...
- Optimized zend_hash_reverse_apply()
2006-04-07 10:05:17 +00:00
14ba1088ad
ChangeLog update
2006-04-07 05:31:53 +00:00
Andrei Zmievski
f37190dc57
MFB
2006-04-06 21:16:28 +00:00
Sara Golemon
5f5faedf18
Overload 'duplicate' arg as applied to:
...
add_((next_)?index|assoc)_(ascii|rt)_stringl?(_ex)?
and
(ZVAL|RETVAL|RETURN)_(ASCII|RT|U)_STRINGL?
#define ZSTR_DUPLICATE (1<<0)
#define ZSTR_AUTOFREE (1<<1)
Duplicate keeps traditional value of '1', additional bit '2' tells
unicode mode conversion to automatically free the original string
in order to avoid leaks due to conversion on a value otherwise being
"given" to the engine.
/* Uses s as-is for non-unicode, or frees s after converting to unicode */
{
char *s = estrdup("Hello");
ZVAL_RT_STRING(pzv, s, ZSTR_AUTOFREE);
}
/* Duplicates for non-unicode, or converts (but doesn't free original) */
{
char *s = "Hello";
ZVAL_RT_STRING(pzv, s, ZSTR_DUPLICATE);
}
/* Uses as-is for non-unicode, or converts (but doesn't free original) */
{
char *s = "Hello";
zval zv;
ZVAL_RT_STRING(&zv, s, 0);
/* use zv for some temporary purpose */
/* It's now necessary to manually free this generated value */
if (UG(unicode)) {
zval_dtor(&zv);
}
}
2006-04-06 18:02:39 +00:00
282807267d
ChangeLog update
2006-04-06 05:31:50 +00:00
Antony Dovgal
3305bba32b
MF51: fix #36944 (strncmp & strncasecmp do not return false on negative string length)
2006-04-05 11:36:28 +00:00
c3c95c61fb
ChangeLog update
2006-04-01 06:31:49 +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
8eb12d6116
ChangeLog update
2006-03-31 06:31:50 +00:00
Antony Dovgal
eea22a0ffa
MF51: fix compilation on AIX
2006-03-30 21:39:15 +00:00
Dmitry Stogov
01cb2b07ed
Unicode support
2006-03-30 08:15:18 +00:00
66287d9fb6
ChangeLog update
2006-03-30 06:31:53 +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
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
25a73301a5
ChangeLog update
2006-03-28 06:31:49 +00:00
Andrei Zmievski
a65a781b16
Note
2006-03-28 06:30:47 +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
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
Dmitry Stogov
0e114d4295
Fixed test
2006-03-27 13:42:04 +00:00
Dmitry Stogov
ba72ff3fcc
Fixed bug during function/class declaration in unicode mode
2006-03-27 09:44:03 +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
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
19e6c92ad0
Skip BOM for UTF-16/32 converters when setting subst char.
2006-03-27 03:17:49 +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
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
6702a305a2
ChangeLog update
2006-03-25 06:31:49 +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