Zend Framework

problem width iconv_set_encoding() --> Zend_Service_Flickr line 65,66,67

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.5.0
  • Fix Version/s: 1.10.7
  • Component/s: Zend_Service_Flickr
  • Labels:
    None

Description

In Zend_Service_Flickr is used "iconv_set_encoding()"(lines: 65, 66, 67) , but this feature gives problems with the version 5.2.5 PHP if used in the configuration "php_admin_value" sel Apache server.

Activity

Hide
jimmy collazos added a comment -

My solution is to replace lines(65-67) it:

ini_set('iconv.output_encoding',"UTF-8");
ini_set('iconv.input_encoding',"UTF-8");
ini_set('iconv.internal_encoding',"UTF-8");

Show
jimmy collazos added a comment - My solution is to replace lines(65-67) it: ini_set('iconv.output_encoding',"UTF-8"); ini_set('iconv.input_encoding',"UTF-8"); ini_set('iconv.internal_encoding',"UTF-8");
Hide
Wil Sinclair added a comment -

Please evaluate and fix/categorize as necessary.

Show
Wil Sinclair added a comment - Please evaluate and fix/categorize as necessary.
Hide
Benjamin Eberlei added a comment -

Using ini_set for 3 very important variables within Zend_Service_Flickr is highly dangerous behaviour. It should be removed and be replaced with explicit changing when needed.

Additionally iconv_ is not defined on all platforms.

Show
Benjamin Eberlei added a comment - Using ini_set for 3 very important variables within Zend_Service_Flickr is highly dangerous behaviour. It should be removed and be replaced with explicit changing when needed. Additionally iconv_ is not defined on all platforms.
Hide
Wil Sinclair added a comment -

It isn't clear to me why this ini values are set in the first place, since iconv() doesn't seem to be used anywhere in the component. Alex, could you please investigate and close this issue?

Show
Wil Sinclair added a comment - It isn't clear to me why this ini values are set in the first place, since iconv() doesn't seem to be used anywhere in the component. Alex, could you please investigate and close this issue?
Hide
Mickael Perraud added a comment -

Fixed with r22598 and applied on 1.10 branch with r22599

Show
Mickael Perraud added a comment - Fixed with r22598 and applied on 1.10 branch with r22599

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: