Commit Graph

240 Commits

Author SHA1 Message Date
Stefan Esser
a8191a66c1 never smash the stack... 2002-10-07 16:11:30 +00:00
Stefan Esser
5619a3d0a5 fixing possible off by one in error case 2002-10-07 16:05:28 +00:00
Rasmus Lerdorf
d940131774 Fix build 2002-10-06 16:37:33 +00:00
Moriyoshi Koizumi
a1b3f8382d added support for aliases of the encodings. 2002-10-06 15:31:52 +00:00
Sebastian Bergmann
6ca22a1740 HAVE_MBSTRING awareness. 2002-10-06 09:36:26 +00:00
Sebastian Bergmann
df472058e2 HAVE_MBREGEX awareness. 2002-10-06 09:29:54 +00:00
Moriyoshi Koizumi
0601d1fc41 made messages more consistent 2002-10-06 06:37:47 +00:00
Moriyoshi Koizumi
55b591365f Warnings for empty regular expressions 2002-10-06 06:21:34 +00:00
Yasuo Ohgaki
0a6f5f9996 Update test 2002-10-03 07:19:27 +00:00
Yasuo Ohgaki
66a50c5373 Added ob_flush_all() that flushes bufferred contents until it actually
sent/printed.
@ Added ob_flush_all() that flushes all buffers. (Yasuo)
2002-10-03 07:17:14 +00:00
Zeev Suraski
2c4b6fff6d Fix warnings 2002-10-01 10:16:40 +00:00
Sebastian Bergmann
d6e24f21f9 Sync MSVC project files. 2002-09-26 06:10:22 +00:00
Wez Furlong
1a87c6b5bf (PHP mb_convert_case) Add function that will convert the case of a string
Respecting it's encoding (or the internal encoding).
2002-09-26 00:53:47 +00:00
Derick Rethans
cf07c698d1 - Align configure --help messages 2002-09-19 20:14:35 +00:00
Yasuo Ohgaki
16125ec2bf This should fix var handling problems finally. 2002-09-07 22:51:39 +00:00
Yasuo Ohgaki
b65073d3ea Fixed array var handling. Patch by Moriyoshi Koizumi <readjust@deneb.freemail.ne.jp> 2002-09-07 14:07:05 +00:00
Yasuo Ohgaki
27ce2cfa24 Fixed trancated value bug when array is used 2002-09-07 09:23:39 +00:00
foobar
3bf7519210 @- Added --disable-all configure option. (Jani) 2002-09-04 18:47:28 +00:00
Rui Hirokawa
ee2e4ed41f removed #ifdef for mbstring.encoding_translation. 2002-09-03 09:11:33 +00:00
Rui Hirokawa
9b33531910 *** empty log message *** 2002-09-03 05:20:40 +00:00
Rui Hirokawa
7678ada2b8 --enable-mbstr-enc-trans is abolished to prevent some problems about POST/GET/Cookie variables. the same functionality is controllable in php.ini option mbstring.encoding_translation (default:Off). 2002-09-03 05:18:20 +00:00
foobar
1939764d98 Fix ZTS build 2002-08-28 02:08:57 +00:00
Marcus Boerger
965ecdb3a6 php_error_docref 2002-08-27 15:32:04 +00:00
Marcus Boerger
a8027c1428 Remove this nonsense - this makes the module unpredicable since we do
not have default values in ini and more encodings will follow.
2002-08-27 14:57:09 +00:00
Den V. Tsopa
a1e0e5c859 convert encoding to cp1251,cp866 was not working, fixed 2002-08-24 09:48:00 +00:00
Marcus Boerger
e0c967508a more ini settings 2002-08-21 03:10:55 +00:00
Marcus Boerger
bb258468fc NO C++ comments 2002-08-20 10:00:28 +00:00
Den V. Tsopa
e139decdea Revert from patch added mb_guess_encoding to previous version 2002-08-14 06:38:07 +00:00
Yasuo Ohgaki
8c020d357f Add warning... It seems posting message to php-dev/php-cvs does not work! 2002-08-14 06:28:16 +00:00
Den V. Tsopa
4f5743582e Added new function mb_guess_encoding, based on symbols rating 2002-08-14 05:41:40 +00:00
Rasmus Lerdorf
3ffe4cb1ff bool not boolean 2002-08-13 04:37:28 +00:00
Marcus Boerger
c467129528 move html_entities.c to proper place
#nice to have snaps.php.net
2002-08-04 22:54:24 +00:00
Marcus Boerger
367ca8e2ae -Correct mime_name for HTML-ENTITIES encoding is of cause US-ASCII
-Full list of ASCII aliases
2002-08-04 20:50:53 +00:00
Marcus Boerger
81df625260 -Fix warnings (fixed all?) 2002-08-04 18:59:19 +00:00
Marcus Boerger
c4e66f4192 -Add new file to windows build 2002-08-04 18:33:28 +00:00
Marcus Boerger
77abd9d55a -New encoding/decoding HTML-ENTITIES.
#This allows to enforce named and numeric entities in output.
#Example:CMS that reads UTF8 or ISO-8859-1 but exports HTML in ASCII.
#Using mbstring.http_output=HTML-ENTITIES users receive entities which
#can displayed correctly independant of any brwoser side encoding.
@New mbstring encoding/decoding HTML-ENTITIES. (marcus)
2002-08-04 14:20:11 +00:00
Marcus Boerger
f2f70b5dda -Allow double quotes for encoding lists (if used in ini for example)
-New parameter 'L' for mb_http_input() to retieve input encoding as
 comma separated string.
