Closure::bind() doesn't allow to bind to scope of internal classes anymore (fixes #69811)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337785 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2015-09-08 16:45:48 +00:00
parent 6ef93c43a6
commit bea58f82ad

View file

@ -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>