Commit Graph

680 Commits

Author SHA1 Message Date
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Hannes Magnusson
bc3e6d743c Fix typo (TAKAGI Masahiro) 2007-12-26 21:01:15 +00:00
Jani Taskinen
113ab1bc79 fix bug number 2007-11-16 12:29:29 +00:00
Jani Taskinen
bf84a7a9a9 - Fixed bug #31911 (mb_ereg*_replace() crashes when replacement string
is invalid PHP expression and 'e' option is used)
2007-11-16 12:26:05 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Rui Hirokawa
9fb312447e added support "entity" as substitute_character settin accoding to bug #39404 2007-09-24 11:50:54 +00:00
Rui Hirokawa
1dcec80d7b fixed bug #42502 va_* cannot detect. 2007-09-18 21:35:13 +00:00
Rui Hirokawa
2b41d574bb fixed bug #29955 invalid case conversion in iso-8859-9. 2007-09-04 14:13:44 +00:00
Rui Hirokawa
cec32074d7 added negative offset support in mbfl_strrpos (fixed #42085) 2007-08-19 01:57:53 +00:00
Antony Dovgal
24c766b902 fix typo
it would be much better if Gentoo people send us this patch long ago instead of using their private patches.
2007-07-31 12:23:42 +00:00
Antony Dovgal
d7ab2da30b there is no such file 2007-07-16 19:07:22 +00:00
Seiji Masugata
498c2e08f1 Synced mail function in mb_send_mail function(Escape mail.force_extra_parameters value). 2007-07-12 15:28:37 +00:00
Johannes Schlüter
c91907a515 - Always enable mail() function 2007-07-11 17:39:04 +00:00
Seiji Masugata
f8c62e9d07 Sync with mail function in mb_send_mail function(problem MOPB-33-2007:PHP and MOPB-34-2007:PHP). 2007-04-04 15:23:09 +00:00
Marcus Boerger
d826cadb63 - Add missing return value check 2007-03-06 01:21:36 +00:00
Marcus Boerger
269baad27d - Revert back to sprintf (we could define snprintf for windows but we don't) 2007-03-06 00:55:46 +00:00
Marcus Boerger
20a40063c5 - avoid sprintf 2007-02-24 16:25:58 +00:00
Frank M. Kromann
16ccbf0c0c MFB: Fix win32 build 2007-02-04 00:23:32 +00:00
Antony Dovgal
521a03c098 fix folding and ws 2007-01-12 12:06:33 +00:00
Antony Dovgal
2157607928 avoid changing original zval 2007-01-11 22:23:06 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Seiji Masugata
eb81b301a6 Initial commit(Synced PHP_5_2 Branch.). 2006-12-21 17:44:40 +00:00
Seiji Masugata
0d9e23c38b Synced PHP_5_2 Branch. 2006-12-21 17:37:53 +00:00
Frank M. Kromann
af741730f4 Fix win32 build 2006-11-04 17:25:37 +00:00
Ilia Alshanetsky
fab0dd3b66 MFB: Fixed bug #39361 (Removed warning on empty haystack inside mb_strstr()). 2006-11-03 19:56:07 +00:00
Antony Dovgal
08d9facf51 more fixed problems 2006-10-11 11:52:41 +00:00
Antony Dovgal
77bfbfc880 fix segfault/leak, add test 2006-10-11 11:09:15 +00:00
Hannes Magnusson
176b72284c Error message clean up
(patch by Matt W (php_lists -AT- realpain.com))
2006-10-08 13:34:24 +00:00
Rui Hirokawa
7d47f629e4 fixed --disable-mbregex to disable multibe-regex. 2006-10-02 23:27:43 +00:00
Rui Hirokawa
adbab589aa fixed bug #37103: libmbfl headers was not installed correctly. 2006-10-02 15:32:48 +00:00
Nuno Lopes
07b26e4e5f MFB (int->long) 2006-09-05 12:32:13 +00:00
Seiji Masugata
cf90bc9e1c added returned value in mb_get_info( ). 2006-08-24 16:51:00 +00:00
Seiji Masugata
317bedda3f fix tests. 2006-07-29 17:09:59 +00:00
Seiji Masugata
df84f5aa45 added option parameter mb_strrpos( ). 2006-07-17 04:44:06 +00:00
Hannes Magnusson
e18bb1ce3d Fix/add SKIPIF 2006-06-27 00:09:23 +00:00
Seiji Masugata
85f42ffe65 changed GINIT definition. 2006-06-15 15:44:05 +00:00
Dmitry Stogov
943960c324 Added automatic module globals management 2006-06-13 13:12:20 +00:00
Seiji Masugata
b56ab30155 fixed all mbstring setting information doesn't return in mb_get_info( ). 2006-05-11 14:37:42 +00:00
foobar
8bd7796184 Fixed bug #37103 (libmbfl headers not installed) 2006-04-17 22:13:39 +00:00
foobar
6af3218f81 more cleanup (lingering ini settings which do not exist anymore, etc.) 2006-04-10 15:09:15 +00:00
Seiji Masugata
e241504917 fixed commnet typo, and duplicate logic. 2006-04-04 15:14:28 +00:00
Seiji Masugata
d8271224ad added mb_stristr( ), mb_strrichr( ). 2006-04-03 15:32:43 +00:00
Seiji Masugata
cbd37caefc added mb_stripos( ), mb_strripos( ). 2006-03-30 15:43:54 +00:00
Seiji Masugata
e42f182be3 added mb_strrchr( ). 2006-03-29 15:47:07 +00:00
Seiji Masugata
b5cd8f02d8 added mb_strstr( ). 2006-03-28 16:05:16 +00:00
Seiji Masugata
d28ec107ac added mb_list_mime_names( ). 2006-03-27 15:20:02 +00:00
Seiji Masugata
c8de944309 fixed compiler warning. 2006-03-26 02:23:25 +00:00
Seiji Masugata
5fdede19a4 added mb_list_encodings_alias_names( ). 2006-03-23 20:14:41 +00:00
Rui Hirokawa
0fb7618d6e added mb_check_encoding() to detect possible invalid encoding attack. 2006-03-21 07:47:43 +00:00
Rui Hirokawa
52a935ffd2 changed a option name based on PHP naming convension. 2006-03-21 02:19:59 +00:00
Rui Hirokawa
2832532138 MF PHP_5_1 2006-03-21 02:11:55 +00:00
Seiji Masugata
c9dfb792c5 added option parameter mb_list_encodings( ). 2006-03-16 15:21:12 +00:00
Seiji Masugata
8c8ac4802b fixed compiler warning. 2006-03-13 15:04:03 +00:00
Rui Hirokawa
3b5a116511 fixed a possible null injection caused by missuse of mbstring.substitute_character. 2006-03-12 07:54:03 +00:00
Seiji Masugata
a7f7a7f389 fixed different value was returned in mb_get_info. 2006-03-10 16:36:52 +00:00
Pierre Joye
303bfea78f - remove register_globals support (aka "Kill the f***ing thing" :) 2006-03-07 00:20:54 +00:00
Yasuo Ohgaki
4cf8787936 remove obsolete check 2006-03-03 20:41:52 +00:00
Yasuo Ohgaki
52fe090ef0 add safe_mode num of parameter check 2006-03-02 00:34:28 +00:00
Marcus Boerger
bb94742080 - Disable mbregex support until someone finds a way to reenable the
required engine stuff
- Fix build
2006-02-23 20:15:36 +00:00
Rui Hirokawa
0453023c3e added additional info about mail encoding to mb_get_info(). (made by Jokagi) 2006-02-11 02:25:29 +00:00
Antony Dovgal
eadb1127fb MF51: initialize to_r
remove needless semicolon
2006-02-06 10:41:42 +00:00
Antony Dovgal
cc0fae3702 fix tests 2006-01-19 20:52:45 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Rui Hirokawa
08a9c6f235 added Turkish language definition (related to bug #29955) 2005-12-29 23:52:59 +00:00
Rui Hirokawa
8864bf27e2 fixed #35711, added mbstring.strict_detection to detect the encoding striktly. 2005-12-25 15:21:54 +00:00
Rui Hirokawa
3eab2fa294 fixed #35711 ISO-8859 charset not correctly detected. 2005-12-24 01:20:26 +00:00
Rui Hirokawa
bcf3a3311d added turkish language support for libmbfl. 2005-12-23 13:53:30 +00:00
Rui Hirokawa
7c20dce548 fixed #29955 mb_strtoupper() / lower() broken with Turkish encoding.. 2005-12-23 13:50:29 +00:00
Rui Hirokawa
283f4759f6 fixed #28899 mb_substr() and substr() work differently when mbstring.func_overload is enabled. 2005-12-23 11:14:54 +00:00
Antony Dovgal
632e571642 MFB: add missing skipif conditions, fix existing ones
add one missing test
2005-12-21 11:43:24 +00:00
Antony Dovgal
e17430e145 MF51 Ilia's last fix
fix the test appropriately
2005-12-16 14:50:32 +00:00
foobar
f53c892557 fix build 2005-12-06 02:07:17 +00:00
foobar
acf2ab661a nuke php3 legacy 2005-12-06 01:26:39 +00:00
Rui Hirokawa
4c5d74a058 fixed 5307 unexpected header can be injected to mb_send_mail(). 2005-11-23 15:16:39 +00:00
Rui Hirokawa
1c23277a91 fixed #35253 length of the encoded string vilolates a RFC. 2005-11-19 06:32:20 +00:00
Rui Hirokawa
02e44183bb fixed garbled multibyte characters. 2005-11-05 04:47:29 +00:00
Antony Dovgal
0fb9af4eac fix #34977 (Compile failure on MacOSX due to use of varargs.h) 2005-10-26 13:49:19 +00:00
Antony Dovgal
4dc417469d fix compile warnings again 2005-10-12 14:43:55 +00:00
Ilia Alshanetsky
ac43306e72 MFB: fixed compiler warnings 2005-09-21 13:23:12 +00:00
Ilia Alshanetsky
db186add45 Fixed bug #34565 (mb_send_mail does not fetch mail.force_extra_parameters) 2005-09-21 13:15:20 +00:00
foobar
4b0c39887c - Fixed bug #34015
# Whatever this test was supposed to try to test...sheesh..
2005-08-05 20:38:50 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
foobar
d12196e575 Fix VPATH build 2005-05-29 23:15:16 +00:00
foobar
626253940e - Added PHP_INSTALL_HEADERS() macro
- Fixed several VPATH build issues
- Changed all awk calls to use $AWK
- Changed all mkdir calls to use "$php_shtool mkdir"
2005-05-07 02:51:53 +00:00
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