Skip to content

iconv deprecation warning/error in PHP 5.6.2 #780

@nyov

Description

@nyov

The warning (?) makes the magento error page display so I consider it an error; after enabling display of php error messages in pub/errors/local.xml, I got this, in a few variations:

There has been an error processing your request

Deprecated Functionality: iconv_set_encoding(): Use of iconv.internal_encoding is deprecated in [magento]/lib/internal/Zend/Validate/Hostname.php on line 521

Error log record number: blah

I commented out two instances of iconv_set_encoding each, in lib/internal/Zend/Validate/Hostname.php and lib/internal/Zend/Validator/Hostname.php.

This makes the pages display. But from a quick git grep in the source, there are some more instances of it inside lib/internal/Zend which might bring doom at some point.

PHP version of debian jessie/testing

PHP 5.6.2-1 (cli) (built: Oct 17 2014 17:15:37) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions