Commit Graph

324 Commits

Author SHA1 Message Date
Moriyoshi Koizumi
ce3c028803 - Fixed bug #49354 (mb_strcut() cuts wrong length when offset is within a
multibyte character).

(This bug was introduced by the commit by r202895. Please double-check the
 specification of the function you are going to *fix*.)
2009-09-23 15:22:47 +00:00
Antony Dovgal
4a0523c105 fix compile warnings 2009-05-27 13:42:00 +00:00
Jani Taskinen
958886f038 - Fixed bug #48200 (compile failure with mbstring.c when --enable-zend-multibyte is used) 2009-05-10 21:04:26 +00:00
Jani Taskinen
a0f3cf5cc4 MFB: Thanks to the "maintainers" who are too lazy to commit FIRST to HEAD! 2009-04-20 17:06:03 +00:00
Moriyoshi Koizumi
0a3289baaa - Fix a bug that mbstring.internal_encoding doesn't take effect within
the request encoding converter.
2009-03-15 20:42:30 +00:00
Marcus Boerger
d4f5b3f0a9 - This is PHP 6 - if this ... ever gets out 2009-03-10 23:40:06 +00:00
Ilia Alshanetsky
2c5716c3c2 MFB: Improve parameter parsing code 2009-03-06 15:48:54 +00:00
Moriyoshi Koizumi
ac3183128c - Add an entry for http_output_conv_mimetypes to the output of mb_get_info(). 2009-02-17 16:28:33 +00:00
Moriyoshi Koizumi
5a870990fb - Refix bug #43840.
- Fix bug #43841.
- Remove redundant trailing dots from the error messages.
- Fix tests.
2009-02-15 07:04:07 +00:00
Moriyoshi Koizumi
e7373cddaf - Fix Bug #45923 (mb_st[r]ripos() offset not handled correctly)
# test still fails because of the difference of str[r]pos() behavior between 5.3 and 6.0.
2009-02-14 07:33:41 +00:00
Ilia Alshanetsky
a4797b9dcb MFB: Improved param parsing 2009-02-11 14:26:53 +00:00
Ilia Alshanetsky
181dcd1e6a MFB: Initialize optional var 2009-02-09 15:34:23 +00:00
Scott MacVicar
e09a820b19 MFB Fix bug #47245 - Double free in mb_detect_encoding() 2009-01-29 23:01:40 +00:00
Antony Dovgal
a26c94c7d9 MFB: fix memleaks correctly and make valgrind happy 2009-01-05 09:16:38 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Felipe Pena
8409ccc0ea - Bug #46763 (mb_stristr() wrong output when needle does not exist) (patch by Henrique M. Decaria) 2008-12-30 02:12:44 +00:00
Felipe Pena
549bba6713 - Fixed memory leaks 2008-12-27 13:31:07 +00:00
Felipe Pena
a5e8f6b3c2 - Fixed memory leak 2008-12-25 19:30:28 +00:00
Scott MacVicar
8497d67365 Fix bug #46738 - Segfault when mb_detect_encoding() fails. 2008-12-11 02:56:08 +00:00
Felipe Pena
43791516db - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro (again!) 2008-11-17 11:26:25 +00:00
Felipe Pena
e006a89e71 - Revert ZEND_BEGIN_ARG_INFO change 2008-11-02 21:10:13 +00:00
Felipe Pena
7eb2715464 - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-10-24 14:34:17 +00:00
Moriyoshi Koizumi
09e9f4cda1 - Reenable ini_set("mbstring.internal_encoding", VALUE) to work on runtime.
(noticed by Antony. Thanks!)
2008-09-13 19:50:26 +00:00
Moriyoshi Koizumi
23f6c6cf9b - mb_encoding_aliases() is more consistent with mb_preferred_mime_name()
despite the unconformance with the naming convention.
2008-09-13 00:22:10 +00:00
Moriyoshi Koizumi
2f645879e6 - The mb_list_* issue has been resolved in the following way:
- Keep the same prototype as 5.2 for mb_list_encodings().
  - Add mb_list_encoding_aliases() with the mandatory parameter.
  - Remove mb_list_mime_names() as the list can be made from iteration
    on mb_list_encodings() with mb_preferred_mime_name().
