svn: /phpdoc/en/trunk/language/ functions.xml
| From: | Daniel Convissor | Date: | Tue, 10 Jan 2012 19:44:00 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/ functions.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9392@lists.php.net to get a copy of this message | ||
danielc Tue, 10 Jan 2012 19:44:00 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=322032
Log:
Put anonymous function changelog into change log section and notes in a notes section.
Changed paths:
U phpdoc/en/trunk/language/functions.xml
Modified: phpdoc/en/trunk/language/functions.xml
===================================================================
--- phpdoc/en/trunk/language/functions.xml 2012-01-10 19:41:33 UTC (rev 322031)
+++ phpdoc/en/trunk/language/functions.xml 2012-01-10 19:44:00 UTC (rev 322032)
@@ -751,27 +751,47 @@
<classname>Closure</classname></link> class.
</simpara>
- <note>
- <simpara>
- Anonymous functions are available since PHP 5.3.0.
- </simpara>
- </note>
+ <sect2 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>5.4.0</entry>
+ <entry>
+ <varname>$this</varname> can be used in anonymous functions.
+ </entry>
+ </row>
+ <row>
+ <entry>5.3.0</entry>
+ <entry>
+ Anonymous functions become available.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </sect2>
- <note>
- <simpara>
- It was not possible to use <varname>$this</varname> from anonymous
- function before PHP 5.4.0.
- </simpara>
- </note>
+ <sect2 role="notes">
+ &reftitle.notes;
+ <note>
+ <simpara>
+ It is possible to use <function>func_num_args</function>,
+ <function>func_get_arg</function>, and
<function>func_get_args</function>
+ from within a closure.
+ </simpara>
+ </note>
+ </sect2>
- <note>
- <simpara>
- It is possible to use <function>func_num_args</function>,
- <function>func_get_arg</function>, and
<function>func_get_args</function>
- from within a closure.
- </simpara>
- </note>
-
</sect1>
</chapter>