Issues

ZF-1693: If result is different from docblock, and is boolean, consider it a status code

Issue Type: New Feature Created: 2007-07-09T14:59:07.000+0000 Last Updated: 2008-11-22T06:36:41.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Davey Shafik (davey) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Rest_Server

Related issues: Attachments:

Description

If, for example we have:

<pre class="literal">/**
 * My Function
 *
 * @return array
 */
function myFunction() {
    if (something) {
        return array();
    }
    return false;
}

Because we expected an array, but returned a boolean (it could also be true), the boolean should be taken to be the status of the request, false = failure, true = success. I think this is a common way to write code :)

  • Davey

Comments

Posted by Davey Shafik (davey) on 2007-07-09T15:01:56.000+0000

Fixed code formatting

Posted by Darby Felton (darby) on 2007-07-19T16:14:51.000+0000

Updating affected version(s), since 1.1.0 hasn't yet been released.

Posted by Darby Felton (darby) on 2007-07-19T16:23:57.000+0000

Assigning to [~davey] to clear unassigned issues.

Posted by Matthew Weier O'Phinney (matthew) on 2008-05-09T12:00:08.000+0000

Scheduling for next minor release.

Posted by Matthew Weier O'Phinney (matthew) on 2008-11-22T06:36:39.000+0000

stale issue, and no watchers.

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts