ZF-2378: A "new " miss in the example code

Issue Type: Docs: Problem Created: 2008-01-04T02:29:03.000+0000 Last Updated: 2008-03-21T16:25:32.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Bonneau Pierre (pmithrandir) Assignee: Nico Edtinger (nico) Tags: - Zend_Mail

Related issues: Attachments:


In the documentation of Zend Mail, on the "reference guide", point 21.14.5.

The code is : {quote}foreach (RecursiveIteratorIterator($mail->getMessage(1)) as $part) { try { if (strtok($part->contentType, ';') == 'text/plain') { $foundPart = $part; {quote}

And it must be : {quote}foreach (new RecursiveIteratorIterator($mail->getMessage(1)) as $part) { try { if (strtok($part->contentType, ';') == 'text/plain') { $foundPart = $part; {quote}

Thanks you Pierre Bonneau QSMS


Posted by Wil Sinclair (wil) on 2008-01-15T16:39:31.000+0000

Matthew, you have some other documentation fixes for 1.5, can you take a look at this one, too?

Have you found an issue?

See the Overview section for more details.


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

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