php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37948 IMAP extension: utf8_mime2text() has wrong parameters
Submitted: 2006-06-28 14:31 UTC Modified: 2010-12-20 12:13 UTC
From: rele at gmx dot de Assigned: iliaa (profile)
Status: Closed Package: IMAP related
PHP Version: 5.1.4 OS: SuSE Linux Enterprise Server 9
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rele at gmx dot de
New email:
PHP Version: OS:

 

 [2006-06-28 14:31 UTC] rele at gmx dot de
Description:
------------
Every time I try to compile PHP 5.1.4 with IMAP support under SLES9, it fails because of the wrong parameter count of utf8_mime2text() in php_imap.c:78 compared to utf8.h:538.
I have tried with imap-2004g.tar.Z and the current imap-2006.DEV.tar.Z.

Build c-client library first:
cd /usr/local/applications/
tar xzf imap-2006.DEV.tar.Z
mv imap-*/ imap/
make slx all SSLTYPE=none IP=4
md include
md lib
cp src/c-client/*.h include/
cp c-client/c-client.a lib/libc-client.a
cp c-client/osdep.h include/
cp c-client/env_unix.h include/
cp c-client/linkage.h include/


Reproduce code:
---------------
./configure --prefix=/usr/local/applications/lamp2/php --with-imap=/usr/local/applications/lamp2/imap --with-apxs2=/usr/local/applications/lamp2/httpd/bin/apxs --with-mysqli=/usr/local/applications/lamp2/mysql/bin/mysql_config --with-mysql=/usr/local/applications/lamp2/mysql --with-zlib-dir=/usr/lib/ --enable-versioning --enable-track-vars=yes --enable-url-includes --enable-sysvshm=yes --enable-sysvsem=yes --enable-ftp --enable-calendar --with-config-file-path=/usr/local/applications/lamp2/php --with-gd --with-xmlrpc --with-curl=/usr/local/applications/lamp2/curl --with-bz2 --enable-shmop --with-tidy=/usr/local/applications/lamp2/tidy --with-libxml-dir=/usr/local/applications/lamp2/libxml2 --with-openssl=/usr/local/applications/lamp2/openssl --with-ldap=/usr/local/applications/lamp2/openldap --with-pdo-sqlite --enable-pdo --enable-bcmath --enable-mbstring --with-xsl=/usr/local/applications/lamp2/libxsl --enable-shared --disable-static

Expected result:
----------------
Successful build (not aborted).


Only if I change line 538 in
/usr/local/applications/lamp2/imap/include/utf8.h
from
  long utf8_mime2text (SIZEDTEXT *src,SIZEDTEXT *dst,long flags);
to
  long utf8_mime2text (SIZEDTEXT *src,SIZEDTEXT *dst);
the build runs successfully.

Actual result:
--------------
/tmp/lamp2/sources/php/php-5.1.4/ext/imap/php_imap.c:78: error: conflicting types for `utf8_mime2text'
/usr/local/applications/lamp2/imap/include/utf8.h:538: error: previous declaration of `utf8_mime2text'
make: *** [ext/imap/php_imap.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-28 19:54 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2006-06-29 11:13 UTC] rele at gmx dot de
Thank you, the changed utf8_mime2text() declaration allowed the build to complete successfully.


Keep up the good work,
Ren?
 [2010-12-20 12:13 UTC] jani@php.net
-Package: Tidy +Package: IMAP related -Assigned To: +Assigned To: iliaa
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 13:01:34 2025 UTC