ZF-11569: Zend_Text_Figlet silently aborts execution when iconv is not installed

Issue Type: Bug Created: 2011-07-16T11:28:09.000+0000 Last Updated: 2011-07-16T12:50:24.000+0000 Status: Resolved Fix version(s): Reporter: Paul Dixon (lordelph) Assignee: Ben Scholzen (dasprid) Tags: - Zend_Text_Figlet

Related issues: Attachments:


Zend_Text_Figlet::render() calls iconv_strlen prefixed with the @ error suppression operator.

If iconv is not installed, this causes the script to abort without displaying any error message.

As Zend_Text_Figlet is used during the Getting Started tutorial, recommend that it include an explicit check for iconv, or better yet, avoids the use of @

I've patched my own installation of Zend Framework to include the following inside the render method

<pre class="highlight">
if (!extension_loaded('iconv')) {
    throw new Zend_Text_Figlet_Exception('Zend_text_Figlet requires iconv extension to be present');


Posted by Ben Scholzen (dasprid) on 2011-07-16T12:50:24.000+0000

The iconv extension is enabled by defaul (see…). Thus it is used in the entire Framework without explicitly checking for it.

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.