Bug #66909 [Com]: configure fails utf8_to_mutf7 test

From: Date: Mon, 09 Nov 2015 17:18:30 +0000
Subject: Bug #66909 [Com]: configure fails utf8_to_mutf7 test
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197135@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66909&edit=1

 ID:                 66909
 Comment by:         michael at orlitzky dot com
 Reported by:        mdwong at honolulu dot gov
 Summary:            configure fails utf8_to_mutf7 test
 Status:             Open
 Type:               Bug
 Package:            *Configuration Issues
 PHP Version:        5.5.10
 Block user comment: N
 Private report:     N

 New Comment:

https://github.com/php/php-src/pull/1627


Previous Comments:
------------------------------------------------------------------------
[2015-11-09 16:33:28] michael at orlitzky dot com

We've seen this problem on Gentoo as well. I believe it is the root cause of this bug report,

  https://bugs.gentoo.org/show_bug.cgi?id=376735

and that the submitter's diagnosis is correct. In utf8aux.h we can clearly see,

  unsigned char *utf8_to_mutf7 (unsigned char *src);

------------------------------------------------------------------------
[2014-03-14 22:29:50] mdwong at honolulu dot gov

Description:
------------
testing for IMAP, configure calls utf8_to_mutf7() with no argument, causing a core dump in Linux on
S/390 IFL.  utf8_to_mutf7() requires one argument. Editing configure to this fixes the problem:


    char utf8_to_mutf7();
    char testarg[20];
    strcpy (testarg, "");
    int main() {
      utf8_to_mutf7(testarg);
      return 0;
    }




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



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


Thread (4 messages)

« previous php.bugs (#197135) next »