Error in zend2_example.phps
| From: | Sander Steffann | Date: | Thu, 18 Jul 2002 15:51:23 +0000 |
| Subject: | Error in zend2_example.phps | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-86008@lists.php.net to get a copy of this message | ||
I think zend2_example.phps has a little error in example 6:
The display function is defined as:
function display()
{
print $this->name;
print "\n";
}
But then it is called with:
print $person->getName()->display();
Either the function should use return, or the call shouldn't use print...