Commit Graph

695 Commits

Author SHA1 Message Date
Masaki Fujimoto
ca7a649300 - Fix mbfl_encoding_detector_feed() and mbfl_mbfl_identify_encoding() behaviour 2005-04-22 05:03:10 +00:00
Moriyoshi Koizumi
2cba0ab304 - Fix bug #32311 (mb_encode_mimeheader() does not properly escape characters.) 2005-03-23 23:22:16 +00:00
Moriyoshi Koizumi
542901d705 - Add Armenian encoding / NLS (patch by Hayk Chamyan) 2005-03-22 22:22:11 +00:00
Rui Hirokawa
c30f4ab6ec oniguruma updated to 3.7.1 and changed UChar to OnigUChar. 2005-03-19 08:52:23 +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
Antony Dovgal
3e2dd57c0a fix compile warnings 2005-03-09 21:58:20 +00:00
Moriyoshi Koizumi
d2627b5107 - Synch with the latest checkouts. (include fix by Joe Orton. Thanks.) 2005-02-23 13:35:34 +00:00
Moriyoshi Koizumi
20f709f339 - Update libmbfl (fixes bug #32063). 2005-02-22 09:57:45 +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
01c0d589ef - Fix bug #30868 (evaluated pointer comparison in mbregex causes compile
failure).
2005-02-21 10:19:11 +00:00
Moriyoshi Koizumi
e8901dc170 - Fix bug #30573 (compiler warning due to invalid type cast) 2005-02-21 10:12:43 +00:00
Moriyoshi Koizumi
d7d7ca62d4 - Fix bug #29989 (type re_registers redefined in oniguruma.h) 2005-02-21 09:43:55 +00:00
Moriyoshi Koizumi
8d73dc7bfc - Fix compiler warnings. 2005-02-21 07:57:08 +00:00
Moriyoshi Koizumi
df3c2b5808 - Add testcases for bug #28220 and #30549. 2005-02-21 07:45:37 +00:00
Moriyoshi Koizumi
a796dc2b81 - Forgot to add this one. 2005-02-20 22:20:23 +00:00
Moriyoshi Koizumi
5b5e012bc2 - Update libmbfl (fixes bug #30549 and #31911).
- Update oniguruma to 3.7.0
2005-02-20 22:18:09 +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
Joe Orton
9a8114e388 Don't scribble over the stack; icc compiler warning fix
from dcb314@hotmail.com via Red Hat bugzilla #143795.
2005-01-10 11:26:56 +00:00
foobar
ce742b08b0 - Fix typo (avaliable -> available). (bug #28725) 2004-12-16 12:34:32 +00:00
Joe Orton
2685ca935f Update extensions to use /path/to/$PHP_LIBDIR rather than /path/to/lib
to support multi-ABI platforms.
2004-11-03 14:32:52 +00:00
Moriyoshi Koizumi
a86095fe07 - Fix test. I have no idea why the test was left this way. 2004-10-09 08:16:29 +00:00
Moriyoshi Koizumi
4f247de89b - Sync with the latest codebase (fixes bug #28220). 2004-10-08 14:40:46 +00:00
Moriyoshi Koizumi
756ee85bec - Avoid doubly symbol definition. Codes in the removed file has never been
used anywhere.
2004-10-08 14:24:06 +00:00
Marcus Boerger
5f0433db83 MFB: Enforce protocol on magic methods/functions 2004-08-02 08:27:57 +00:00
Andi Gutmans
56f8195fe5 - Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
used to return "" and not bool(false). It's not worth keeping it because
  STR_FREE() and zval_dtor() always have to check for it and it slows down
  the general case. In addition, it seems that empty_string has been abused
  quite a lot, and was used not only for setting zval's but generally in
  PHP code instead of "", which wasn't the intention. Last but not least,
  nuking empty_string should improve stability as I doubt every place
  correctly checked if they are not mistakenly erealloc()'ing it or
  calling efree() on it.
  NOTE: Some code is probably broken. Each extension maintainer should
  check and see that my changes are OK. Also, I haven't had time to touch
  PECL yet. Will try and do it tomorrow.
2004-07-19 07:19:50 +00:00
Moriyoshi Koizumi
599ae4b1b5 - Fix VPATH build. (patch by Joe Orton) 2004-07-19 05:07:40 +00:00
Moriyoshi Koizumi
83d2cbd36e - Rename php_compat.h to php_onig_compat.h to avoid name conflict.
(reported by Joe Orton, thanks.)
2004-07-19 05:04:33 +00:00
Stefan Esser
ff716cbd3e Fixed input_filter functions need emalloc()ed values. 2004-06-26 07:57:37 +00:00
Moriyoshi Koizumi
b33f7ab671 - Fix bug #28466 (mbstring_convert_variables() problem). 2004-06-26 05:39:00 +00:00
Ilia Alshanetsky
af5501027f Fixed bug #28723 (Fixed mbstring config.m4 to work on OSes where test
command does not support -e parameter).
2004-06-10 14:06:17 +00:00
Wez Furlong
a8757b11e6 Enable mbregex in win32 build 2004-04-08 11:01:51 +00:00
Moriyoshi Koizumi
d3a8b31310 - Add missing checks. Maybe fixes PR #27680 2004-04-08 00:30:06 +00:00
Moriyoshi Koizumi
94ec5c2a64 - Let it work safely 2004-04-04 19:23:19 +00:00
Derick Rethans
bebddbdd24 - Fixed test 2004-04-04 19:00:53 +00:00
Derick Rethans
efb62ea35f - MFB: Fixed bug #27849 (configure craps out on trivial syntax error). 2004-04-03 17:23:53 +00:00
Rui Hirokawa
9018537919 added missing files of oniguruma to mbstring.dsp. 2004-03-27 10:51:34 +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
ab204a36e0 - Fix compiler warnings. (Patch by K.Kosako <kosako@sofnec.co.jp>) 2004-03-04 21:50:21 +00:00
Moriyoshi Koizumi
a91e44c830 - Add missing include path. 2004-03-03 10:27:19 +00:00
Moriyoshi Koizumi
9e9d7d1743 - proper DLL linkage specifier.
# oniguruma.h:34-
#
# #ifndef ONIG_EXTERN
# #if defined(_WIN32) && !defined(__CYGWIN__)
# #if defined(EXPORT) || defined(RUBY_EXPORT)
# #define ONIG_EXTERN   extern __declspec(dllexport)
# #else
# #define ONIG_EXTERN   extern __declspec(dllimport)
# #endif
# #endif
# #endif
2004-03-02 22:38:21 +00:00
Moriyoshi Koizumi
bc4d64477a - Fix typo. 2004-03-02 20:18:14 +00:00
Moriyoshi Koizumi
1dfd0bd901 - Really fix the build.
# Should be fixed now :|
2004-03-02 15:59:30 +00:00
Moriyoshi Koizumi
e3b4faf793 - Revisit config.h for win32 build.
# apologies for messing.
2004-03-02 15:58:39 +00:00
Edin Kadribasic
f067c0479f Temporary fix for win32 build 2004-03-02 11:50:10 +00:00
Moriyoshi Koizumi
03bdd13560 - Fix win32 build.
# Thanks Nuno Lopes & Derick for letting me know.
2004-03-01 20:25:33 +00:00
Moriyoshi Koizumi
f9302aca13 - Remove redundant files that are irrelevant to the build. 2004-02-28 20:52:05 +00:00
Moriyoshi Koizumi
f87f2ed4b4 - Forgot to add those. 2004-02-28 20:46:06 +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
Marcus Boerger
4a3c015dd7 Fix annoying warning 2004-02-04 23:41:58 +00:00
Moriyoshi Koizumi
24eb1f6eb2 - Update libmbfl to the latest. This fixes several serious issues in the html
entity encoder and the encoding detection facility. There should be no
  problem with mailparse() as API change was made so carefully that it
  would be as small as possible.
2004-02-04 07:24:08 +00:00
Moriyoshi Koizumi
b2402396a9 - Suppress a compiler warning by a rather useless typecasting. 2004-01-26 00:27:24 +00:00
Moriyoshi Koizumi
e226ed0e21 - Fix bug #26699 (mbstring encoding types does not include "binary"). 2004-01-26 00:19:25 +00:00
Moriyoshi Koizumi
e4d90e60fc - Turn off mbstring.func_overload as this test uses plain strlen() for
comparison.
2004-01-19 16:53:34 +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
foobar
ccfc46b0aa - Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +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
698ab70ae4 Remove leftover 2003-12-10 17:09:14 +00:00
Moriyoshi Koizumi
ed2fd39d0a Avoid using non-portable test syntax. This was causing problems on
Solaris. (Reported by Uwe Schindler. Thanks!)
2003-12-08 07:18:20 +00:00
foobar
2e8b1c01fe revert, not needed 2003-12-07 15:41:50 +00:00
Marcus Boerger
1ee7d70b9e Enable shared build 2003-12-07 01:58:54 +00:00
Moriyoshi Koizumi
7d3e351383 This part is accidentially left on the previous commit. 2003-12-04 22:53:16 +00:00
Moriyoshi Koizumi
0d2c100a4f It'd be a bad idea to make subpackages dependent on the php build system. 2003-12-04 22:49:46 +00:00
Wez Furlong
05b9b20ed8 Add new (optional!) win32 build infrastructure.
Will follow up to internals@ shortly.
2003-12-02 23:17:04 +00:00
Wez Furlong
e68b2fa5fe Fix MBSTRING_API for non-shared win32 builds 2003-12-02 08:54:39 +00:00
Marcus Boerger
71ec2db198 Fix tests 2003-11-30 13:20:26 +00:00
Derick Rethans
750b0338bf - Fix sapi_input_filter patch. Returning 1 from the filter handler should
make PHP register the variable, returning 0 shouldn't. The new length of
  the variables being filtered is now returned in the new_val_len argument
  of the function.
2003-11-29 15:24:35 +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
foobar
d0422ea0bc fix skipif for these tests 2003-10-02 14:55:49 +00:00
Moriyoshi Koizumi
a5422685fb Remove leftovers 2003-10-02 11:02:54 +00:00
Moriyoshi Koizumi
f2b36ec52b Fix php_regex_encoding() so it can handle two additional encoding names
mbfilter supports by default.
2003-10-02 07:49:14 +00:00
Moriyoshi Koizumi
07a021f477 Add test cases for the regex probles 2003-09-26 17:44:06 +00:00
Moriyoshi Koizumi
83609e0874 Repatch fixes for the problem that was reported at php-dev@php.gr.jp (#884) 2003-09-26 17:43:39 +00:00
Moriyoshi Koizumi
7e4a886971 Forgot to commit this one. 2003-09-26 17:41:52 +00:00
Moriyoshi Koizumi
91bf8e5dc9 Explicitly specify mbstring.language. 2003-09-26 14:42:37 +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
96cdea35c1 Specify full path to cat for mb_send_mail() tests 2003-09-26 11:08:54 +00:00
Ilia Alshanetsky
ff4d200772 Specify full path for cat utility used by the test. 2003-09-24 02:27:43 +00:00
Moriyoshi Koizumi
1ee441613d Remove useless mutex code due to the switch to oniguruma. 2003-09-23 20:11:05 +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
ce66e1eb8d fixed wrong string length in mbregex. 2003-09-23 02:47:06 +00:00
Rui Hirokawa
b6b761ca84 revert a patch. 2003-09-23 02:43:49 +00:00
Rui Hirokawa
25bb0d16a9 fixed win32-build and update e-mail address in mbstring. 2003-09-23 02:43:04 +00:00
Ilia Alshanetsky
a7f2ec3cdb Fixed compile warnings. HAVE_ defines cannot work without the header that
defines them.
2003-09-17 05:42:57 +00:00
Marcus Boerger
7fac56c593 - Change email
- Fix warnings
2003-09-12 13:31:23 +00:00
foobar
46e47ec0db - Fix the win32 build.
# mbregex is still not build, that onigurama stuff didn't compile
2003-08-31 16:08:46 +00:00
Zeev Suraski
8767205afa Fix Win32 linkage problems 2003-08-31 12:41:53 +00:00
foobar
c803e4643d No need to enable by default. Derick got confused. :) 2003-08-30 22:09:27 +00:00
foobar
4d788fc1e2 libmbfl is required always 2003-08-30 21:57:29 +00:00
foobar
c57ecb0e9a ws 2003-08-30 21:32:10 +00:00
Marcus Boerger
ba4178189b - Fix compile
- Building still not possible
2003-08-25 21:54:26 +00:00
foobar
6b7cb7c570 Some minor fixes so that this works with autoconf 2.13 too 2003-08-25 04:08:29 +00:00
Moriyoshi Koizumi
e49c59038c Sync with original 2003-08-25 01:44:17 +00:00
Moriyoshi Koizumi
39ae479942 Allow usage of external libmbfl 2003-08-24 22:46:13 +00:00
Moriyoshi Koizumi
7fe12aaa17 Integrate allocator code into mbstring.c 2003-08-24 22:15:49 +00:00
Moriyoshi Koizumi
ebcdf6f299 Sync with the original 2003-08-24 20:07:13 +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
697ce0776f revert my patch. 2003-08-23 08:27:46 +00:00
Rui Hirokawa
c8b525859d strcasecmp macro moved to mbfl_compat.h. 2003-08-23 08:26:46 +00:00
Rui Hirokawa
e4f5e1da6d remove unnessesary files. 2003-08-23 06:51:16 +00:00
Rui Hirokawa
48d8c3fba7 removed mbstring/*/config.h. 2003-08-23 06:27:06 +00:00
Rui Hirokawa
a05608dd7b added .cvsignore and README. 2003-08-23 06:20:59 +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
Ilia Alshanetsky
c6134c346c Use getenv() rather then $_ENV, the latter is not always avaliable. 2003-08-09 21:00:42 +00:00
Moriyoshi Koizumi
fb02fdf306 Fix test as the "expected result" was totally pointless in the first place. 2003-08-08 10:53:54 +00:00
Moriyoshi Koizumi
de02912ef2 Fix the test which should have been fixed long ago. 2003-08-08 10:52:50 +00:00
Moriyoshi Koizumi
68120caddc Add test case for the bug 2003-08-08 10:35:53 +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
Brian France
589d0f1423 MFB: added include config.h so shared extensions builds work correctly 2003-08-06 15:16:46 +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
Moriyoshi Koizumi
f05452fbcd Disable the test temporarily because "-d" flags in the command line doesn't
take effect under CGI mode. (See the relevant portion of cgi_main.c
that begins at line 996)
2003-08-03 13:58:20 +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
Moriyoshi Koizumi
dd710f4dc0 Added missing protos 2003-07-03 15:30:14 +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
Ilia Alshanetsky
ff5fc53c5e Fixed bug #23897 (Fixed a check for mbfilter_ru.h) aleks@m2media.ru 2003-05-30 13:20:01 +00:00
Moriyoshi Koizumi
f1679e4027 Fixed test so it won't fail in correct situations 2003-05-14 00:36:00 +00:00
Moriyoshi Koizumi
0fc5d74364 oops 2003-05-12 13:28:06 +00:00
Moriyoshi Koizumi
e500e957ba Applied the right fix for bug #23016 2003-05-12 13:26:16 +00:00
Moriyoshi Koizumi
27863eb499 MFB(r-1.40.2.4): fixed bug #23016 2003-05-11 00:49:15 +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
d1b82409c3 Added missing sanity check, which was causing segfault. 2003-04-04 09:06:23 +00:00
Moriyoshi Koizumi
8784a497b8 Fixed segfault in mb_ereg_match() 2003-04-03 00:15:13 +00:00
Moriyoshi Koizumi
8b539ed766 Fixed lots of crashes in mbregex.
# most of them were caused by stupid mistakes
2003-04-03 00:01:44 +00:00
Moriyoshi Koizumi
2954ea0a01 oops 2003-04-01 18:56:59 +00:00
Moriyoshi Koizumi
1bb22a8bd0 Reverted the last patch; the problem is elsewhere.. 2003-04-01 18:56:26 +00:00
Moriyoshi Koizumi
df22d1016f Fixed crash that occurs due to an abused persistent hashtable.
# thanks Sascha again.
2003-04-01 18:44:00 +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
9e6fdcd8f6 Fixed test cases so they wouldn't be failed in case register_globals=on 2003-03-29 07:13:47 +00:00
Moriyoshi Koizumi
8bdef0dda5 Removed redundant aliases & CS fix. 2003-03-28 03:38:13 +00:00
Moriyoshi Koizumi
570e929d49 Fixed bug #22834 (compile failure due to ugly implicit casts) 2003-03-24 21:22:23 +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
Rasmus Lerdorf
d08a0e99c8 An input filter might not simply strip stuff, it might also turn things
into entities or use some other mechanism which causes the filtered data
to be longer than the original data.  Ergo, pass in the address of the
buffer instead so the filter is free to reallocate it.
2003-02-20 22:21:49 +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
afb8842cea Fix mbstring input_filter 2003-02-19 20:56:47 +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
47f6ed8dbb Trivial test adjustment 2003-02-03 20:29:07 +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
e5a4b5b2dc Fixed test case for mb_strpos().
# the third parameter should specify an offset but an encoding name
2003-02-03 16:16:37 +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
Moriyoshi Koizumi
cfbd0bb58a Really fixed the mb issue of mb_ereg_replace()
# my previous patch is somewhat wrong
2003-01-23 20:38:44 +00:00
Moriyoshi Koizumi
3e7b832895 Fixed a mb_ereg_replace() bug; the function was not completely multibyte-safe. 2003-01-23 20:07:39 +00:00
Moriyoshi Koizumi
812a419019 Oops! wrong patch. Reverted. 2003-01-21 22:09:09 +00:00
Moriyoshi Koizumi
ce5df6d949 Fixed mb_ereg_replace() bug (the function has ignored the default option) 2003-01-21 22:03:29 +00:00
Moriyoshi Koizumi
9a723fcb4e Fixed mb_ereg_search() segfault that occurs when the function is called
before a string to be searched is passed by mb_ereg_search_init()
2003-01-21 19:31:07 +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
Rui Hirokawa
3d324676a5 fixed lack of variable initialization bug. 2002-12-11 14:39:37 +00:00
Moriyoshi Koizumi
de79a4e9d8 Reverted the changes because the problem was elsewhere. 2002-12-02 21:10:37 +00:00
Frank M. Kromann
b2a648f5b5 Fixing the Win32 compilation of mbstring with mbregex enabled. 2002-12-02 19:18:23 +00:00
Frank M. Kromann
a7f3ad42a4 Fixing build on WIn32
MBREGEX is disabled for now. 5 mbre_* functions are undefined on WIn32
2002-12-02 18:19:17 +00:00
Moriyoshi Koizumi
b9687bea65 Prevented the result from being affected by function overloading 2002-11-29 18:32:50 +00:00
Moriyoshi Koizumi
53fba5f8a6 @- Enabled mbregex by default when mbstring is also enabled (Moriyoshi) 2002-11-25 17:44:14 +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
Rui Hirokawa
b3cfda6389 simplified korean encoding conversion table. 2002-11-25 15:21:04 +00:00
Moriyoshi Koizumi
436bc265e6 MFB 2002-11-24 19:48:58 +00:00
Frank M. Kromann
ecd975550b Adding mb_gpc files to project 2002-11-23 22:59:24 +00:00
Moriyoshi Koizumi
f920e5d068 Forgot this one. Updated license information 2002-11-23 20:17:46 +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
Moriyoshi Koizumi
40d605a385 Test for mb_send_mail() under language=Korean 2002-11-23 05:26:18 +00:00
Rui Hirokawa
c38db57f3c fixed some bugs in korean encoding conversion. 2002-11-22 23:34:55 +00:00
Moriyoshi Koizumi
1748935997 Added missing mb_internal_encoding() 2002-11-21 18:12:53 +00:00
Moriyoshi Koizumi
adfcb09190 Removed unnecessary "\n" 2002-11-21 17:36:16 +00:00
Rui Hirokawa
13a51b8f20 mbstring is supporting CJK + some other encodings. 2002-11-21 16:12:49 +00:00
Rui Hirokawa
8a2b5991d6 fixed incorrect encoding conversion in korean. 2002-11-21 16:05:38 +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
65677445b4 Added a test to check whether mb_parse_str() works properly 2002-11-19 16:56:43 +00:00
Moriyoshi Koizumi
18089ce360 Modified the test so it wouldn't be affected by ini settings. 2002-11-19 16:55:34 +00:00
Moriyoshi Koizumi
003be7fe32 Divided the overload test into two so as to handle the case mbregex is
not enabled
2002-11-15 15:59:07 +00:00
Moriyoshi Koizumi
b62afe783d %s/SKIP/skip/g 2002-11-15 15:34:57 +00:00
Moriyoshi Koizumi
46b4abc08b Removed unnecessary ?> 2002-11-15 14:53:58 +00:00
Moriyoshi Koizumi
b23d2c8beb Fixed bogus SKIPIF conditions. 2002-11-15 14:49:57 +00:00
Moriyoshi Koizumi
f0a7db1c7e Added some skipif conditions to handle the case mbstring is enabled but mbregex is disabled. 2002-11-15 14:26:33 +00:00
Moriyoshi Koizumi
9efefc742b Added a test for zend-multibyte extension 2002-11-14 22:38:43 +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
6841184abc Fix build 2002-11-14 19:04:29 +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
Wez Furlong
08362f90d9 Fix build for unix.
Not sure if this needs merging to the branch (haven't got that far yet today).
2002-11-14 12:06:01 +00:00
Edin Kadribasic
1eddce79dd MFB (made mbstring compile on windows again). 2002-11-13 23:11:14 +00:00
Ilia Alshanetsky
0cb9c53033 Added a skip condition for when mail() function is not avaliable. 2002-11-13 17:16:33 +00:00
Ilia Alshanetsky
b0d519f730 Added a skip condition for when the encoding needed for the test is not
available or supported.
2002-11-13 16:52:48 +00:00
Moriyoshi Koizumi
9f2a1ce9d4 Added a test for mb_send_mail() to check if the function properly handles
Traditional Chinese characters.
2002-11-13 12:00:47 +00:00
Moriyoshi Koizumi
fd01313fde Corrected Traditional Chinese language spec and the preferred MIME name
of which the encoding is used in that locale.
2002-11-13 11:57:59 +00:00
Moriyoshi Koizumi
2016c0cc0a Added a test for mb_send_mail() to check if the simplified Chinese support
works
2002-11-13 08:45:37 +00:00
Moriyoshi Koizumi
d9ebc7aadb Updated the test 2002-11-13 08:27:17 +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
Andrei Zmievski
e87b45de44 Disable mbstring by default. 2002-11-13 04:36:04 +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
072466203d Fixed language name 2002-11-12 20:06:20 +00:00
Moriyoshi Koizumi
5d547d1f0c Added test cases for mb_send_mail() 2002-11-12 20:04:58 +00:00
Moriyoshi Koizumi
827974bc94 Forgot to change this one. 2002-11-12 19:44:56 +00:00
Moriyoshi Koizumi
268903ce6c Added neutral language spec for backwards compatibility 2002-11-12 19:24:45 +00:00
Ilia Alshanetsky
d84afe1121 Fixed a memory leak. 2002-11-12 17:41:26 +00:00
Marcus Boerger
1017cf99a0 fix warnings 2002-11-12 11:45:10 +00:00
Moriyoshi Koizumi
67e6c356f6 Fixed mb_convert_case() / mb_strtolower() / mb_strtoupper() to work in
64bit systems
2002-11-11 02:39:32 +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
a56ea0ab81 Fixed German language spec entry. 2002-11-10 21:31:26 +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
8c517d7d1d Added a test case to check if my recent patch works 2002-11-10 15:52:00 +00:00
Moriyoshi Koizumi
60febe2890 Fixed typo 2002-11-09 23:10:02 +00:00
Moriyoshi Koizumi
0a801f1deb Added a test for mb_substr_count() 2002-11-09 17:07:29 +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
72e0aa894a Added a test for function overloading behaviour 2002-11-08 07:22:10 +00:00
Moriyoshi Koizumi
f6ad144abb Added a new test 2002-11-03 20:35:46 +00:00
Moriyoshi Koizumi
941d5e3894 style keisatsu 2002-11-03 08:50:43 +00:00
Moriyoshi Koizumi
408e019b25 Disabled output_handler in INI section 2002-11-03 08:37:59 +00:00
Moriyoshi Koizumi
e9982c06c7 Reduced compiler warnings 2002-11-02 13:38:32 +00:00