Commit Graph

341 Commits

Author SHA1 Message Date
Moriyoshi Koizumi
aa40a02de8 64bit long fix 2003-03-04 17:18:40 +00:00
Wez Furlong
20d886da50 Credits for iconv 2003-02-05 08:15:07 +00:00
Ilia Alshanetsky
a7b91019e9 Removed pointless memory allocation checks. 2003-01-18 19:49:28 +00:00
Moriyoshi Koizumi
3ae7d13bc9 Appended my name to the list of authors 2003-01-14 19:26:00 +00:00
Moriyoshi Koizumi
ac66d4481e Test update for new feature 2003-01-14 19:25:10 +00:00
Moriyoshi Koizumi
6a1d69d4ba Added missing cast operators 2003-01-10 04:32:25 +00:00
Moriyoshi Koizumi
4c2d6cfea8 Moved php_quot_print_decode() to quot_print.c so that it can be used
outside the iconv module
2003-01-06 15:47:25 +00:00
Moriyoshi Koizumi
d0570815af Added more RFC2047-compliancy check in iconv_mime_decode() 2003-01-06 15:40:22 +00:00
Moriyoshi Koizumi
6f44489b68 Fixed iconv_mime_decode() so that it comforms to RFC2231 2003-01-06 15:35:42 +00:00
Moriyoshi Koizumi
0d0127fbfb Fixed cut'n'paste failure 2003-01-04 13:52:54 +00:00
Moriyoshi Koizumi
b13a6276e1 Added test case for iconv_mime_encode() 2003-01-04 13:39:59 +00:00
Moriyoshi Koizumi
cd2b0fe706 Added test case for iconv_mime_decode() 2003-01-03 20:33:53 +00:00
Moriyoshi Koizumi
07dcab60f0 Added test cases for iconv_strpos() and iconv_strrpos() 2003-01-03 20:02:23 +00:00
Moriyoshi Koizumi
006b455c6a Fixed an iconv_strrpos() bug that the function doesn't return accurate
position of last occurrence
2003-01-03 20:01:13 +00:00
Moriyoshi Koizumi
3149fc7c40 Added offset validity check for iconv_strpos() 2003-01-03 14:29:49 +00:00
Moriyoshi Koizumi
f76df0ba1b Added test cases for iconv_strlen() and iconv_substr() 2003-01-03 05:48:51 +00:00
Moriyoshi Koizumi
a3330b5ab3 Fixed iconv_mime_decode() so it would give more awareness to stateful codesets 2003-01-03 05:38:50 +00:00
Moriyoshi Koizumi
e1dd919204 Fixed infinite loop of iconv_mime_encode() in case the specified line length is too short to contain a proper mime-encoded string 2003-01-03 05:34:05 +00:00
Moriyoshi Koizumi
c703ad78d0 Give mo' shift-sequence awareness to iconv_mime_encode 2003-01-03 05:32:13 +00:00
Moriyoshi Koizumi
354a42fd5f More shift-sequence awareness for iconv_substr() 2003-01-03 05:28:25 +00:00
Moriyoshi Koizumi
1f8cee7666 Added missing casting operators 2003-01-03 05:26:44 +00:00
Moriyoshi Koizumi
bf48e7bc9f MFB 2003-01-03 05:16:12 +00:00
Moriyoshi Koizumi
6144a7288e MFB: fixed shift-out sequence unawareness issue 2003-01-03 05:14:34 +00:00
Moriyoshi Koizumi
c4e8b2baab Added various functions that relies on the iconv facility:
iconv_strlen(), iconv_substr(), iconv_strpos(), iconv_strrpos(),
iconv_mime_encode(), iconv_mime_decode()

