Commit Graph

697 Commits

Author SHA1 Message Date
Matt Wilmas
5557b49982 explode() stuff:
- Fixed bug #47560 (explode()'s limit parameter odd behaviour) by reverting change for bug #47546
- Changed int to long where needed (should fix memory errors from overflow seen in bug #47854)
- Simplified logic a bit with limit and its default value
- php_explode_negative_limit(): removed safe_emalloc (not needed; plain erealloc is used later)
 - Moved declarations/allocation to optimize if the delimiter isn't found
 - Changed ALLOC_STEP size for less realloc's (and maybe better memory block alignment?)
2009-04-01 17:04:17 +00:00
Felipe Pena
b474e18f6c - Removed unused variables 2009-03-26 22:16:48 +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
Marcus Boerger
d4f5b3f0a9 - This is PHP 6 - if this ... ever gets out 2009-03-10 23:40:06 +00:00
Kalle Sommer Nielsen
3980b634fd Fixed bug #47546 (Default value for limit parameter in explode is 0, not -1) 2009-03-03 11:46:20 +00:00
Moriyoshi Koizumi
76072c674a - These should be E_WARNING for consistency with strpos() 2009-02-14 06:59:36 +00:00
Felipe Pena
ca0451c6f9 - Fixed bug #47102 (strripos issues unexpected warning with UNICODE haystack) (Noticed by Andy Wharmby) 2009-01-17 20:36:22 +00:00
Antony Dovgal
fe5b155288 change functions to be consistent between branches 2009-01-09 18:23:45 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Felipe Pena
7f74e97e3e - Unicodify (#46687) 2008-12-28 20:16:48 +00:00
Brian Shire
d6a1c7a674 fix explode behavior to respect negative limit when string is empty. 2008-12-27 05:13:30 +00:00
Arnaud Le Blanc
a8405af732 *** empty log message *** 2008-11-24 19:31:02 +00:00
Arnaud Le Blanc
77fed72461 Fixed bug #44075 (strtok misbehaving on unicode string) 2008-11-24 19:21:20 +00:00
Felipe Pena
3b06b39d54 - Fixed bug #46578 (strip_tags() does not honor end-of-comment when it encounters a single quote) 2008-11-21 19:14:47 +00:00
Arnaud Le Blanc
5ef7ecafc1 initialize optional vars 2008-10-21 22:06:49 +00:00
Arnaud Le Blanc
8225d21a2d Fix str len in stripos when $offset argument is given 2008-09-14 14:56:34 +00:00
Felipe Pena
7148ea9561 - New parameter parsing API
- Fixed tests
2008-08-16 21:16:25 +00:00
Antony Dovgal
586759c740 fix folding 2008-08-14 10:10:56 +00:00
Kalle Sommer Nielsen
f358d03691 Implemented feature request #34381 (nl2br() should have an option for XHTML/HTML compatible BR element) 2008-08-14 02:55:13 +00:00
Felipe Pena
663450701d - Fix memory leak 2008-07-29 16:51:21 +00:00
Scott MacVicar
69ee229b97 Fix integer oveflow in strrpos() 2008-07-22 01:05:55 +00:00
Scott MacVicar
fa85c408a9 Fix bug when < is used within attribute. 2008-07-15 14:44:46 +00:00
Felipe Pena
9277fc89c4 - MFB: Fixed bug #45485 (strip_tags and <?XML tag) 2008-07-11 12:43:06 +00:00
Matt Wilmas
9c37df900c Add array_init_size() and use it where array size is known at initialization 2008-05-27 10:28:25 +00:00
Scott MacVicar
a2ef7d48d0 Fix compile error if _GNU_SOURCE is defined 2008-05-09 12:58:50 +00:00
Dmitry Stogov
1d0f893b49 Lazy EG(active_symbol_table) initialization 2008-04-29 08:15:49 +00:00
Felipe Pena
a1e8d340c3 New macro for check void parameters 2008-02-28 14:16:25 +00:00
Felipe Pena
93722d35b0 Change some E_STRICTs to E_DEPRECATED 2008-02-23 18:29:16 +00:00
Marcus Boerger
6b58678c63 - Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus) 2008-02-23 17:03:53 +00:00
Etienne Kneuss
7c89093243 Fix inconcistencies between substr and substr_compare 2008-02-13 16:59:56 +00:00
Stanislav Malyshev
1a368f6f8b MFB __DIR__ constant support 2008-02-12 01:04:08 +00:00
David Coallier
b837f8c8b3 - Good proto message and description of function 2008-01-29 01:44:38 +00:00
Antony Dovgal
596403f226 fix #42861 (strtr() crashes in Unicode mode when $from argument is empty) 2008-01-21 14:37:19 +00:00
David Coallier
f6267ce134 - Wrong icu call, now using u_strToLower correctly 2008-01-19 19:47:41 +00:00
David Coallier
7a66695286 - Added lcfirst() function. The sister function of ucfirst()
- Test #1 for lcfirst()
2008-01-19 19:23:25 +00:00
Antony Dovgal
d5b7556d46 fix #43863 (str_word_count() breaks on cyrillic "ya" in locale cp1251)
patch by phprus at gmail dot com
2008-01-16 08:34:06 +00:00
David Coallier
bdd2668aef - Make sure ucfirst is using the new zend-parse-parameters api
- added php_ucfirst for non-unicode calls
2008-01-16 03:09:01 +00:00
Antony Dovgal
335728651f fix #43750 (stristr() modifies string)
patch by Felipe Pena
2008-01-10 14:31:11 +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
Antony Dovgal
8849402818 add workaround for glibc issue 2007-12-13 22:29:15 +00:00
Stanislav Malyshev
3c0869343f fix #42866, from Claudio Cherubino 2007-11-21 02:27:07 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Antony Dovgal
da50804c67 make strcspn() behave the same way in both Unicode and native mode (bug #42731) 2007-10-02 11:35:26 +00:00
Jani Taskinen
59580f57d4 MFB: fix bug #42142 and cs+ws 2007-10-01 13:41:57 +00:00
Jani Taskinen
d762757ee5 - Fixed bug #42789 (join() warning messages are not proper & different
return value on php5/6)
# For consistency between 5/6 also made the return value be NULL like it
# has been for ages when invalid stuff is passed.
2007-10-01 12:04:09 +00:00
Ilia Alshanetsky
b9071080f8 Added missing safety checks for 2nd parameter of setlocale() function 2007-09-07 02:28:26 +00:00
Jani Taskinen
8eaa978e97 - Fixed str_pad() when passed huge negative pad_length 2007-07-23 13:27:34 +00:00
Jani Taskinen
7bfd857fa1 MFB: Fixed "Floating point exception" inside wordwrap() 2007-07-23 11:47:44 +00:00
Jani Taskinen
41c6375840 - Moved the old regex functions to it's own extension: ereg 2007-07-15 19:50:07 +00:00