PHP :: Bug #66909 :: configure fails utf8_to_mutf7 test

Bug #66909 configure fails utf8_to_mutf7 test
Submitted: 2014-03-14 22:29 UTC Modified: 2015-12-09 11:06 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: mdwong at honolulu dot gov Assigned: ab (profile)
Status: Closed Package: *Configuration Issues
PHP Version: 5.5.10 OS:
Private report: No CVE-ID: None

 [2014-03-14 22:29 UTC] 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;
    }



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

 [2015-11-09 16:33 UTC] 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);

 [2015-12-09 11:06 UTC] ab@php.net

-Status: Open +Status: Closed -Assigned To: +Assigned To: ab

 [2015-12-09 11:06 UTC] ab@php.net

Merged in 24f21a30121b24a74f9cc0fd4a4cb0541ad8f520.

Thanks.