Felipe Pena
4ed88343cc
- Fixed bug #46701 (Creating associative array with long values in the key fails on 32bit linux)
...
Patch by Shire
2009-01-05 19:47:13 +00:00
Sebastian Bergmann
7f4dc8702a
Bump copyright year, 3 of 3.
2008-12-31 11:12:40 +00:00
Christian Seiler
2230e803d2
- Changed floating point behaviour to consistently use double precision on
...
all platforms and with all compilers.
2008-12-02 16:03:30 +00:00
Felipe Pena
2985b4f9e3
- Removed some TSRMLS_FETCH()s
2008-08-15 19:45:25 +00:00
Felipe Pena
a5f867f3d5
- Constness (Added const qualifier to several function parameters)
2008-08-12 17:15:59 +00:00
Antony Dovgal
951fe380b3
fix bug #45712 ($something == NaN returns true with 5.3, false with 5.2.*)
2008-08-07 08:36:15 +00:00
Moriyoshi Koizumi
eaeb1f7ee3
* Constify read-only arguments.
2008-07-24 20:38:43 +00:00
Matt Wilmas
d48f694d0a
Fixed overflow crash (at least on Windows) in div_function with LONG_MIN / -1
...
To reproduce: (-PHP_INT_MAX - 1) / -1, so op1 is a long
Same cause as Bug #27354 for mod_function
2008-05-29 11:44:09 +00:00
Antony Dovgal
500e17c5c1
add zend_atol() and use it instead of zend_atoi() where applicable
2008-03-19 12:40:20 +00:00
Dmitry Stogov
6847c18150
Added garbage collector
2008-01-22 09:29:29 +00:00
Dmitry Stogov
dcece889eb
Yet another comparison optimisation for usual cases
2008-01-21 19:10:51 +00:00
Sebastian Bergmann
9b620d50b4
Bump copyright year, 2 of 2.
2007-12-31 07:12:20 +00:00
Dmitry Stogov
0c75772f68
Additional fix for bug #42868
2007-12-24 18:10:20 +00:00
Dmitry Stogov
9c024a30a5
Fixed bug #42868 (Floats cast to integer droduce unpredicatable results). (Zoe Slattery)
2007-12-17 11:06:43 +00:00
Dmitry Stogov
6bd7c61eb8
math and comparison optimization
2007-11-20 13:26:08 +00:00
Dmitry Stogov
18215d9347
optimization
2007-10-29 14:37:11 +00:00
Yiduo (David) Wang
95da0dc570
Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:15:07 +00:00
Jani Taskinen
5d0176a32b
- Fix compile warnings
2007-07-21 00:34:41 +00:00
Antony Dovgal
0903c79f2a
("0" == NULL) must be false even in Unicode mode
2007-07-13 17:07:02 +00:00
Antony Dovgal
dd8af0654a
fix folding, CS and WS
2007-07-11 11:19:58 +00:00
Antony Dovgal
f28ea3269b
fix ZTS build
2007-06-27 12:48:44 +00:00
Dmitry Stogov
06320d3f50
Fixed bitwise operations with numeric unicode strings
2007-06-27 11:04:50 +00:00
Dmitry Stogov
eae255addf
Implemented ++ and -- operations for unicode strings
2007-06-27 10:27:04 +00:00
Antony Dovgal
a0ab81a4da
minor optimization - make sure the objects are not the same instance before we start comparing their properties
2007-06-06 11:57:24 +00:00
Antony Dovgal
0c9a9f61fb
use zend_make_string_zval()
...
thanks Matt!
2007-05-21 07:34:41 +00:00
Antony Dovgal
348d9b3695
merge one more missing patch from 5_2
...
thank you for not doing MFB
2007-05-04 11:12:30 +00:00
Antony Dovgal
bcfd4067b6
make concatenating two binary strings a special case
2007-04-30 15:59:12 +00:00
Antony Dovgal
7b0e0787f8
convert non-strings to unicode in unicode mode
2007-04-28 12:04:43 +00:00
Antony Dovgal
35ba6cd0df
fix typo (Z_USTRVAL_P -> Z_USTRLEN_P) and CS
2007-04-27 21:27:14 +00:00
Dmitry Stogov
ff7d2b0327
WIN64 support
2007-04-23 10:21:24 +00:00
Antony Dovgal
a63ee1b323
fix & unify double-to-string conversion utils
2007-04-19 09:30:10 +00:00
Antony Dovgal
6f3ddae770
nuke dead code
2007-02-26 21:53:48 +00:00
Antony Dovgal
8acf0fda22
MFB: use zend_spprintf()
2007-02-26 11:43:28 +00:00
Sebastian Bergmann
3717df72ae
Bump year.
2007-01-01 09:29:37 +00:00
Antony Dovgal
5204c96323
restore old behaviour when casting objects to strings and NULL
2006-12-27 17:22:22 +00:00
Antony Dovgal
da9f5e95bc
fix convert_to_unicode() and convert_to_string() which didn't set the type of the op properly
2006-12-27 16:50:05 +00:00
Ilia Alshanetsky
113686caa4
MFB: Fixed possible memory leak
2006-12-21 01:58:46 +00:00
Andrei Zmievski
8a4e2184e0
Make convert_to_*() APIs return SUCCESS/FAILURE.
2006-12-16 00:21:41 +00:00
Stanislav Malyshev
40b496d63f
Merge from 5.2:
...
Improve tolower()-related functions on Windows and VC2005 by caching locale and using
tolower_l function.
2006-12-05 02:55:27 +00:00
Antony Dovgal
7c08c95070
fix leak appearing when converting object to NULL
...
add test
2006-11-15 17:28:56 +00:00
Andrei Zmievski
83e0dbb3d2
- Add an extra parameter to the cast_object handler that can be used by
...
various types as needed.
- Use that parameter to pass a specific converter for
IS_UNICODE/IS_STRING types.
2006-10-13 14:52:19 +00:00
Antony Dovgal
55de312ce2
throw a warning when doing modulus by 0 (fr #39027 )
2006-10-03 17:54:32 +00:00
Antony Dovgal
3408bafa32
use if() instead of ?: and avoid possible optimization problems
2006-09-27 15:40:09 +00:00
Dmitry Stogov
128548a5c0
Disabled autoconversion of hash keys (from string to unicode) for PHP arrays
2006-09-19 10:38:31 +00:00
Andrei Zmievski
f34e1baa9f
Make string comparison functions conver to unicode or printable strings
...
depending on unicode.semantics and do the right thing.
2006-08-02 20:31:40 +00:00
Andrei Zmievski
8a32effd2c
Rewrite IS_LONG, IS_DOUBLE, and IS_RESOURCE to IS_UNICODE conversion to
...
use custom functions instead of u_sprintf() which is terribly slow at
the moment (for numbers). Now long-to-unicode is only 8% slower than
long-to-binary and double-to-unicode is actually 6% faster.
2006-08-01 17:47:24 +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
Dmitry Stogov
6687f0377b
New memory manager
2006-07-18 09:08:06 +00:00
Antony Dovgal
6bcb0c9ed5
fix logic
2006-07-18 08:57:26 +00:00
Antony Dovgal
0d088b15b7
fix DVAL_TO_LVAL() macro, which doesn't seem to work correctly on AIX & GCC < 3.5
2006-07-18 08:16:18 +00:00