ID:               44098
 Comment by:       sebastian dot gerlach at digionline dot de
 Reported By:      steffen at dislabs dot de
 Status:           No Feedback
 Bug Type:         IMAP related
 Operating System: FreeBSD 6.2
 PHP Version:      5.2.5
 Assigned To:      pajoye
 New Comment:

Hi,

i've changed the patch. It also works without changing the configure
file.

http://digionline.de/sebastian.gerlach/imap-capital-letters.patch


Previous Comments:
------------------------------------------------------------------------

[2010-01-13 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2010-01-05 01:17:25] paj...@php.net

hi,

The patch should be against configure.in not configure. Can you update
it again please?

------------------------------------------------------------------------

[2009-12-23 15:16:54] sebastian dot gerlach at digionline dot de

http://digionline.de/sebastian.gerlach/imap-capital-letters.patch

# patch -p0 -i imap-capital-letters.patch

------------------------------------------------------------------------

[2009-12-22 20:20:48] paj...@php.net

Can you provide a link to the patch please?

------------------------------------------------------------------------

[2009-12-22 18:00:11] sebastian dot gerlach at digionline dot de

Complete patch for 5.3.1:


*** configure   2009-11-18 21:11:57.000000000 +0100
--- configure.new       2009-12-22 18:36:30.000000000 +0100
***************
*** 47697,47703 ****
      CFLAGS="-I$IMAP_INC_DIR"
      echo $ac_n "checking for U8T_CANONICAL""... $ac_c" 1>&6
  echo "configure:47700: checking for U8T_CANONICAL" >&5
! if eval "test \"`echo '$''{'ac_cv_u8t_canonical'+set}'`\" = set";
then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
--- 47697,47703 ----
      CFLAGS="-I$IMAP_INC_DIR"
      echo $ac_n "checking for U8T_CANONICAL""... $ac_c" 1>&6
  echo "configure:47700: checking for U8T_CANONICAL" >&5
