Commit Graph

358 Commits

Author SHA1 Message Date
Antony Dovgal
75b8cd741b last portion of z/Z fixes 2006-08-31 16:15:24 +00:00
Seiji Masugata
100742f7a2 added configure option --disable-mbregex-backtrack. 2006-08-25 16:26:50 +00:00
Seiji Masugata
560208b1c6 added returned value in mb_get_info( ). 2006-08-24 16:52:36 +00:00
Seiji Masugata
1d6182a907 added option parameter mb_strrpos( ). 2006-07-17 04:48:17 +00:00
Seiji Masugata
ee23aba678 changed GINIT definition. 2006-06-16 16:45:46 +00:00
Dmitry Stogov
1dbaae2795 Added automatic module globals management 2006-06-15 18:33:09 +00:00
Seiji Masugata
c314888c29 added mb_stristr( ), mb_strrichr( ). 2006-05-30 15:47:53 +00:00
Seiji Masugata
731584c076 added mb_strstr( ), mb_strrchr( ). 2006-05-30 15:45:35 +00:00
Seiji Masugata
42aadabfcb added mb_stripos( ), mb_strripos( ). 2006-05-30 15:43:09 +00:00
Seiji Masugata
7314771a35 added mb_list_encodings_alias_names( ), mb_list_mime_names( ). 2006-05-30 15:40:39 +00:00
Seiji Masugata
91dd8376bd added option parameter mb_list_encodings( ). 2006-05-30 15:38:22 +00:00
Seiji Masugata
9b05e15e8a fixed all mbstring setting information doesn't return in mb_get_info( ). 2006-05-11 14:42:12 +00:00
Seiji Masugata
bf4ae10c36 fixed compiler warning. 2006-03-26 02:19:50 +00:00
Rui Hirokawa
e8d320dd77 MFH 2006-03-21 07:56:28 +00:00
Rui Hirokawa
85019bf450 MFH. 2006-03-21 02:20:15 +00:00
Rui Hirokawa
fa3173bec3 *** empty log message *** 2006-03-21 02:10:55 +00:00
Rui Hirokawa
6912dab9eb @added possible encoding attack detection by mb_get_info('illegalchars'). 2006-03-21 01:58:27 +00:00
Rui Hirokawa
2e3ae2f5c2 MFH 2006-03-12 07:54:42 +00:00
Seiji Masugata
61f7dc1396 fixed different value was returned in mb_get_info. 2006-03-10 16:22:15 +00:00
Yasuo Ohgaki
e2218515d2 MFH add safe_mode num of parameter check 2006-03-02 00:37:22 +00:00
Rui Hirokawa
e8d38828cd MFH 2006-02-11 02:26:07 +00:00
Antony Dovgal
4a179933b6 initialize to_r
remove needless semicolon
2006-02-06 10:41:28 +00:00
foobar
5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
Rui Hirokawa
b0ccd89450 MFH:added Turkish language definition (related to bug #29955) 2005-12-30 00:49:24 +00:00
Rui Hirokawa
ef0c0cc62b MFH: fixed #35711, added mbstring.strict_detection to detect the encoding striktly. 2005-12-25 15:23:55 +00:00
Rui Hirokawa
cf90abfc24 MFH: fixed #28899 mb_substr() and substr() work differently when mbstring.func_overload is enabled. 2005-12-23 11:15:16 +00:00
Ilia Alshanetsky
cb3cca21b3 Fixed possible memory corruption inside mb_strcut(). 2005-12-15 03:36:53 +00:00
foobar
347032c753 sync with HEAD 2005-12-06 02:21:01 +00:00
foobar
253392f64f MFH: nuke php3 legacy 2005-12-06 01:26:44 +00:00
Rui Hirokawa
244c9a4ba0 5th argument of mb_encode_mimeheader() was not acceptable. 2005-11-25 21:55:25 +00:00
Rui Hirokawa
b9f0ff7aab MFH: fixed 5307 unexpected header can be injected to mb_send_mail(). 2005-11-23 15:17:29 +00:00
Rui Hirokawa
60949ca571 MFH: fixed #35253 length of the encoded string vilolates a RFC. 2005-11-19 08:25:32 +00:00
Ilia Alshanetsky
20c3266588 fixed compiler warnings 2005-09-21 13:23:00 +00:00
Ilia Alshanetsky
999a7acd71 MFH: Fixed bug #34565 (mb_send_mail does not fetch mail.force_extra_parameters) 2005-09-21 13:16:03 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Moriyoshi Koizumi
542901d705 - Add Armenian encoding / NLS (patch by Hayk Chamyan) 2005-03-22 22:22:11 +00:00
foobar
2d521a73c8 Revert bad fix 2005-03-17 08:15:23 +00:00
Rasmus Lerdorf
eb253ab571 Build fixes 2005-03-17 01:14:10 +00:00
Moriyoshi Koizumi
3093ceb3da - WS fix. 2005-02-21 15:14:32 +00:00
Moriyoshi Koizumi
0d7845384f - Fix bug #28568 (known_post_content_types is not thread safe).
# What is eventually necessiated is entire SAPI redesign, I think.
2005-02-21 15:14:02 +00:00
Moriyoshi Koizumi
8d73dc7bfc - Fix compiler warnings. 2005-02-21 07:57:08 +00:00
Ilia Alshanetsky
f257e10d48 Removed unused vars. 2005-02-10 14:11:06 +00:00
Antony Dovgal
f7326d6279 MFB: fix #31732 2005-01-28 02:00:39 +00:00
Moriyoshi Koizumi
b1ddbcbef9 - Fix a critical bug that request-local settings leak to another request. 2005-01-16 15:55:17 +00:00
Moriyoshi Koizumi
b33f7ab671 - Fix bug #28466 (mbstring_convert_variables() problem). 2004-06-26 05:39:00 +00:00
Ilia Alshanetsky
3787740cbc Fixed compiler warning. 2004-03-12 01:59:46 +00:00
Moriyoshi Koizumi
e84334a597 - Revert ini setting patch, as I notified in
http://news.php.net/article.php?group=php.internals&article=8451
2004-03-10 20:55:42 +00:00
Derick Rethans
b3b2192a1e - Added mb_list_encoding() to return an array with all mbstring supported
encodings.
2004-03-08 22:18:05 +00:00
Ilia Alshanetsky
02cdf5a87a Fixed bug #27421 (mbstring.func_overload should be system ini setting). 2004-03-06 19:29:52 +00:00
Moriyoshi Koizumi
11b0f469f0 - Upgrade bundled oniguruma regex library to 2.2.2 (Rui, Moriyoshi)
. Supports various encodings such as BIG5, GB2312 and ISO-8859-*
  . Fixes bug #26677 (mbstring compile errors with IRIX)
  . Many thanks to K.Kosako.
- Remove redundant files that are not relevant to the build.
2004-02-28 20:45:27 +00:00
foobar
f4983c0d3f - Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5 2004-01-17 13:00:38 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Moriyoshi Koizumi
b8ea4e6fd2 Fix bug #26639 (mb_convert_variables() clutters variables beyond the references) 2003-12-18 09:50:20 +00:00
Moriyoshi Koizumi
c77302fd04 Eliminate compiler warnings. 2003-12-10 17:38:45 +00:00
Moriyoshi Koizumi
f8e6e5dad3 Compiler warning fix (patch by Joe Orton) 2003-11-11 17:35:32 +00:00
Rui Hirokawa
c4b163de88 encoding detection shouldn't be performed if mbstring.http_input is set to auto or any valid encoding. 2003-10-25 10:29:07 +00:00
Rui Hirokawa
0ce637835a name/value in multipart/form-date will be converted into internal encoding when mbstring.encoding_translation is On. 2003-10-22 14:14:05 +00:00
Ilia Alshanetsky
980c3b2b4c Fixed compile warnings. 2003-10-22 02:38:47 +00:00
Moriyoshi Koizumi
a5422685fb Remove leftovers 2003-10-02 11:02:54 +00:00
Moriyoshi Koizumi
b82679412c Fix some incompatibilities with the pre-libmbfl behaviour regarding encoding detection. 2003-09-26 14:42:14 +00:00
Moriyoshi Koizumi
aa36f5bbdb Oops 2003-09-23 13:23:30 +00:00
Moriyoshi Koizumi
a89d00bb6c Remove unused variable 2003-09-23 13:21:01 +00:00
Rui Hirokawa
25bb0d16a9 fixed win32-build and update e-mail address in mbstring. 2003-09-23 02:43:04 +00:00
Zeev Suraski
8767205afa Fix Win32 linkage problems 2003-08-31 12:41:53 +00:00
Marcus Boerger
ba4178189b - Fix compile
- Building still not possible
2003-08-25 21:54:26 +00:00
Moriyoshi Koizumi
7fe12aaa17 Integrate allocator code into mbstring.c 2003-08-24 22:15:49 +00:00
Rui Hirokawa
6b92fbdef9 revert previous patch. 2003-08-23 10:04:43 +00:00
Rui Hirokawa
d2f002eed9 changed for ZTS mode. 2003-08-23 08:59:47 +00:00
Rui Hirokawa
5a80df26f3 @mbfilter is changed to bundled version of libmbfl to prevent LGPL licence problem. mbregex is changed to oniguruma. 2003-08-23 06:18:44 +00:00
Moriyoshi Koizumi
9bb299eb42 More accurate fix for bug #25140 2003-08-19 14:48:33 +00:00
Derick Rethans
9cd7b9d3c3 - Fix for bug #25140 (mb_convert_encoding returns FALSE when it tries to
convert empty string)
2003-08-19 08:29:57 +00:00
Masaki Fujimoto
ab9dcec292 - added script encoding support to Zend Engine 2.
this enables ZE2 to gracefully parse scripts written in UTF-8 (with BOM),
  UTF-16, UTF-32, Shift_JIS, ISO-2022-JP etc... (when configured with
  '--enable-zend-multibyte' and '--enable-mbstring')