@New parameter 'L' for mb_http_input() to retrieve input encoding as
 comma separated string. (marcus)
2002-08-04 14:10:58 +00:00
Andi Gutmans
4b492c4deb - Fix build on Windows. Also please don't use Java style opening function
- bracket indentation.
2002-08-03 09:48:34 +00:00
Marcus Boerger
de8c36dcaa -use const to clarify code
-fix tsrmls build (therefore rfc1867.c)
2002-08-02 10:22:31 +00:00
Rui Hirokawa
7527bf0c58 made sapi_register_treat_data() to support multibyte input encoding translation without MBSTR_ENC_TRANS and changed php_treat_data to php_default_treat_data. 2002-08-02 06:53:48 +00:00
Zeev Suraski
bc82be4284 Fix crash 2002-07-31 14:41:06 +00:00
Yasuo Ohgaki
3e7c884b1c Fixed query string handling. Now some.php?a&b=1;c works.
# arg_separator.output can be multile chars
2002-07-28 09:42:15 +00:00
Rui Hirokawa
fbbeaec630 fixed: output encoding translation by mb_output_handler() in ext/mbstring was not usable when Content-Type is set by header(). 2002-07-27 13:58:16 +00:00
foobar
e20b22fbc3 unbreak the shared build..again 2002-07-17 06:01:37 +00:00
Yasuo Ohgaki
7eecae7527 Changed configure option order to make it clear option dependecy to users. 2002-07-17 00:17:43 +00:00
Yasuo Ohgaki
dc794edb1a Disable input encoding tranlation by default. 2002-07-17 00:11:32 +00:00
Edin Kadribasic
50ca75a0f6 Fix bug #16985 (wrong count of GET/POST variables). 2002-07-15 17:48:54 +00:00
foobar
7259893862 These options are all enabled by default. (why?) 2002-07-14 00:12:13 +00:00
foobar
b87ac98701 These options are all enabled by default. (why?) 2002-07-14 00:11:44 +00:00
Sebastian Bergmann
bec1633335 Remove unused variables. 2002-07-12 04:57:14 +00:00
Rui Hirokawa
555ca8eedd added mbstring.language option in ext/mbstring. 2002-07-11 15:45:35 +00:00
Rui Hirokawa
ead78e9125 fixed shift_jis character corruption including 0x5c as second byte following a slash on uploaded filename. 2002-07-05 15:06:39 +00:00
Frank M. Kromann
bda7548a00 Removed unneeded check for MBSTR_ENC_TRANS 2002-07-03 18:45:34 +00:00
Frank M. Kromann
9a743eef77 Adding _RU files to project 2002-07-03 18:24:14 +00:00
Frank M. Kromann
0818410f7c Fixing ZTS build 2002-07-03 18:23:55 +00:00
Rui Hirokawa
bb21c40738 fixed shift_jis character corruption including 0x5c as second byte on uploaded filename. 2002-07-03 13:36:19 +00:00
Den V. Tsopa
f26fbd2bd5 small fix in preprocessor directive 2002-06-22 08:01:57 +00:00
Marcus Boerger
010e5e60ac correct handling/generating of php_mbstr_default_identify_list 2002-06-19 21:55:42 +00:00
foobar
cff4039c47 Fixed bug: #17137, test pass still 2002-06-18 00:56:11 +00:00
foobar
49523ba7d1 Changed the configure option to be --enable/disable 2002-06-06 12:44:28 +00:00
Frank M. Kromann
426b47837f Makring function declarations match implementations (ZTS compilation) 2002-06-01 05:45:25 +00:00
foobar
73ab5708b4 Fixed typo.. 2002-05-31 23:20:04 +00:00
Den V. Tsopa
509df14ff4 Fixes some dummy errors (again). 2002-05-30 10:10:16 +00:00
Den V. Tsopa
1da8768cae Added GB2312 alias for CN-GB 2002-05-29 09:15:28 +00:00
Den V. Tsopa
9cd5bf77a7 @Fixed some dummy errors. (dets) 2002-05-29 08:33:23 +00:00
Rui Hirokawa
d3012238bc reverted my patch. 2002-05-24 22:30:24 +00:00
Rui Hirokawa
ee480a7ec8 reverted patch to support iso2022kr. 2002-05-24 22:28:42 +00:00
Sebastian Bergmann
4405b313c5 ZTS fixes. 2002-05-21 07:10:26 +00:00
Den V. Tsopa
4974e6073e Added russian codepages (koi8-r,cp1251,cp866) support. 2002-05-21 07:00:34 +00:00
Preston L. Bannister
0b70f9e884 Range check arguments to mb_strcut().
Test ext/mbstring/013.phpt causes a hard failure w/o this.
2002-05-16 12:31:05 +00:00
Preston L. Bannister
9d3ed920b5 Proper declaration to suppress compiler warning. 2002-05-16 12:07:11 +00:00
Rui Hirokawa
5f8009a7ea added ISO-2022-KR support in mbstring. 2002-05-15 12:13:56 +00:00
Rui Hirokawa
e0a10acf8f fixed a initialization bug in euc-tw. 2002-05-14 21:42:46 +00:00
Sascha Schumann
b3de60dbf0 Fix this again.
If you are unsure whether enable or with shall be used, please
inquire on the mailing list.

