Commit Graph

148 Commits

Author SHA1 Message Date
Hannes Magnusson
460360ae53 MFB:
- Fixed incorrect function names on FreeBSD where inet_pton() was named
        __inet_pton() and inet_ntop() was named __inet_ntop()
- Fixed bug #39685 (iconv() - undefined function)
- Fixed bug #38852 (XML-RPC Breaks iconv)
2006-12-20 10:38:24 +00:00
Ilia Alshanetsky
0252643b32 MFB: Fixed bug #37773 (iconv_substr() gives "Unknown error" when string
length = 1").
2006-11-15 18:35:18 +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
Antony Dovgal
276d063355 improve spelling (fixes #38780) 2006-09-12 17:26:24 +00:00
Michael Wallner
83eac101c3 - fix crash when unicode.sematics are enabled and unicode.output_encoding doesn't match iconv.internal_encoding 2006-09-09 12:10:28 +00:00
Michael Wallner
f8ff78deab -fix warnings 2006-09-07 14:21:02 +00:00
Michael Wallner
60274e3944 - use ucnv_compareNames
- check output_context->op for PHP_OUTPUT_HANDLER_CLEAN instead of php_output_get_status()
2006-09-07 14:20:16 +00:00
Michael Wallner
07f81e7fe4 - upgrade ob_iconv_handler 2006-09-06 20:49:03 +00:00
Antony Dovgal
bb89a868c4 do not search for empty strings with strpos() and strrpos() 2006-09-06 12:07:27 +00:00
Antony Dovgal
32ff2a16fe minor changes in iconv_substr() to avoid zval converting 2006-08-31 11:17:37 +00:00
Antony Dovgal
21b0d97a6d fix leak 2006-08-30 16:12:27 +00:00
Hannes Magnusson
587311d07e Added argument info
Fixed protos
Fixed vim folding
2006-06-17 13:00:21 +00:00
Andrei Zmievski
f2ef84a495 Move GINIT definition above re-definition of iconv. Gah. 2006-06-13 15:57:46 +00:00
Dmitry Stogov
943960c324 Added automatic module globals management 2006-06-13 13:12:20 +00:00
Moriyoshi Koizumi
35598a2821 - Remove fprintf() used for debugging 2006-04-27 03:53:01 +00:00
Moriyoshi Koizumi
923978e0ff - Fix bug #37176 (iconv_strpos() fails to find a string) 2006-04-27 00:49:17 +00:00
Derick Rethans
16920d54c7 - Fixed issue with iconv_mime_decode where the "encoding" would only allow
upper case specifiers.
#- See RFC 2047, section 2.
2006-02-24 16:04:55 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Antony Dovgal
1518ba3bf7 fix #35692(iconv_mime_decode() segfault, with libiconv only) 2005-12-15 22:47:27 +00:00
foobar
a208d9a966 - Nuke php3 legacy 2005-12-06 02:28:26 +00:00
Antony Dovgal
0bd9c3d109 use constants instead of their values 2005-10-20 16:50:43 +00:00
Antony Dovgal
492a1e4124 MF51: fix #34757 (iconv_substr() gives "Unknown error" when offset > string length) 2005-10-11 13:59:18 +00:00
Antony Dovgal
fb8258e8b7 fix phpinfo() output for iconv extension
(convert unicode values to string before outputting them)
2005-09-08 11:48:07 +00:00
Andrei Zmievski
264cec8be6 Unicode support. 2005-08-11 23:36:07 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Ilia Alshanetsky
0c6368d44b Fixed bug #33268 (iconv_strlen() works only with a parameter of < 3 in length) 2005-06-08 23:49:38 +00:00
Moriyoshi Koizumi
8f14211e13 - Add sanity check in iconv_mime_encode(). Leaving the third parameter
unspecified would yield bus error.
2005-03-23 23:06:38 +00:00
Derick Rethans
ce022d2723 - Export "php_iconv_string()". 2004-11-23 09:44:54 +00:00
Antony Dovgal
f370d0290f fix compile warning 2004-08-13 14:52:27 +00:00
Moriyoshi Koizumi
f89486a3a0 - Fix possible leaks / segfaults in persistent filter 2004-07-20 18:46:39 +00:00
Moriyoshi Koizumi
967c72865f - Fix a bug in iconv stream filter that prevents pending buckets from being
processed on flush operation (same issue pollita fixed several days ago).
2004-07-19 08:34:18 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Moriyoshi Koizumi
06232e4818 Prevent a character from being wrongly doubled in the buffer. 2004-01-06 14:22:54 +00:00
Moriyoshi Koizumi
3d618a2f00 Just laugh at me :) 2003-12-27 23:07:47 +00:00
Moriyoshi Koizumi
07469af0d9 - Add missing sanity check. 2003-12-27 23:05:23 +00:00
Moriyoshi Koizumi
529dd348b6 - Supply some comments. Hope those help when you have to debug this dead beef.
- Fix iconv_mime_decode() to correctly handle "malformed" headers :)
- Fix iconv_mime_decode() bug, that the result is mangled when
  ICONV_MIME_CONTINUE_ON_ERROR is enabled and the function encounters an
  unconvertable encoded chunk.