2003-08-11 05:24:42 +00:00
Moriyoshi Koizumi
5e343ad110 Eliminate redundant assignment 2003-08-08 09:51:28 +00:00
Moriyoshi Koizumi
de9d52c4e9 Real fix for the problem addressed in the last commit message. 2003-08-08 09:40:58 +00:00
Moriyoshi Koizumi
a12601456a Fix wrong behaviour under ZTS that was inconsistent with non-ZTS.
# This patch really needs MFH
2003-08-07 19:45:26 +00:00
Moriyoshi Koizumi
c7a29109a8 MFB(1.142.2.22): add missing NLS entry for German. 2003-08-06 22:01:23 +00:00
Marcus Boerger
0626fff0c1 Fix warning 2003-08-03 18:52:09 +00:00
Marcus Boerger
21503e723e Reallow build 2003-08-03 18:46:34 +00:00
Zeev Suraski
538d58dd5f Use new infrastructure.
There are bound to be some messups, please report build/runtime bugs!
2003-08-03 17:44:39 +00:00
Rui Hirokawa
ac91b2dbba MFH 2003-07-14 23:09:46 +00:00
Rui Hirokawa
0b0962eb8e added strict encoding detection mode to fix #24309 2003-07-13 08:20:01 +00:00
Rui Hirokawa
2b44c63d50 Fixed corruption of multibyte character including 0x5c as second
byte in multipart/form-data.
2003-06-28 23:37:18 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Moriyoshi Koizumi
e500e957ba Applied the right fix for bug #23016 2003-05-12 13:26:16 +00:00
Moriyoshi Koizumi
e9111e0f9b Fixed an issue that zend-multibyte's behaviour doesn't reflect the change
to mbstring.internal_encoding ini setting.
2003-05-04 13:11:30 +00:00
Ilia Alshanetsky
894e2aaf68 emalloc -> safe_emalloc 2003-05-01 21:08:31 +00:00
Moriyoshi Koizumi
0e5df53be5 Moved copyright notice to the better place. 2003-04-25 17:39:46 +00:00
Moriyoshi Koizumi
4c2d694aa3 Added a bogus copyright notice. 2003-04-25 17:35:06 +00:00
Moriyoshi Koizumi
6eaa47854e Fixed crash in mb_convert_encoding() that occurs when a void array is
passed as the third parameter
2003-04-01 11:49:30 +00:00
Moriyoshi Koizumi
8bdef0dda5 Removed redundant aliases & CS fix. 2003-03-28 03:38:13 +00:00
foobar
3c9155e0cb Renamed OnUpdateInt -> OnUpdateLong to prevent further misunderstandings.
# Intentionally left out any 'alias' for it, this way 3rd party extension
# maintainers will really NOTICE the change.
2003-03-07 05:15:28 +00:00
Moriyoshi Koizumi
d2eb897739 Added missing phpinfo entry (Russian support) 2003-03-05 06:16:22 +00:00
Moriyoshi Koizumi
3940c673e3 64bit long fix: patch by Dave Hill 2003-03-04 17:10:29 +00:00
Moriyoshi Koizumi
63291af120 Fixed bug #22330 (overloaded strrpos() gives wrong results)
Patch by david at santinoli dot com. Thanks!
2003-02-20 17:52:42 +00:00
Rasmus Lerdorf
7429c2dc3f Input Filter support. See README.input_filter for details.
@- Input Filter support added. See  README.input_filter. (Rasmus)
2003-02-19 19:41:09 +00:00
Moriyoshi Koizumi
dd0462c78f Added description for the hand-made finite state machine. 2003-02-18 20:31:04 +00:00
Moriyoshi Koizumi
bcd49d63c3 Fixed mb_send_mail() so that Content-Type and Content-Transfer-Encoding
headers are overridable by additional header parameters.
This patch fixes bug #21985 and bug #22064.
2003-02-18 18:49:47 +00:00
Moriyoshi Koizumi
1068156252 Fixed ZTS build 2003-02-11 03:55:08 +00:00
Moriyoshi Koizumi
0ae9394c39 zend_get_parameters_* => zend_parse_parameters 2003-02-03 20:25:25 +00:00
Moriyoshi Koizumi
a4fe845aba Really fixed proto.
# sorry for messing
2003-02-03 16:46:45 +00:00
Moriyoshi Koizumi
2a92efdaf9 Oops! wrong commit. Reverting... 2003-02-03 16:45:56 +00:00
Moriyoshi Koizumi
e58e11743a Fixed proto 2003-02-03 16:44:28 +00:00
Moriyoshi Koizumi
b00cc4f2bb Fixed a mb_send_mail() bug that has been reported in php-i18n@lists.php.net
See http://lists.php.net/article.php?group=php.i18n&article=427
2003-01-31 14:15:49 +00:00
Ilia Alshanetsky
8a9e09a44a ARG_COUNT(ht) -> ZEND_NUM_ARGS(). 2003-01-21 14:56:40 +00:00
Ilia Alshanetsky
984c0918ab Removed pointless memory allocation checks. 2003-01-18 20:10:23 +00:00
Sebastian Bergmann
b506f5c8f8 Bump year. 2002-12-31 16:08:15 +00:00
Moriyoshi Koizumi
12d4a19fce Forgot to adjust this one 2002-11-25 17:21:50 +00:00
Moriyoshi Koizumi
76b218cb6e Renamed several internal functions for consistency 2002-11-25 17:20:20 +00:00
Moriyoshi Koizumi
7f1f056f16 Updated license information headers 2002-11-23 20:14:33 +00:00
Moriyoshi Koizumi
22a9d7ad25 Separated GPC related part from mbstring.c 2002-11-23 20:08:44 +00:00
Rui Hirokawa
13a51b8f20 mbstring is supporting CJK + some other encodings. 2002-11-21 16:12:49 +00:00
Moriyoshi Koizumi
72f0be09c0 Function renamings: s/php_mbstr_/php_mb/.
# all of which are static so I don't see any problem for now.
2002-11-19 17:23:41 +00:00
Moriyoshi Koizumi
41ef851eb5 Unified the duplicated portions.
# No need to merge this patch to the branch
2002-11-19 17:02:06 +00:00
Moriyoshi Koizumi
e40416ebf6 Fixed possible buffer over run in php_mb_safe_strrchr_ex() 2002-11-14 21:33:36 +00:00
Moriyoshi Koizumi
dac0b6fc4f Moved some mbregex related portions from mbstring.c to php_mbregex.c
# No need to merge this change to PHP_4_3 branch
2002-11-14 18:54:42 +00:00
Edin Kadribasic
1eddce79dd MFB (made mbstring compile on windows again). 2002-11-13 23:11:14 +00:00
Moriyoshi Koizumi
7addde8521 Prevented unwanted encoding detections in mb_send_mail()
# This patch shouldn't break BC
2002-11-13 08:26:04 +00:00
Moriyoshi Koizumi
e01b60c2fb Fixed mb_encode_mimeheader() to work with languages other than Japanese and
English
2002-11-13 08:13:34 +00:00
Moriyoshi Koizumi
04f59073e6 Fixed a buffer over-run bug in case a function to be overloaded doesn't exist.
# This patch was made by Ilia.
2002-11-13 07:40:11 +00:00
Moriyoshi Koizumi
16cf26ee18 Cosmetics 2002-11-12 22:05:18 +00:00
Moriyoshi Koizumi
3cf7002469 Fixed a function overloading related bug.
# Yet I suspect the problem is in another place...
2002-11-12 21:58:53 +00:00
Moriyoshi Koizumi
268903ce6c Added neutral language spec for backwards compatibility 2002-11-12 19:24:45 +00:00
Marcus Boerger
1017cf99a0 fix warnings 2002-11-12 11:45:10 +00:00
Moriyoshi Koizumi
66d606df5f Fixed mb_send_mail() so that it correctly handles the language setting. 2002-11-10 21:32:54 +00:00
Moriyoshi Koizumi
2007517447 Fixed OnUpdate_mbstring_language so that change for mbstring.language
would be reflected to the setting properly
2002-11-10 21:18:54 +00:00
Moriyoshi Koizumi
3e21044d81 Changed the default settings so that it shouldn't affect htmlentities() 2002-11-10 20:53:36 +00:00
Moriyoshi Koizumi
a1d6dccb59 These changes seems to have bad effect on htmlentities().
Remove it.
2002-11-10 19:05:51 +00:00
Moriyoshi Koizumi
60febe2890 Fixed typo 2002-11-09 23:10:02 +00:00
Moriyoshi Koizumi
0e6445b8b1 Added mb_substr_count() as per the request #15097 2002-11-09 17:05:47 +00:00
Moriyoshi Koizumi
f47cf49139 Fixed PHP_INI_MH(OnUpdate_mbstring_language) so that ini entry values
are properly updated.
2002-11-09 16:15:40 +00:00
Moriyoshi Koizumi
941d5e3894 style keisatsu 2002-11-03 08:50:43 +00:00
Moriyoshi Koizumi
e9982c06c7 Reduced compiler warnings 2002-11-02 13:38:32 +00:00
Yasuo Ohgaki
75583ee2a6 Remove useless check.
# Problem was in other place
2002-10-26 02:08:05 +00:00
Moriyoshi Koizumi
af9aefc9be Additional fix for #20087
# Thanks, Derick!
2002-10-25 18:35:25 +00:00
Derick Rethans
9e1b9a89f9 - Fixed bug #20087 (Assertion failure when the value was empty) 2002-10-25 17:44:52 +00:00
Moriyoshi Koizumi
36447ebe05 Fixed null value check in php_mb_mbchar_bytes_ex() as it should be 2002-10-25 09:36:36 +00:00
Moriyoshi Koizumi
b309c0515c Adjusted MINFO table style 2002-10-25 08:31:27 +00:00
Marcus Boerger
15b2e277a4 fix compiler warning 2002-10-24 19:15:40 +00:00
Moriyoshi Koizumi
74883a9583 Make php_mb_is_mb_leadbyte() obsolete. It only works with double-byte chars.
# Sorry Marcus, it seems we were working simultaneously :)
2002-10-23 23:25:27 +00:00
Marcus Boerger
015832d81e fix style and warnings 2002-10-23 23:07:14 +00:00
Moriyoshi Koizumi
d59f9b756e Fixed comment position.
# Sorry for repetitive commit logs :)
2002-10-23 19:58:37 +00:00
Moriyoshi Koizumi
afa9f42f47 Function renaming. 2002-10-23 19:51:50 +00:00
Moriyoshi Koizumi
83fd27ee0a Added folding markers for happier hacking 2002-10-23 19:38:46 +00:00
Moriyoshi Koizumi
e8e614101d Style keisatsu 2002-10-23 19:20:27 +00:00
Moriyoshi Koizumi
fdc91ccc73 Renaming the functions. 2002-10-23 18:32:55 +00:00
Moriyoshi Koizumi
b7703551ed Remaned the functions for consistency 2002-10-23 16:54:31 +00:00
Moriyoshi Koizumi
cbc9256fc9 MFH 2002-10-23 16:48:33 +00:00
Moriyoshi Koizumi
4eadff2233 More style fixes... 2002-10-21 10:47:41 +00:00
Moriyoshi Koizumi
821349465a style keisatsu :) 2002-10-21 02:39:53 +00:00
Moriyoshi Koizumi
fe7c6debd9 Changed the dafault option for consistency 2002-10-21 02:24:06 +00:00