note 41746 added to ref.classobj
| From: | ch at lathspell dot de | Date: | Wed, 21 Apr 2004 13:53:24 +0000 |
| Subject: | note 41746 added to ref.classobj | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68440@lists.php.net to get a copy of this message | ||
I noticed that I can write "return 42" in a constructor. Of course this is senseless as
the return value is always a reference of the created object so I wonder if this return value has
any sideeffects or if it should be generate a syntax warning.
----
Manual Page -- http://www.php.net/manual/en/ref.classobj.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41746
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41746&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41746&report=yes
Search -- http://master.php.net/manage/user-notes.php