1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 15:38:49 +02:00
Commit Graph

25 Commits

Author SHA1 Message Date
Nikita Popov ad6738e886 Merge branch 'PHP-7.3' 2018-10-17 12:51:17 +02:00
Nikita Popov 1151554668 Remove the "auto" encoding
"auto" is only meaningful in functions which accept an encoding
*list* and support encoding detection. These functions have
explicit checks for "auto". It cannot be used as a standalone
encoding in any meaningful capacity, so I'm dropping it entirely.
2018-10-17 12:50:24 +02:00
Peter Kokot d3ca28f569 Remove HAVE_STRING_H
The C89 standard and later defines the `<string.h>` header as part of
the standard headers [1] and on current systems it is always present.

Code included also `<strings.h>` header as an alterinative in some
files. This kind of check was relevant on some older systems where the
`<strings.h>` file included definitions for the C89 compliant
`<string.h>`. Today such alternative check is not required anymore. The
`<strings.h>` file is part of the POSIX definition these days.

Also Autoconf suggests doing this and relying on C89 or above [2] and [3].

This patch also cleans few unused `<strings.h>` inclusions in the libmbfl.

[1]: https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2]: http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
[3]: https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
2018-09-18 05:32:08 +02:00
Peter Kokot 6c1ff61a36 Remove HAVE_STDDEF_H
The `<stddef.h>` header file is part of the standard C89 headers [1] and
on current systems there is no need for a manual check if header is
present.

Since PHP requires at least C89 the `HAVE_STDDEF_H` symbol isn't defined
by Autoconf anywhere else anymore [2] and accross the PHP source code
the header is included unconditionally already.

This patch syncs this also for the bundled libmbfl which is maintaned as
a fork in php-src.

Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
2018-09-05 11:51:19 +02:00
Nikita Popov 633a471ba0 Store input and output filters in mbfl encodings
For functions like mb_chr() and mb_ord() just looking up the
input/output filter for the encoding dominates the runtime. This
commit stores the input/output filter for an encoding in the
mbfl encoding structure, so it can be looked up directly, rather
than scanning through filter function lists.
2017-08-04 22:22:58 +02:00
Stanislav Malyshev b7a7b1a624 trailing whitespace removal 2015-01-10 15:07:38 -08:00
Rui Hirokawa ad24758ee9 added alias for *-mobile encodings. 2011-08-31 13:18:44 +00:00
Rui Hirokawa 4122ef275c added iso2022jp-mobile and emoji unsuppoted in unicode 6.0. 2011-08-24 15:28:44 +00:00
Rui Hirokawa dcf0dfb9ab removed SJIS-Mobile#*PUA. 2011-08-20 08:27:57 +00:00
Rui Hirokawa c746cf5dc9 updated libmbfl to 1.3.2 (JISX-0213:2004 support). 2011-08-20 07:24:04 +00:00
Rui Hirokawa 484e6b8fb3 added gb18030 encoding to mbstring/libmbfl.~ 2011-08-14 14:09:11 +00:00
Rui Hirokawa 360d18c479 added UTF-8-Mobile for pictogram support. 2011-08-13 12:44:28 +00:00
Rui Hirokawa 17dc1d2610 updated libmbfl for version 1.3.0. 2011-08-02 02:42:41 +00:00
Moriyoshi Koizumi d9dda48f8a - Update the bundled libmbfl to the latest on upstream. 2010-03-12 04:55:37 +00:00
Jani Taskinen a0f3cf5cc4 MFB: Thanks to the "maintainers" who are too lazy to commit FIRST to HEAD! 2009-04-20 17:06:03 +00:00
Moriyoshi Koizumi 7f5d554cde - MFB (fixes build) 2009-04-16 02:05:00 +00:00
Seiji Masugata 0d9e23c38b Synced PHP_5_2 Branch. 2006-12-21 17:37:53 +00:00
Moriyoshi Koizumi 542901d705 - Add Armenian encoding / NLS (patch by Hayk Chamyan) 2005-03-22 22:22:11 +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
Derick Rethans b3b2192a1e - Added mb_list_encoding() to return an array with all mbstring supported
encodings.
2004-03-08 22:18:05 +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
Ilia Alshanetsky a7f2ec3cdb Fixed compile warnings. HAVE_ defines cannot work without the header that
defines them.
2003-09-17 05:42:57 +00:00
Moriyoshi Koizumi ebcdf6f299 Sync with the original 2003-08-24 20:07:13 +00:00
Rui Hirokawa c8b525859d strcasecmp macro moved to mbfl_compat.h. 2003-08-23 08:26:46 +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