# hope this be a new year gift for you. Happy new year!
2002-12-31 19:13:16 +00:00
Sebastian Bergmann
b506f5c8f8 Bump year. 2002-12-31 16:08:15 +00:00
Moriyoshi Koizumi
e7f1bbf0f2 Iconv extension is no longer experimental 2002-12-02 21:29:06 +00:00
Moriyoshi Koizumi
5ca953b10f Fixed a problem that ICONV_IMPL doesn't give a correct value in win32 build. 2002-11-14 23:07:53 +00:00
Moriyoshi Koizumi
8e1f89bc6f Use proper types 2002-11-08 18:40:54 +00:00
Moriyoshi Koizumi
5b62dc07e1 Fixed typo 2002-11-08 18:06:31 +00:00
Moriyoshi Koizumi
5c7b062d6f Cosmetics 2002-11-06 16:58:08 +00:00
Moriyoshi Koizumi
c22c2e4772 Added a test case to check the behaviour on failure 2002-11-06 16:57:53 +00:00
Moriyoshi Koizumi
0228d5bdcb Clean up 2002-11-06 16:54:18 +00:00
Moriyoshi Koizumi
cac70c5523 Stricter SKIPIF conditions 2002-11-06 16:37:10 +00:00
Moriyoshi Koizumi
49f15ab314 Fixed segfaults in case the specified encoding is not acceptable to iconv. 2002-11-06 16:29:16 +00:00
Moriyoshi Koizumi
a00abb6850 Fixed library capability detection behaviour.
# Whew! I've fixed all the known problems.
# And should I become a maintainer of this module?
2002-10-31 20:23:53 +00:00
Moriyoshi Koizumi
b3e3420120 Prevent unnecessary notices on success 2002-10-30 19:21:56 +00:00
Marcus Boerger
6663f2cd0a -do not dl() load
-magic_quotes_runtime
2002-10-29 21:51:32 +00:00
Moriyoshi Koizumi
21e8efbb87 It's better to know the version is "unknown", rather than "" 2002-10-29 19:09:27 +00:00
Moriyoshi Koizumi
630a4ff924 Removed dl() stuff 2002-10-29 16:28:12 +00:00
Moriyoshi Koizumi
e8cf2253fb Improved library identification 2002-10-29 16:18:12 +00:00
Marcus Boerger
51ed05cc3d -php_error => php_error_docref 2002-10-29 11:56:46 +00:00
Ilia Alshanetsky
4b6640be45 Fixed compile warning. 2002-10-29 01:28:21 +00:00
Marcus Boerger
6829a7a5b1 fix this tests
-they did not dl load module in test....
-disable E_NOTICE
2002-10-28 17:15:21 +00:00
Moriyoshi Koizumi
e13c936bd3 Clean-ups 2002-10-26 08:52:17 +00:00
Moriyoshi Koizumi
905d95fa03 Renamed the test 2002-10-26 08:50:05 +00:00
Moriyoshi Koizumi
d883bf51df Added a test case for ob_iconv_handler() 2002-10-26 08:45:49 +00:00
Moriyoshi Koizumi
6537b7b21a Fixed typo... what did this "#" sign mean? 2002-10-26 07:49:46 +00:00
Marcus Boerger
63a9d4fa2e fix ZTS build 2002-10-25 11:50:35 +00:00
Moriyoshi Koizumi
34aa59baf9 Added two new rows to MINFO that describes iconv library info. 2002-10-25 08:51:59 +00:00
Moriyoshi Koizumi
d953754d74 Let them say why they are skipped 2002-10-21 10:35:02 +00:00
foobar
9618e4e854 This test should not print out the error (which is correct). 2002-10-14 23:09:48 +00:00
Moriyoshi Koizumi
f5b53c17ab Improved the test cases so that they will be skipped rather than failed, if libiconv is not used. 2002-10-11 18:07:47 +00:00
Moriyoshi Koizumi
764df05768 *** empty log message *** 2002-10-11 17:48:39 +00:00
Moriyoshi Koizumi
adbdd71dc8 Fixed possible compile-time failure 2002-10-11 17:01:34 +00:00
foobar
0654763cc6 ws fix 2002-10-11 15:25:36 +00:00
foobar
edc755aa54 fix typo. 2002-10-11 13:43:24 +00:00
Derick Rethans
03b3478754 - Style polizei :) 2002-10-11 08:15:05 +00:00
Moriyoshi Koizumi
d2f99493a0 Reformatted.
# Still bad?
2002-10-11 08:01:18 +00:00
Moriyoshi Koizumi
1a867685a0 Added ICONV_IMPL and ICONV_VERSION constants.
@- Added ICONV_IMPL and ICONV_VERSION constants to iconv extension to
@  indicate which iconv implementation is used. (Moriyoshi)
2002-10-11 07:50:47 +00:00
Moriyoshi Koizumi
fe79eaf08f Added set_time_limit(); We should stop it in some time. See the comment in the script for detail. 2002-10-11 07:38:18 +00:00
Melvyn Sopacua
641f346cf6 Another small test for iconv transliteration, from GNU libiconv testkit 2002-10-10 19:06:00 +00:00
Melvyn Sopacua
e4e53bb4b3 It used to be 003 2002-10-10 16:49:33 +00:00
Melvyn Sopacua
418908f994 Test for standard transliteration.
Original check-translit from GNU libiconv-1.8
2002-10-09 23:16:39 +00:00
Derick Rethans
c10b169670 - Use a more descriptive filename 2002-10-09 20:30:30 +00:00
Moriyoshi Koizumi
cfcfd094e9 Renamed the test case files in order to avoid confusion 2002-10-09 20:19:13 +00:00
Rui Hirokawa
382a92cc5a added @ to suppress a notice. 2002-10-09 12:54:52 +00:00
Marcus Boerger
9be7455fe0 Synch with README.TESTING 2002-09-28 13:59:17 +00:00
Yasuo Ohgaki
69cc47358e Fixed errno hanlding. Patch by Moriyoshi Koizumi <readjust@deneb.freemail.ne.jp> 2002-09-07 21:08:47 +00:00
Yasuo Ohgaki
38ef35e5b0 Fixed undefiend referece at build time.
Fixed transilit test script.
Make fixes available on Windows.
Patch by Yoshimori Koizumi<readjust@deneb.freemail.ne.jp>
2002-09-04 05:17:16 +00:00
Yasuo Ohgaki
4b7ad8104e Forgot this one. Fix build 2002-08-08 01:50:23 +00:00
Yasuo Ohgaki
19df86f388 Fix build 2002-08-08 01:46:07 +00:00
Marko Karppinen
7498f56852 Updated proto to match the function (fix compile bustage on osx) 2002-08-06 19:39:12 +00:00
Marcus Boerger
6c094c3e07 ws fix 2002-08-05 18:42:41 +00:00
Marcus Boerger
dd8ec2dc0a -fix one warning
-send Content-Type Header with charset
2002-08-05 18:26:06 +00:00
Derick Rethans
7409f1cfd4 Unify error messages 2002-07-19 07:18:16 +00:00
Yasuo Ohgaki
52f1ae5ac5 Move comment.
Remove a skip condition does not required.
2002-07-14 01:12:23 +00:00
Yasuo Ohgaki
3639807a81 Fix tests. Moriyoshi Koizumi <readjust@deneb.freemail.ne.jp> 2002-07-14 00:08:22 +00:00
foobar
7892e41645 Kill compiler warning 2002-07-13 08:42:38 +00:00
foobar
7e8aa50fe0 Fix SKIPs for these tests. 2002-07-13 08:08:36 +00:00
Yasuo Ohgaki
4994b58c0b Fixed tests. Patch by Yoshimori Koizumi <readjust@deneb.freemail.ne.jp> 2002-07-13 01:05:13 +00:00
Yasuo Ohgaki
f3f3f76209 Added traslit test files. Moriyoshi Koizumi <readjust@deneb.freemail.ne.jp> 2002-07-11 03:44:12 +00:00
Yasuo Ohgaki
2e77bb3072 Fix #16069. Patch by Moriyoshi Koizumi <readjust@deneb.freemail.ne.jp>
@ Made iconv() work well with libiconv or libgconv. (Moriyoshi, Yasuo)
2002-07-11 03:37:28 +00:00
Derick Rethans
4330c0d9f3 - Fix for bug #18039 2002-06-28 07:12:32 +00:00
foobar
817750b088 ws fix 2002-04-28 01:37:54 +00:00
Yasuo Ohgaki
3b75b606d8 Remove warnings 2002-04-19 07:33:51 +00:00
Wez Furlong
8dd62722c4 fix warning 2002-04-10 23:51:48 +00:00
foobar
d533371760 - Fixed bug #16165 again. We check libc for iconv functions only if
no path is given for --with-iconv.
# I hope this is the last time.
2002-03-21 20:22:05 +00:00
Sascha Schumann
350de12bc2 Expand the variables in PHP_EXPAND_BUILD_VARS.
Make HAVE_ICONV/HAVE_LIBICONV available through the more
fine-grained approach using a single include file per
directive.  This will significantly reduce the price of
full dependencies for developers, because basically each
file today includes php.h which includes php_config.h.