! if eval "test \"`echo '$''{'ac_cv_u8t_decompose'+set}'`\" = set";
then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 47715,47741 ****
  if { (eval echo configure:47716: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
    rm -rf conftest*
    
!          ac_cv_u8t_canonical=yes
        
  else
    echo "configure: failed program was:" >&5
    cat conftest.$ac_ext >&5
    rm -rf conftest*
    
!          ac_cv_u8t_canonical=no
        
  fi
  rm -f conftest*
      
  fi
  
! echo "$ac_t""$ac_cv_u8t_canonical" 1>&6
      CFLAGS=$old_CFLAGS
  
!     if test "$ac_cv_u8t_canonical" = "no" && test
"$ac_cv_utf8_mime2text" = "new"; then
                { echo "configure: error: utf8_mime2text() has new signature, 
but
U8T_CANONICAL is missing. This should not happen. Check config.log for
additional information." 1>&2; exit 1; }
      fi
!     if test "$ac_cv_u8t_canonical" = "yes" && test
"$ac_cv_utf8_mime2text" = "old"; then
                { echo "configure: error: utf8_mime2text() has old signature, 
but
U8T_CANONICAL is present. This should not happen. Check config.log for
additional information." 1>&2; exit 1; }
      fi
  
--- 47715,47741 ----
  if { (eval echo configure:47716: \"$ac_compile\") 1>&5; (eval
$ac_compile) 2>&5; }; then
    rm -rf conftest*
    
!          ac_cv_u8t_decompose=yes
        
  else
    echo "configure: failed program was:" >&5
    cat conftest.$ac_ext >&5
    rm -rf conftest*
    
!          ac_cv_u8t_decompose=no
        
  fi
  rm -f conftest*
      
  fi
  
! echo "$ac_t""$ac_cv_u8t_decompose" 1>&6
      CFLAGS=$old_CFLAGS
  
!     if test "$ac_cv_u8t_decompose" = "no" && test
"$ac_cv_utf8_mime2text" = "new"; then
                { echo "configure: error: utf8_mime2text() has new signature, 
but
U8T_CANONICAL is missing. This should not happen. Check config.log for
additional information." 1>&2; exit 1; }
      fi
!     if test "$ac_cv_u8t_decompose" = "yes" && test
"$ac_cv_utf8_mime2text" = "old"; then
                { echo "configure: error: utf8_mime2text() has old signature, 
but
U8T_CANONICAL is present. This should not happen. Check config.log for
additional information." 1>&2; exit 1; }
      fi
  
*** ext/imap/config.m4  2009-05-05 03:22:44.000000000 +0200
--- ext/imap/config.m4.new      2009-12-22 18:39:16.000000000 +0100
***************
*** 147,169 ****
  
      old_CFLAGS=$CFLAGS
      CFLAGS="-I$IMAP_INC_DIR"
!     AC_CACHE_CHECK(for U8T_CANONICAL, ac_cv_u8t_canonical,
        AC_TRY_COMPILE([
  #include <c-client.h>
        ],[
           int i = U8T_CANONICAL;
        ],[
!          ac_cv_u8t_canonical=yes
        ],[
!          ac_cv_u8t_canonical=no
        ])
      )
      CFLAGS=$old_CFLAGS
  
!     if test "$ac_cv_u8t_canonical" = "no" && test
"$ac_cv_utf8_mime2text" = "new"; then
                AC_MSG_ERROR([utf8_mime2text() has new signature, but 
U8T_CANONICAL
is missing. This should not happen. Check config.log for additional
information.])
      fi
!     if test "$ac_cv_u8t_canonical" = "yes" && test
"$ac_cv_utf8_mime2text" = "old"; then
                AC_MSG_ERROR([utf8_mime2text() has old signature, but 
U8T_CANONICAL
is present. This should not happen. Check config.log for additional
information.])
      fi
  
--- 147,169 ----
  
      old_CFLAGS=$CFLAGS
      CFLAGS="-I$IMAP_INC_DIR"
!     AC_CACHE_CHECK(for U8T_DECOMPOSE, ac_cv_u8t_canonical,
        AC_TRY_COMPILE([
  #include <c-client.h>
        ],[
           int i = U8T_CANONICAL;
        ],[
!          ac_cv_u8t_decompose=yes
        ],[
!          ac_cv_u8t_decompose=no
        ])
      )
      CFLAGS=$old_CFLAGS
  
!     if test "$ac_cv_u8t_decompose" = "no" && test
"$ac_cv_utf8_mime2text" = "new"; then
                AC_MSG_ERROR([utf8_mime2text() has new signature, but 
U8T_CANONICAL
is missing. This should not happen. Check config.log for additional
information.])
      fi
!     if test "$ac_cv_u8t_decompose" = "yes" && test
"$ac_cv_utf8_mime2text" = "old"; then
                AC_MSG_ERROR([utf8_mime2text() has old signature, but 
U8T_CANONICAL
is present. This should not happen. Check config.log for additional
information.])
      fi
  
*** ext/imap/php_imap.c 2009-10-09 19:38:19.000000000 +0200
--- ext/imap/php_imap.c.new     2009-12-22 18:52:19.000000000 +0100
***************
*** 2598,2604 ****
  #ifndef HAVE_NEW_MIME2TEXT
        utf8_mime2text(&src, &dest);
  #else
!       utf8_mime2text(&src, &dest, U8T_CANONICAL);
  #endif
        RETVAL_STRINGL(dest.data, dest.size, 1);
        if (dest.data) {
--- 2598,2604 ----
  #ifndef HAVE_NEW_MIME2TEXT
        utf8_mime2text(&src, &dest);
  #else
!       utf8_mime2text(&src, &dest, U8T_DECOMPOSE);
  #endif
        RETVAL_STRINGL(dest.data, dest.size, 1);
        if (dest.data) {

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/44098

-- 
Edit this bug report at http://bugs.php.net/?id=44098&edit=1

Reply via email to