Commit Graph

317 Commits

Author SHA1 Message Date
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
5df01432c7 added simplified chinese, traditional chinese, korean support to mbstring. Note that this feature is experimental. 2002-04-30 12:00:42 +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
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
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
Marcus Boerger
fffb1a5d21 interpret empty to_encoding as encoding not set what results in current_internal_encoding 2002-04-11 22:52:43 +00:00
Rui Hirokawa
adf58908e4 fixed a bug which causes crash when charset is not set. 2002-04-11 22:27:00 +00:00
Yasuo Ohgaki
25db882a77 Fix ZTS build
# Please check caller when you add TSRMLS_DC. Especically if it's PHPAPI function...
# find . -name "*.c" | xargs grep php_mail
2002-04-11 13:40:19 +00:00
Rui Hirokawa
1f847267e7 changed mbstring to make thread safe. 2002-04-10 12:47:41 +00:00
Marcus Boerger
0743669f1c -fix warnings 2002-04-07 18:09:31 +00:00
Yasuo Ohgaki
65ba307319 Use get_active_function_name() for error messages. 2002-04-06 01:01:41 +00:00
Marcus Boerger
cbb96206be no space for comma separated encoding lists 2002-04-05 16:24:08 +00:00
Yasuo Ohgaki
eb7ed9105a Fixed way of exporing functions. (Need PHPAPI for Win)
Fixed if statement format. ("if () stmt;" should be "if () \n {stmt;}")
Fixed error message so that appropriate function names are
displayed.
2002-04-05 02:13:32 +00:00
Marcus Boerger
cb51e72c46 new function php_mb_convert_encoding 2002-04-05 01:23:22 +00:00
Rui Hirokawa
751dcedb08 fixed some errors in regression tests. 2002-03-23 07:36:27 +00:00
Markus Fischer
d4e63bc5bf - Raise warning when trying to execute non-executeable shell
for mail delivery binary.
2002-03-16 12:45:43 +00:00
Sebastian Bergmann
90613d2282 Maintain headers. 2002-02-28 08:29:35 +00:00
Rui Hirokawa
07a08288a1 fixed a comment and default output encoding changed to pass. 2002-02-23 00:04:20 +00:00
Yasuo Ohgaki
7baa36c885 Fix typo 2002-02-10 02:27:09 +00:00
Yasuo Ohgaki
ccc8755196 Remove unused line
# I forgot to delete this line
2002-02-06 10:03:40 +00:00
Yasuo Ohgaki
eba550de9d Fixed crash with mb_output_handler()
When mb_output_hanlder is applied muiltiple times, PHP does not output.
This should be fixed also.
2002-02-06 09:51:39 +00:00
Yasuo Ohgaki
23258ef145 Remove TSRMLS_FETCH() does not need 2002-02-04 11:55:12 +00:00
Rui Hirokawa
c79f749ff8 @Added multi-byte enabled regex functions. (Rui) 2002-01-11 13:21:09 +00:00
Egon Schmid
ab32202968 Fixed some protos. 2002-01-07 06:58:01 +00:00
Rui Hirokawa
32c1b0fd2e @added mb_get_info() to get internal settings of mbstring. 2002-01-07 02:40:54 +00:00
Rui Hirokawa
e72d606c36 added code to remove overloaded function in RSHUTDOWN. 2001-12-26 15:21:13 +00:00
Rui Hirokawa
8488a5a475 @added function overload in mbstring to add multibyte support for string and mail functions. 2001-12-23 15:32:08 +00:00
Rui Hirokawa
1524fa7287 output encoding translation turn off in mb_output_handler() when non-text (binary) data was sent.(Patched by Kanemoto.) 2001-12-17 15:30:08 +00:00
Yasuo Ohgaki
ff219f1f21 Fix compile error 2001-12-17 01:03:52 +00:00
Rui Hirokawa
26e30dc606 added an option mbstring.func_overload to overload some function by multibyte enabled version of function in mbstring. 2001-12-16 22:58:24 +00:00
Sebastian Bergmann
38933514e1 Update headers. 2001-12-11 15:32:16 +00:00
Rui Hirokawa
da8b28cf1c fixed a bug in http input processing patched by Yasuo Ohgaki. 2001-11-08 22:23:04 +00:00
Stig Bakken
689252082c * zend_module_entry change: apino, debug and zts are moved first,
see README.EXTENSIONS file for upgrade help.
@Introduced extension version numbers (Stig)
2001-10-11 23:33:59 +00:00
Jeroen van Wolffelaar
6cfba2a3ea 2nd phase in back-substitution those macro's
I've got pretty much everything now...
2001-09-25 22:49:04 +00:00
Jeroen van Wolffelaar
c033288573 Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know. 2001-09-25 21:58:48 +00:00
Daniel Beulshausen
0a6878cc02 accomodate SAPI_API changes 2001-08-15 18:11:40 +00:00
Zeev Suraski
9be8c97967 Some more TSRMLS_FETCH work 2001-07-31 05:56:26 +00:00
Zeev Suraski
d76cf1da18 More TSRMLS_FETCH work 2001-07-31 04:53:54 +00:00
Zeev Suraski
797a079a95 More TSRMLS_FETCH work, and a bit of cleanup 2001-07-30 06:18:13 +00:00
Zeev Suraski
b0224d51da Zend compatibility patch 2001-07-30 05:36:18 +00:00
Rui Hirokawa
a787dc2c4d changed for input encoding conversion in win32. 2001-07-29 22:15:41 +00:00
Zeev Suraski
d87cc976e1 Redesigned thread safety mechanism - nua nua 2001-07-28 11:36:37 +00:00
Zeev Suraski
fe6f8712a4 - Get rid of ELS_*(), and use TSRMLS_*() instead.
- Move to the new ts_allocate_id() API
This patch is *bound* to break some files, as I must have had typos somewhere.
If you use any uncommon extension, please try to build it...
2001-07-27 10:16:41 +00:00
Thies C. Arntzen
0453eff2b8 fix include 2001-07-20 19:37:19 +00:00
Rui Hirokawa
7dcb3cdfbd fixed argument number in mb_send_mail(). 2001-07-06 13:21:47 +00:00
Rui Hirokawa
659282bfbc fixed argument number in mb_send_mail(). 2001-07-06 13:19:36 +00:00
Daniel Beulshausen
669a6d6cf2 should build under windows as well 2001-06-11 15:31:58 +00:00
Rui Hirokawa
2be3c40b31 added charset parameter to output of mb_output_handler(). 2001-06-07 15:11:11 +00:00
Rui Hirokawa
491d00e46d two bug fixed: return value of mb_strimwidth() was invalid and separator parameter of mb_parse_str wasn't worked. 2001-06-05 14:25:23 +00:00
Rui Hirokawa
73aee8095f a bug fixed about memory reallocation and added extra parameter support to mb_send_mail(). 2001-06-03 01:14:45 +00:00
Stig Bakken
1beda9ee1e * include "config.h" if HAVE_CONFIG_H is defined (for standalone dso build) 2001-05-24 10:07:29 +00:00
Rui Hirokawa
45a2e761e7 fixed bug of mb_substitute_character() and mb_substr() in mbstring. 2001-05-10 13:12:03 +00:00
Rui Hirokawa
223eca31fb remaked mb_gpc_handler as mb_parse_str() in mbstring. 2001-05-09 11:18:11 +00:00
Rui Hirokawa
0a452b2ff2 added mb_language to ext/mbstring. 2001-05-08 14:33:20 +00:00
Egon Schmid
78ee5d56b3 Fixed some protos. 2001-05-06 22:25:14 +00:00
Rui Hirokawa
a09844a981 fixed divided by zero exception and lack of multidimentional array support in mbstring. 2001-05-06 22:06:10 +00:00
Rui Hirokawa
b0d91b12f8 fixed a compilation problem without --enable-mbstr-enc-trans. 2001-05-06 02:44:12 +00:00
Rui Hirokawa
c0624c769b fixed a memory leak in ext/mbstring. 2001-05-04 10:42:54 +00:00
Rui Hirokawa
b388986f57 deleted some function aliases.
@- Added Japanese multibyte string functions support. (Rui)
2001-05-03 00:44:26 +00:00
Rui Hirokawa
953c181026 clear http input encoding detection result in RSHUTDOWN. 2001-05-02 13:24:26 +00:00
Rui Hirokawa
f34bad2d4f modified some function name in ext/mbstring based on naming convension and mbstr_http_input() implemented. 2001-05-01 23:44:20 +00:00
Rui Hirokawa
f2731cb91a modified some function name in mbstring based on php's naming convension. 2001-05-01 09:20:51 +00:00
Rui Hirokawa
4cafbdc67f simplified some function's name in ext/mbstring. 2001-05-01 05:21:29 +00:00
Rui Hirokawa
09197a4531 renamed jstring to mbstring. 2001-05-01 01:52:55 +00:00