Matt Wilmas
8aa9727037
Restored double->long conversion behavior to that of PHP 5.2 (on most platforms) and prior:
...
* Out-of-range numbers overflow/preserve least significant bits (no LONG_MAX/MIN limit)
* See bug #42868 (presumably-rare platform with different results in 5.2)
* On 32-bit platforms with 64-bit long type, a zend_long64 cast has been added,
otherwise it's the same as 5.2
* Use this conversion method everywhere instead of some plain (long) casts
Added 'L' parameter parsing specifier to ensure a LONG_MAX/MIN limit:
* Essentially what 5.3's new conversion was doing in most cases
* Functions with "limit" or "length" type params could be updated to use this,
and prevent confusing overflow behavior with huge numbers (*also* in 5.2)
- See bug #47854 , for example; or even #42868 again
# Test updates coming
2009-06-04 18:18:47 +00:00
Felipe Pena
6d34e06a2f
- Dropped *_TEXT* macros in favor of unicode macros direct usage
2009-05-25 14:32:15 +00:00
Jani Taskinen
1895deb41c
ws
2009-05-10 22:37:30 +00:00
Jani Taskinen
5ff419882b
MFB: missing part of the GC stuff
2009-05-10 21:55:07 +00:00
Felipe Pena
8ecf8ede1f
- Removed:
...
- UG(unicode) checks
- pcre_cache_entry.unicode_mode
- Changed:
- ZEND_STR_TYPE -> IS_UNICODE
- convert_to_text -> convert_to_unicode
- convert_to_text_ex -> convert_to_unicode_ex
(Felipe, Steph)
2009-03-26 20:02:53 +00:00
Matt Wilmas
d4207fc58d
Fixed bug #45877 (Array key '2147483647' left as string)
2009-03-18 01:06:30 +00:00
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
Felipe Pena
a5f867f3d5
- Constness (Added const qualifier to several function parameters)
2008-08-12 17:15:59 +00:00
Stanislav Malyshev
fb9945422e
fix memnstr bug by Laurent Gaffie
2008-08-05 21:23:20 +00:00
Moriyoshi Koizumi
eaeb1f7ee3
* Constify read-only arguments.
2008-07-24 20:38:43 +00:00
Scott MacVicar
e6848d51c2
Optimisation for zend_memnstr when the needle is only a single character. (Patch by Michal Dziemianko - GSoC08)
2008-07-21 18:43:46 +00:00
Antony Dovgal
6089f98338
fix typo
2008-03-19 12:44:05 +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
b377ab8a18
Reverted memrchr() patch, because it is broken on linux 64-bit
2008-02-14 10:25:10 +00:00
Dmitry Stogov
0df9f4852f
Use memrchr() instead of zend_memrchr() if available. (Nuno)
2008-02-13 16:22:12 +00:00
Sebastian Bergmann
9b620d50b4
Bump copyright year, 2 of 2.
2007-12-31 07:12:20 +00:00
Jani Taskinen
5d0176a32b
- Fix compile warnings
2007-07-21 00:34:41 +00:00
Antony Dovgal
eab558a79e
fix #41517 (different behaviour of floatval() in Unicode mode)
2007-05-28 20:26:52 +00:00
Antony Dovgal
66be352817
fix #41118 (PHP does not handle overflow of octal integers)
...
MFB a small part of optimization patch applied only to 5_2
2007-04-19 11:24:48 +00:00
Marcus Boerger
4aa4a425b6
- Add a helper
2007-04-06 20:41:23 +00:00
Antony Dovgal
6f3ddae770
nuke dead code
2007-02-26 21:53:48 +00:00
Marcus Boerger
06af520df7
- Add Z_OBJDEBUG[_P[P]] helper macros
2007-01-19 22:19:08 +00:00
Sebastian Bergmann
3717df72ae
Bump year.
2007-01-01 09:29:37 +00:00
Antony Dovgal
b1ce8b0345
add zend_u_strtoul() and fix build
2006-12-27 15:23:45 +00:00
Antony Dovgal
fa2889fbb1
return NULL right away if invalid length was passed
2006-12-20 19:08:23 +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
Andrei Zmievski
82ace06252
convert_to_string_with_converter_ex()
2006-09-08 17:19:42 +00:00
Antony Dovgal
7010fd0005
there is no realiable way to detect memrchr() presence because of a mess in glibc
...
so let's use our own implementation
2006-08-08 10:53:06 +00:00
Antony Dovgal
a3c3b91b33
add zend_memrchr()
2006-08-08 09:40:50 +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
2e5d0a3a9d
WS
2006-02-21 08:00:39 +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
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
e072c3e590
- Add Z_OBJVAL*() macros
2005-12-20 21:33:14 +00:00
Antony Dovgal
510f40c3bc
make GCC happy and suppress the warning
2005-11-17 19:20:14 +00:00
Ilia Alshanetsky
b05d189cc0
MFB51: Allow zend_parse_parameters to handle non-well formed integers, but
...
raise E_NOTICE in the process.
2005-11-17 00:20:31 +00:00
Andrei Zmievski
1454bdfea4
*** empty log message ***
2005-10-02 03:10:33 +00:00
Andrei Zmievski
ec65bc1039
Implement Unicode support for strncasecmp().
2005-08-23 22:05:22 +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
Andrei Zmievski
fe71ae29d9
- Implement zend_codepoint_to_uchar().
...
- Rename and fix zend_get_unified_string_type() so that it does not
allow mixing of binary and Unicode types.
2005-08-18 22:33:23 +00:00
Marcus Boerger
26d72ec348
- Fix TSRM
2005-08-17 20:02:45 +00:00
Andrei Zmievski
b80cb7bd2f
Unicode support
2005-08-11 23:35:03 +00:00
foobar
916815b779
Bump up the year
2005-08-03 13:30:58 +00:00
Ilia Alshanetsky
9839614829
Fixed bug #30726 (-.1 like numbers are not being handled correctly).
2005-01-18 00:29:43 +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