WITH is solely for the purpose of pointing to paths and other external
entities.

Note that the comment has always mentioned "--disable-mbstring" which
clearly refers to enable and not with.
2002-05-12 14:55:25 +00:00
Rui Hirokawa
767fa10a92 added chinese HZ encoding support. fixed ascii area character conversion was not work in euc-cn and euc-kr. 2002-05-12 13:06:13 +00:00
Rui Hirokawa
b3690bbe19 fixed to support --with-mbsting=LANG. 2002-05-12 00:26:43 +00:00
Rui Hirokawa
f30b722f14 Added conversion support from script character encoding to internal character encoding. This feature is very useful for japanese who uses Shift_JIS encoding because some of characters in Shift_JIS are including '0x5c' and it causes some troubles on Zend parser. This patch is made by Masaki Fujimoto. 2002-05-08 12:33:44 +00:00
Rui Hirokawa
b7321edb84 bug fixed in unicode -> cp1252 table. 2002-05-05 11:42:18 +00:00
Rui Hirokawa
39c951ed88 added missing areas on Unicode->CP936 conversion table. added an alias CP932 on sjis-win. 2002-05-05 02:22:36 +00:00
Sascha Schumann
ee70764592 Turn misplaced PHP_ARG_WITH into _ENABLE
and fix --enable-mbstring=shared
2002-05-04 16:50:10 +00:00
Frank M. Kromann
810c9dd963 Changed & to &&. 2002-05-02 17:54:54 +00:00
Frank M. Kromann
e789e72515 Adding missing files to the project 2002-05-02 17:53:42 +00:00
Sebastian Bergmann
92748918c5 More unused variables. 2002-04-30 15:21:04 +00:00
Sebastian Bergmann
28e1120978 Fix ZTS build. Remove unused variables. 2002-04-30 14:36:43 +00:00
Rui Hirokawa
813a795c64 fixed compile warning with Visual C++. 2002-04-30 12:45:14 +00:00
Rui Hirokawa
5df01432c7 added simplified chinese, traditional chinese, korean support to mbstring. Note that this feature is experimental. 2002-04-30 12:00:42 +00:00
Frank M. Kromann
eeb4fd9b45 Adding missing files to project 2002-04-30 04:36:34 +00:00
Sascha Schumann
4efba9ef9d Improve use of module_globals macros 2002-04-26 10:13:45 +00:00
Yasuo Ohgaki
417f299d0e Remove unneeded 'return'. 2002-04-23 08:10:45 +00:00
Yasuo Ohgaki
e6780384ad Fix possible wide char prolem.
Fix empty output when no conversion is performed.
# Derick, this needs to be merged.
2002-04-23 08:07:19 +00:00
Rui Hirokawa
aa9cf268db small performance improvement when pass is selected as input encoding. 2002-04-21 22:06:55 +00:00
Sascha Schumann
20c0fed127 If I don't want mbstring, I also don't want this transparent encoding
thingee which caused an undefined reference in main.o.
2002-04-20 15:17:57 +00:00
Yasuo Ohgaki
2efc8847cd Fixed test title (strlen -> mb_strlen) 2002-04-19 07:51:00 +00:00
Yasuo Ohgaki
26bf419778 Fixed messages 2002-04-19 07:08:26 +00:00
Yasuo Ohgaki
6c8bcadf76 Enable mbstring by default.
@ mbstring module is enabled by default (Yasuo)
2002-04-19 06:32:26 +00:00
Frank M. Kromann
1c111b5d3f Fixing Win32 compilation of mbstring 2002-04-15 23:03:48 +00:00
Rui Hirokawa
d5158c20a4 fixed error output handler when 'pass' is choosed as output encoding. 2002-04-14 08:18:55 +00:00
Marcus Boerger
0f0a5dddf3 -new function php_mb_check_encoding_list
-mark module globals as const (thread safety)
2002-04-12 16:17:16 +00:00
Sander Roobol
fa8e2db095 This test should be skipped if(!cgi) 2002-04-12 15:25:54 +00:00
Marcus Boerger
df82b2ec75 -fix mb_detect_order
-php_mbstring_parse_encoding_list/array return 0 on any illegal input
2002-04-12 14:24:54 +00:00