ZF-9417: Zend_View_Helper_Currency toString() for null and empty values
I believe Zend_View_Helper_Currency should have some form of toString method in order to format null values. Currently if you supply null to the currency() method you receive the view helper as expected.
However when using database values where it may well be possible to retrieve a null value this can cause confusion and problems with the script. Whereas if null or a string was returned you wouldn't need to account for special conditions.
I think it would be nice if the currency view helper implemented a way to return null (or an empty string) itself (or in fact a default value if supplied). This way the logic wouldn't need to be carried out beforehand or after in the view script. The toString method would have the same signature as the currency method but return a string regardless of the values.