Squirrelmail - Mail_Fetch plugin - Php5.4 problem

  • Hello,


    i've successfully installed imscp with the autoinstaller but the webmailer doesnt work. I've got the Message


    Fatal error: Cannot redeclare hex2bin() in /var/www/imscp/gui/public/tools/webmail/plugins/mail_fetch/functions.php on line 105


    What can i do?


    mfg


    Sammy Deluxe

    Edited once, last by Nuxwin ().


  • Hello ;


    We need more information:


    Distro, PHP version and so on. Thanks.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • It looks like there is a function with this name - but since PHP 5.4.0 php has it's own function with this name


    hex2bin (PHP >= 5.4.0)


    So - the plugin "mail_fetch" should be updated for PHP >= 5.4.0


    /Joxi


  • Hello ;


    Thanks, I'll see if the problem is already reported on the project and update.


    Edit: It's a problem with Squirrel...


    You can either fix the problem or wait for next stable release.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().

  • Well, the question is:
    does the function do the same thing?


    Since also a bin2hex is needed - and this does exist already a long time - I think the hex2bin is the same...


    So we should also be able to patch this.


    But also every Server-Admin should be able to do this on his installation... :-)
    (another easy fix: just rename the two occurences of "hex2bin" there to something like hex2bin1 or similar...


    /Joxi