Dmitry Stogov
09ca61c125
Made server wide switch for unicode on/off (according to PDM).
2006-02-13 10:23:59 +00:00
Andrei Zmievski
d4307e4494
We already have default collator available.
2006-02-09 23:23:02 +00:00
Andrei Zmievski
a6e8746bbe
Needs to use .ustr. portion of the union for IS_UNICODE.
2006-02-05 20:54:11 +00:00
Marcus Boerger
44baf1f3ec
- Initialize variable
2006-02-05 16:25:46 +00:00
Marcus Boerger
6bfa4b19e1
- Fix comparision where one argument is an object
2006-02-05 13:12:20 +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
Marcus Boerger
e9086f967a
- MFB Fix zend*_str_tolower_copy()
2005-12-13 21:09:18 +00:00
Dmitry Stogov
e9f91abfef
Fixed memory leak
2005-10-07 10:06:45 +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
0a54602089
Fixed bug #34199 (if($obj)/if(!$obj) inconsistency)
2005-09-12 11:48:28 +00:00
Derick Rethans
161777af26
- Reimplement SORT_LOCALE_STRING with ICU locales.
2005-09-12 09:53:23 +00:00
Andrei Zmievski
ec65bc1039
Implement Unicode support for strncasecmp().
2005-08-23 22:05:22 +00:00
Andrei Zmievski
291c282cce
Damn.
2005-08-23 21:08:35 +00:00
Andrei Zmievski
e3ec5efc5e
- Rewrite zend_u_binary_strncmp() to work on codepoint level. Calling
...
u_strCompare() doesn't help because it assumes that the input lengths
specify the number of UChar's.
- Change zend_u_binary_strcmp() to use u_strCompare() (and it's fine to
use it here, since we work with whole strings here).
2005-08-23 20:11:59 +00:00
Andrei Zmievski
df3a14953e
This was so embarassingly silly.
2005-08-23 16:37:24 +00:00
Andrei Zmievski
26d10c5c76
Unicode support for strcasecmp().
2005-08-22 22:17:19 +00:00
Andrei Zmievski
87f0bee331
Unicode support for strcmp()/strncmp().
2005-08-19 23:15:36 +00:00
Marcus Boerger
26d72ec348
- Fix TSRM
2005-08-17 20:02:45 +00:00
Andrei Zmievski
3d8b32a0e3
- Introduce 'y' specifier for functions expecting binary data.
...
- convert_to_binary() now uses convert_to_string() in non-Unicode mode.
2005-08-17 17:30:02 +00:00
Dmitry Stogov
e47587e189
Fixed several unicode related bugs
2005-08-15 14:39:18 +00:00
Dmitry Stogov
21c1109e0c
Unicode support
2005-08-12 11:29:33 +00:00
Andrei Zmievski
b80cb7bd2f
Unicode support
2005-08-11 23:35:03 +00:00
Dmitry Stogov
c10d6d3c89
Fixed bug #33999 (object remains object when cast to int)
2005-08-05 09:02:14 +00:00
foobar
916815b779
Bump up the year
2005-08-03 13:30:58 +00:00
Dmitry Stogov
747074f988
Reverted wrong fix for bug #30572 .
...
Seems the bug was already fixed in other way.
But reverted patch produced a lot of valgrind errors, because IS_TMP_VAR operands don't initialize refcount.
2005-05-31 11:16:51 +00:00
Marcus Boerger
d100328de8
- Fix memory corruption found by rob
2005-04-08 14:33:00 +00:00
Derick Rethans
d91a531d2e
- Added "G" modifier to ini setting number format.
2004-12-13 09:09:06 +00:00
Derick Rethans
ebca90f075
- MFH: Revert Joe's work around a bug in GCC patch as it breaks too many things.
2004-11-29 09:32:15 +00:00
Derick Rethans
e612284ea4
- Fixed bug #30630 : Added a BSD based strtod function that is
...
locale-independent.
2004-11-03 23:13:32 +00:00
Andi Gutmans
b86cdbbddb
- For Ilia:
...
- MFH: Fixed bug #30572 (crash when comparing SimpleXML attribute to a boolean).
- Hope this works well. I will MFH tomorrow if no one complains.
2004-10-29 00:55:11 +00:00
Andi Gutmans
a4dff681c8
- Revert Fixed bug #30228 (crash when comparing SimpleXML attribute to a boolean).
...
- Need to discuss where the real problem is.
2004-10-27 18:15:03 +00:00
Ilia Alshanetsky
bb928e70a7
Fixed bug #30228 (crash when comparing SimpleXML attribute to a boolean).
2004-10-26 22:38:34 +00:00
Andi Gutmans
abd42847b1
- If object handles are equal then save the comparison of properties in
...
- the == operator.
2004-10-20 17:57:28 +00:00
Andi Gutmans
1a4bfd6561
- Small improvement to DVAL_TO_ZVAL macro
2004-09-30 18:36:03 +00:00
Derick Rethans
4bae5cb4d0
- MFB: Added the sorting flag SORT_LOCALE_STRING to the sort() functions which
...
makes them sort based on the current locale. (Derick)
2004-09-11 14:22:35 +00:00
Andi Gutmans
3e201ac281
- Resolve undefined behavior (joe at redhat)
2004-09-11 00:23:20 +00:00
Andi Gutmans
56f8195fe5
- Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
...
used to return "" and not bool(false). It's not worth keeping it because
STR_FREE() and zval_dtor() always have to check for it and it slows down
the general case. In addition, it seems that empty_string has been abused
quite a lot, and was used not only for setting zval's but generally in
PHP code instead of "", which wasn't the intention. Last but not least,
nuking empty_string should improve stability as I doubt every place
correctly checked if they are not mistakenly erealloc()'ing it or
calling efree() on it.
NOTE: Some code is probably broken. Each extension maintainer should
check and see that my changes are OK. Also, I haven't had time to touch
PECL yet. Will try and do it tomorrow.
2004-07-19 07:19:50 +00:00
Zeev Suraski
428e722d88
- Fix comparison of objects
...
- Clarify convert_object_to_type()
2004-05-10 14:56:21 +00:00
Andi Gutmans
3317070941
- Fix comparison of two objects in non-compatibility mode.
2004-05-02 15:40:46 +00:00
Andi Gutmans
911922432f
- Nuke more old junk
2004-04-03 17:01:13 +00:00
Andi Gutmans
1c7cfe739d
- Nuke code which hasn't been in use for ages.
2004-04-03 11:09:39 +00:00
Stanislav Malyshev
9091bf8e5f
centralize object-to-scalar conversion, make it work with get handler
2004-03-28 12:08:26 +00:00
Stanislav Malyshev
c331afa267
Use macros for object parts access
2004-03-28 10:44:48 +00:00
Derick Rethans
9ff10d086a
- Revert bogus commit
2004-03-24 14:28:41 +00:00
Derick Rethans
2face60bef
- Fixed NEWS
...
#- Can we *please* keep this in order?
2004-03-24 13:31:20 +00:00
Andi Gutmans
29ee03aa55
- Apply Ard's patch to support multiplication & overflow on both 32bit
...
and 64bit machines
2004-03-17 09:25:52 +00:00
Andi Gutmans
dae7093d93
- Restore E_NOTICE for longs and doubles.
2004-03-15 16:55:20 +00:00
Andi Gutmans
14d711b9bb
- Nuke E_NOTICE. This caused a notice when doing if ($obj == NULL)
2004-03-15 14:15:47 +00:00
Andi Gutmans
f11c819ddb
- Improve compatibility mode and compare objects according to property
...
- comparison (sucky but this is how PHP 4 behaved).
2004-03-14 15:56:03 +00:00