svn: /phpdoc/en/trunk/language/oop5/ overloading.xml

From: Date: Fri, 28 Aug 2009 03:22:29 +0000
Subject: svn: /phpdoc/en/trunk/language/oop5/ overloading.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4786@lists.php.net to get a copy of this message
danielc Fri, 28 Aug 2009 03:22:29 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=287826 Log: Add a note about chaining assignments, responding to several user notes. Changed paths: U phpdoc/en/trunk/language/oop5/overloading.xml Modified: phpdoc/en/trunk/language/oop5/overloading.xml =================================================================== --- phpdoc/en/trunk/language/oop5/overloading.xml 2009-08-28 02:21:17 UTC (rev 287825) +++ phpdoc/en/trunk/language/oop5/overloading.xml 2009-08-28 03:22:29 UTC (rev 287826) @@ -132,6 +132,16 @@ <link linkend="language.oop5.static">static</link>. </para> + <note> + <para> + The return value of <literal>__set()</literal> is ignored + because of the way PHP processes the assignment operator. + Similarly, <literal>__get()</literal> is never called when + chaining assignemnts together like this: + <literal><![CDATA[ $a = $obj->b = 8; ]]></literal> + </para> + </note> + <example> <title>overloading with __get, __set, __isset and __unset example</title> <programlisting role="php">

« previous php.doc.cvs (#4786) next »