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

Issue Type: Bug Created: 2008-04-10T18:32:23.000+0000 Last Updated: 2010-07-16T14:27:34.000+0000 Status: Resolved Fix version(s): - 1.10.7 (28/Jul/10)

Reporter: jimmy collazos (acido69) Assignee: Mickael Perraud (mikaelkael) Tags: - Zend_Service_Flickr

Related issues: Attachments:


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.


Posted by jimmy collazos (acido69) on 2008-04-10T18:49:26.000+0000

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");

Posted by Wil Sinclair (wil) on 2008-06-09T12:36:29.000+0000

Please evaluate and fix/categorize as necessary.

Posted by Benjamin Eberlei (beberlei) on 2008-11-15T11:41:35.000+0000

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.

Posted by Wil Sinclair (wil) on 2009-01-21T15:32:34.000+0000

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?

Posted by Mickael Perraud (mikaelkael) on 2010-07-16T14:26:03.000+0000

Fixed with r22598 and applied on 1.10 branch with r22599

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.