2003-12-24 02:36:21 +00:00
Moriyoshi Koizumi
3b7dcf5e65 Those are not structures :-) 2003-12-23 17:10:54 +00:00
Ilia Alshanetsky
cf40d9243d Fixed compiler warnings. 2003-12-23 17:05:43 +00:00
Moriyoshi Koizumi
1b239fc970 - Fix multibyte handling errors in iconv_mime_encode() when quoted-printable
encoding scheme is used.
- Fix segfault that occurs in iconv_mime_encode() when input_charset or
  output_charset parameter is not specified in the associative array.
2003-12-22 01:30:00 +00:00
Moriyoshi Koizumi
dcbc570649 Fix iconv stream filter to properly handle multibyte characters that
span at the alignment of a hunk.
2003-12-08 00:38:00 +00:00
Moriyoshi Koizumi
a682e0a5c6 Add missing iconv_close() call 2003-12-06 11:10:13 +00:00
Moriyoshi Koizumi
f9470dafe0 Add a missing marker 2003-12-05 09:35:21 +00:00
Wez Furlong
1982ae6246 fix zts build 2003-12-05 03:14:54 +00:00
Moriyoshi Koizumi
4f14ee67fb Type-punning is evil. 2003-12-04 23:46:53 +00:00
Moriyoshi Koizumi
6fc73dda11 Add iconv stream filter.
# a quick synopsis:
#
# <?php
#     stream_filter_append(STDIN, 'convert.iconv.UTF-8/ISO-8859-15');
#
#     fpassthru(STDIN);
# ?>
#
2003-12-04 23:31:31 +00:00
Moriyoshi Koizumi
3c02eb1ffe all '_' (underscores) should be replaced by '\x20' (whitespaces)
in encoding.
# should I bump API version?
2003-12-02 07:36:42 +00:00
Moriyoshi Koizumi
ca2aaeee5e Loosen error check. There's no reason to forbid a single '=' occurrence
in an unencoded string.
Fix white space handing. Meaningful spaces have got stripped wrongly
before this patch.
2003-12-01 23:49:20 +00:00
Moriyoshi Koizumi
1b8dd3ba21 Allow iconv_mime_decode_headers() to handle multiple occurence of a header. 2003-12-01 23:25:06 +00:00
Moriyoshi Koizumi
869493d4e6 Add iconv_mime_decode_headers() to parse multiple MIME headers.
A few trivial fixes.
2003-12-01 22:46:45 +00:00
Moriyoshi Koizumi
93e0d690ee More RFC2047 conformance. Add ability to forcefully continue processing
on error.
2003-12-01 21:47:19 +00:00