Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

PHP Fatal error on AIX 6.1

  • 1.  PHP Fatal error on AIX 6.1

    Posted Sun October 07, 2018 01:27 AM

    Originally posted by: JeyaseelanYesudason


    Hello, 

    I need a help to slove the PHP Error -  iconv(): Wrong charset issue.

    OS - AIX 6.1 -> PHP Version & Libiconv installed RPM details is given below ( both were installed from IBM Linux Toolbox site.)

    rpm -qa | grep -i php
    ---------------------
    php-7.0.30-1
    php-common-7.0.30-1
    php-cli-7.0.30-1
    php-devel-7.0.30-1
    rpm -qa | grep -i libic
    -----------------------
    libiconv-1.14-1

    Kindly let us if you need any more details.

    Thanks: Jey


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: PHP Fatal error on AIX 6.1

    Posted Mon October 08, 2018 03:31 AM

    Originally posted by: AyappanP


    Look more into the error.

    What is the charset conversion PHP is trying to do ?  Whether the charset available in your machine ?


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 3.  Re: PHP Fatal error on AIX 6.1

    Posted Mon October 08, 2018 04:43 AM

    Originally posted by: JeyaseelanYesudason


    Error: 
    ------
    PHP Fatal error:  Notice: iconv(): Wrong charset, conversion from `ASCII' to `UTF-8//IGNORE' is not allowed in /home/H3425375/vega/www/vendor/symfony/polyfill-mbstring/Mbstring.php:664
    Kindly let us if you need any more details.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 4.  Re: PHP Fatal error on AIX 6.1

    Posted Mon October 08, 2018 09:49 AM


  • 5.  Re: PHP Fatal error on AIX 6.1

    Posted Mon October 08, 2018 10:39 AM

    Originally posted by: AyappanP


    PHP is built using AIX base iconv (Not libiconv rpm) which is old. The conversion error seems to be because of this. We will fix this in the next release. 


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 6.  Re: PHP Fatal error on AIX 6.1

    Posted Mon October 08, 2018 01:00 PM

    Originally posted by: JeyaseelanYesudason


    Hello AyappanP,

    Thanks for your prompt response.

    Could you let me when its planned to release the next release with fix for AIX.

    Also is there any temporary fix to resolve this issue?

    Thanks : Jey


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 7.  Re: PHP Fatal error on AIX 6.1

    Posted Tue October 09, 2018 02:35 AM

    Originally posted by: AyappanP


    It is not in our plans until this issue. We will see how this can done soon. 

    I don't see a workaround for this.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 8.  Re: PHP Fatal error on AIX 6.1

    Posted Tue October 09, 2018 08:28 AM

    Originally posted by: JeyaseelanYesudason


    Hello AyappanP,

    Thanks for your prompt response.

    Just have one more query, Its will be new release for PHP or Libiconv ? also will any patch will be released or a fresh new version eg: PHP 7.0.30-2?

     

    Thanks : Jey


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 9.  Re: PHP Fatal error on AIX 6.1

    Posted Tue October 09, 2018 09:43 AM

    Originally posted by: AyappanP


    It will be a new release for PHP. 

    There is no code changes as such. The fix is to build PHP with libiconv rpm. Right now, it is built against AIX base libiconv.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 10.  Re: PHP Fatal error on AIX 6.1

    Posted Tue October 09, 2018 11:50 AM

    Originally posted by: JeyaseelanYesudason


    Hello AyappanP,

    Thanks for your prompt response.

    As you mentioned as "The fix is to build PHP with libiconv rpm. Right now, it is built against AIX base libiconv."

    So if you remove this libiconv rpm, will it work with AIX base libiconv? does it resolve this issue?

    Thanks : Jey


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 11.  Re: PHP Fatal error on AIX 6.1

    Posted Wed October 10, 2018 10:08 AM

    Originally posted by: AyappanP


    You misunderstood the statement.

    PHP has to be built with libiconv rpm. 


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 12.  Re: PHP Fatal error on AIX 6.1

    Posted Thu October 11, 2018 06:21 AM

    Originally posted by: JeyaseelanYesudason


    Hello AyappanP,

    Thanks for you response.

    Is there any update on the new release of PHP with libiconv RPM.

    If it take time, could you help to compile the PHP with source code to work with libiconv RPM

    We found some compilation on this site - https://stackoverflow.com/questions/4743080/how-can-i-force-php-to-use-the-libiconv-version-of-iconv-instead-of-the-centos-i

    but its not detailed and not sure is work with out AIX RPM pacakge.

     

    Thanks: Jey


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 13.  Re: PHP Fatal error on AIX 6.1

    Posted Fri October 19, 2018 08:28 AM

    Originally posted by: JeyaseelanYesudason


    Hello,

    Is there any update on the new release of PHP with libiconv RPM??

    Thanks: Jey


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 14.  Re: PHP Fatal error on AIX 6.1

    Posted Sun October 21, 2018 12:36 PM

    Originally posted by: sanket


    Sorry for the incompatibility issue.

    We will be working on this asap and update you.

    As a workaround is there any chance that you can uninstall libiconv rpm ? What packages are you using that requires AIX toolbox provided libiconv ?


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 15.  Re: PHP Fatal error on AIX 6.1

    Posted Mon October 22, 2018 03:10 AM

    Originally posted by: AyappanP


    We have built PHP with libiconv rpm. It will be uploaded this week.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 16.  Re: PHP Fatal error on AIX 6.1

    Posted Thu October 25, 2018 07:24 AM

    Originally posted by: JeyaseelanYesudason


    Hello AyappanP,

    Thanks, Let me know once it uploaded, so that we will try with new package and update if the issue is resolved or not.

     

    Thanks Jey


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 17.  Re: PHP Fatal error on AIX 6.1

    Posted Thu October 25, 2018 07:47 AM

    Originally posted by: AyappanP


    We have uploaded it few hours back. "php-7.0.31-2" .

    ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/php/


    #AIX-Open-Source-Software
    #AIXOpenSource