2008-09-12 23:59:51 +00:00
Moriyoshi Koizumi
7bf6b36b19 * Use memcmp() for binary safety. 2008-09-12 23:34:45 +00:00
Ilia Alshanetsky
79d8631fea MFB: Fixed bug #46042 (memory leaks with reflection of
mb_convert_encoding())
2008-09-10 23:19:50 +00:00
Felipe Pena
41834e6090 - New parameter parsing API
- Fixed tests
2008-08-18 00:36:03 +00:00
Nuno Lopes
8da607e08f fix build when host machine doest has pcre installed 2008-08-11 15:40:41 +00:00
Moriyoshi Koizumi
e4f2ea4d3b - More fixes for bug #45691 2008-08-04 21:10:17 +00:00
Jani Taskinen
f679eeb6cb - No C++ comments in C files! 2008-08-03 11:56:45 +00:00
Moriyoshi Koizumi
b0f6875659 - Forgot to take account of the case when mbstring.language is processed
afterwards.
2008-08-03 00:04:06 +00:00
Moriyoshi Koizumi
51180a707c - Fixed bug #45691 (Some per-dir or runtime settings may leak into other requests). 2008-08-02 20:48:30 +00:00
Moriyoshi Koizumi
de0e9cea83 - Fix warnings 2008-07-25 14:04:39 +00:00
Moriyoshi Koizumi
86e8d7ebf1 - Fix wrong cast 2008-07-25 13:56:50 +00:00
Moriyoshi Koizumi
e8741cc4fc - fix a typo in mb_stripos() that caused segfault.
(noticed by bs@php.net, thanks).
2008-07-25 12:50:14 +00:00
Moriyoshi Koizumi
33be49a588 - Fixed warnings. 2008-07-24 13:46:35 +00:00
Moriyoshi Koizumi
5b494c0f16 - Add mbstring.http_output_conv_mimetypes that allows common non-text
types such as "application/xhtml+xml" to be converted by
  mb_output_handler().
2008-07-24 12:58:37 +00:00
Moriyoshi Koizumi
05c3ae2764 - Fix ZTS build 2008-07-17 20:03:50 +00:00
Moriyoshi Koizumi
8ea52ae46f - Removed dependencies from php_mbregex to oniguruma types 2008-07-17 16:08:08 +00:00
Moriyoshi Koizumi
a9c4d66340 - Added a new configure option --with-onig=[DIR] that allows the extension
to link to the external oniguruma library.
- Prevent libmbfl files from being installed when --with-libmbfl is specified.
- Fixed mb_ereg_replace() to work with unicode strings.
2008-07-16 02:29:14 +00:00
Felipe Pena
1de275f2c8 MFB: - Fixed bug #45486 (mb_send_mail(); header 'Content-Type: text/plain; charset=' parsing incorrect) 2008-07-11 13:54:47 +00:00
Felipe Pena
77c2eb1dcd - MFB: Removed unused variables 2008-07-07 13:55:42 +00:00
Felipe Pena
f2655e0e5d MFB:
- Added arginfo
- Removed unnecessary #include "zend_arg_defs.c"
2008-07-07 13:52:44 +00:00
Alexey Zakhlestin
df6701892b MFB: string length -> int 2008-07-07 10:00:30 +00:00
Alexey Zakhlestin
9951e4822e MFB: updated to the new parameter-parsing api 2008-07-07 09:57:12 +00:00
Alexey Zakhlestin
e7ee0d709d MFB: added arginfo (fixes #45388) 2008-07-07 09:47:02 +00:00
Rui Hirokawa
19047cfd2e fixed bug #27421 (by david at dfoerster dot de) mbstring.func_overload set in .htaccess becomes global 2008-06-13 14:47:48 +00:00
Rui Hirokawa
fe1484dc50 MFB 2008-02-16 08:49:07 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00