If PHP_ATOM_INC is defined, these include files can be used.

For all PHP_DEFINEs, empty files are created upon configure start.
2002-03-20 13:24:59 +00:00
foobar
2bdd6f522e - Not needed anymore. 2002-03-19 10:49:26 +00:00
foobar
19e82a49f9 - Made one test/setup macro for iconv and fixed it to check
for libc first.
2002-03-17 21:09:21 +00:00
Stig Bakken
9aa5afacee * yet another iconv config fix, should be able to handle most or all
configurations now (giconv/iconv, static libs only, iconv in libc etc.)
2002-03-15 10:06:37 +00:00
Stig Bakken
612f2b87d2 * fix compile problem on platforms without iconv in libc 2002-03-12 15:15:27 +00:00
Markus Fischer
d5b1a4f811 - Slightly unify error/warning messages.
- Switch to zend_parse_parameters().
- Fix whitespaces.
2002-03-11 22:23:05 +00:00
Markus Fischer
bbe42d7673 - Fix crash in iconv_set_encoding(). [Closes #15799] 2002-03-10 09:22:31 +00:00
Derick Rethans
79330dc592 - Fix build with ZTS 2002-03-06 11:20:11 +00:00
Dan Kalowsky
a3010a9b8f Fix for Bug 14423. Enables FreeBSD to use iconv functionality. 2002-03-04 23:28:17 +00:00
Yasuo Ohgaki
9981d06217 Improved iconv usage with libc's iconv. No overrun. More efficient memory
allocation.
Hopefully, all bugs reported for iconv will be resolved when users are using
libc iconv.
@Improved iconv with libc's iconv
2002-03-02 07:04:59 +00:00
Yasuo Ohgaki
cdedece154 Add more tests for iconv 2002-03-02 07:00:40 +00:00
Yasuo Ohgaki
98861da887 Fix iconv. Patch by (itai@siftology.com) 2002-02-28 03:09:01 +00:00
Derick Rethans
8b7b813ebc - Fix for bug #15628 (for real now :) 2002-02-20 15:53:25 +00:00
Derick Rethans
cddd25661f - Fix for bug #15638 2002-02-20 07:24:53 +00:00
Yasuo Ohgaki
665d38629b Added UCS4 test 2002-02-03 02:18:30 +00:00
Yasuo Ohgaki
53d349a3a6 Fixed bug with encodings that has 0 byte in strings. Patch by <itai@siftology.com>
Fixed possible problem with encodings that a char can be larger than
4 bytes.
2002-02-01 08:32:04 +00:00
Rui Hirokawa
5f8a57efec added mbstring to maintainers list. 2001-12-13 14:31:16 +00:00
Sebastian Bergmann
38933514e1 Update headers. 2001-12-11 15:32:16 +00:00
foobar
f1397d5339 Unified the configure messages. 2001-11-30 19:00:13 +00:00
Frank M. Kromann
95d99c9ba9 Fixing debug build 2001-11-14 17:56:26 +00:00
foobar
4fdf886f5c Fixed bug: #12443 2001-10-22 02:28:00 +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
Stig Bakken
3c98893a01 * make test pass 2001-10-11 00:41:15 +00:00
Derick Rethans
78747bd2df - Don't wrap lines... this is annoying while coding. 2001-09-09 13:29:31 +00:00
foobar
e4df7dc7bf if test -f /usr/local/lib/libexample.s?; then <-- no workie
if test -f /usr/local/lib/libexample.so; then   <-- workie
#
# You can all point at me and laugh now..  :(
#
2001-09-07 00:24:06 +00:00
Wez Furlong
2121989d4d This test needed a newline after an echo.
# However, the test still fails on my system
2001-08-25 09:23:10 +00:00
foobar
d7d89bcf68 ws 2001-08-19 00:05:06 +00:00
foobar
85255d9ee5 HAVE_LIBICONV was never defined. 2001-08-17 06:54:55 +00:00
Zeev Suraski
f6f6c4d7e6 Whitespace 2001-08-11 16:39:07 +00:00
Zeev Suraski
d87cc976e1 Redesigned thread safety mechanism - nua nua 2001-07-28 11:36:37 +00:00
Sascha Schumann
b79aa095f5 Fix last two instances of using ext/standard/php_output.h 2001-07-20 19:42:26 +00:00
foobar
0b7bf00cfc Simplify this and fix bug: #11654 2001-06-26 11:35:34 +00:00
Rasmus Lerdorf
81e2cf03ac Fix folding and clean up some extensions 2001-06-06 13:06:12 +00:00
Rasmus Lerdorf
25c3a3a39d vim-6 does folding - clean up a bunch of missing folding tags plus
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
2001-06-05 13:12:10 +00:00
foobar
67f2331d17 Per Sterling's request I'm committing this.
This works fine for me now. (I'm using external iconv libs)
2001-05-27 19:43:16 +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
foobar
d299236d7b Fixed bug: #10742 2001-05-21 16:18:51 +00:00
Sterling Hughes
af58697165 fix compile bug. 2001-05-06 21:38:58 +00:00
Rui Hirokawa
93e7521639 added status parameter to output handler in ext/iconv. 2001-05-04 03:55:48 +00:00
Andi Gutmans
65cccf02ba - WS 2001-04-19 04:02:03 +00:00
Wez Furlong
3bd5696a65 Fixed leak in php_iconv_string. Also returns FAILURE on failure,
rather than -1
2001-03-29 09:37:09 +00:00
foobar
8a26918ed1 Renamed the AC_ prefixed macros defined in acinclude.m4 to PHP_* prefixes.
# Heads up people! I tested this before committing but you never know..
2001-03-27 20:35:04 +00:00
Daniel Beulshausen
0688feeba4 fix win32 build 2001-03-15 20:45:49 +00:00
Rui Hirokawa
f3c9c8dd07 initialized some strings in global variable structure. 2001-03-10 02:03:26 +00:00
Rui Hirokawa
f901783074 ob_iconv_handler changed to use for text data only. 2001-02-26 15:41:38 +00:00
Andi Gutmans
eb6ba01d1c - Fix copyright notices with 2001 2001-02-26 06:11:02 +00:00
Daniel Beulshausen
cef5e966fd define HAVE_LIBICONV 2001-02-20 15:19:38 +00:00
Daniel Beulshausen
6f1ca9de3e make iconv compile under win32 using libiconv
# http://clisp.cons.org/~haible/packages-libiconv.html
2001-01-31 16:57:00 +00:00
Rui Hirokawa
d5550b4706 added: EXPERIMENTAL 2001-01-20 02:59:59 +00:00
Rui Hirokawa
c61a557808 added iconv_get_encoding and supported initialization from php.ini 2001-01-14 07:40:16 +00:00
Egon Schmid
8d5d20500b Sorry, two lines are enough. 2001-01-09 15:53:09 +00:00
Egon Schmid
6aef38f590 Fixed protos. 2001-01-09 15:48:15 +00:00
Rui Hirokawa
0acff20f38 added test code to iconv. 2001-01-09 15:39:25 +00:00
Rui Hirokawa
4e035d035a move iconv related functions to separate iconv extension. 2001-01-09 15:22:45 +00:00