# [PATCH] iconv fix for LP64 platforms

- Thread: https://externals.io/message/2157
- Original archive: https://news-web.php.net/php.internals/2157
- Started by Joe Orton on 2003-06-04T14:08:00+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #2157 — Joe Orton — 2003-06-04T14:08:00+00:00

URL: https://externals.io/message/2157#2157

php_iconv_string() takes size_t as the out_len parameter, but
ob_iconv_handler is passing a pointer to an unsigned int.

--- php-4.3.2/ext/iconv/iconv.c.iconv	2003-03-04 17:20:27.000000000 +0000
+++ php-4.3.2/ext/iconv/iconv.c	2003-06-04 14:46:56.000000000 +0100
@@ -427,7 +427,7 @@
 {
 	char *out_buffer, *content_type, *mimetype = NULL, *s;
 	zval *zv_string;
-	unsigned int out_len;
+	size_t out_len;
 	int mimetype_alloced  = 0;
 	long status;

---

## #2159 — Moriyoshi Koizumi — 2003-06-04T14:33:24+00:00

URL: https://externals.io/message/2157#2159 · In reply to: #2157

Applied.
Thanks for the patch.

Moriyoshi

Joe Orton <jorton@redhat.com> wrote:

> php_iconv_string() takes size_t as the out_len parameter, but
> ob_iconv_handler is passing a pointer to an unsigned int.
