svn: /phpdoc/en/trunk/language/predefined/closure/ bind.xml
| From: | Christoph Michael Becker | Date: | Tue, 08 Sep 2015 16:45:48 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/predefined/closure/ bind.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13724@lists.php.net to get a copy of this message | ||
cmb Tue, 08 Sep 2015 16:45:48 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=337785
Log:
Closure::bind() doesn't allow to bind to scope of internal classes anymore (fixes #69811)
Bug: https://bugs.php.net/69811 (Analyzed) Cannot bind
closure to scope of internal class stdClass
Changed paths:
U phpdoc/en/trunk/language/predefined/closure/bind.xml
Modified: phpdoc/en/trunk/language/predefined/closure/bind.xml
===================================================================
--- phpdoc/en/trunk/language/predefined/closure/bind.xml 2015-09-08 13:32:13 UTC (rev 337784)
+++ phpdoc/en/trunk/language/predefined/closure/bind.xml 2015-09-08 16:45:48 UTC (rev 337785)
@@ -53,6 +53,7 @@
'static' to keep the current one. If an object is given, the type of the
object will be used instead. This determines the visibility of protected
and private methods of the bound object.
+ It is not allowed to pass (an object of) an internal class as this parameter.
</para>
</listitem>
</varlistentry>
@@ -66,6 +67,31 @@
</para>
</refsect1>
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>7.0.0</entry>
+ <entry>
+ <parameter>newscope</parameter> can not be (an object of) an internal
+ class anymore, what was possible prior to this version.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1>
+
<refsect1 role="examples">
&reftitle.examples;
<example>