note 57550 added to language.references
| From: | y007pig at yahoo dot com dot cn | Date: | Fri, 07 Oct 2005 06:02:17 +0000 |
| Subject: | note 57550 added to language.references | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-96540@lists.php.net to get a copy of this message | ||
In reply to pike at kw dot nl, '&' is only apply to PHP 4.
PHP 5 changed the behavior and the object is defaultly passed by references and if you turn on
E_STRICT, you will get a notice:
Strict Standards: Assigning the return value of new by reference is deprecated in xxxx
If you want to *copy* object in PHP 5, use object clone.
----
Manual Page -- http://www.php.net/manual/en/language.references.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57550
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57550&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57550&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57550&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57550&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57550&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57550&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57550&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57550&report=yes
Search -- http://master.php.net/manage/user-notes.php