cvs: phpdoc /en/language/oop5 reflection.xml
| From: | Kalle Sommer Nielsen | Date: | Tue, 23 Jun 2009 15:42:45 +0000 |
| Subject: | cvs: phpdoc /en/language/oop5 reflection.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4214@lists.php.net to get a copy of this message | ||
kalle Tue Jun 23 15:42:45 2009 UTC
Modified files:
/phpdoc/en/language/oop5 reflection.xml
Log:
Removal of closure stuff for now until its decided whether to put it in HEAD yet, fixes #48663
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/oop5/reflection.xml?r1=1.40&r2=1.41&diff_format=u
Index: phpdoc/en/language/oop5/reflection.xml
diff -u phpdoc/en/language/oop5/reflection.xml:1.40 phpdoc/en/language/oop5/reflection.xml:1.41
--- phpdoc/en/language/oop5/reflection.xml:1.40 Sun May 3 10:58:35 2009
+++ phpdoc/en/language/oop5/reflection.xml Tue Jun 23 15:42:45 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.40 $ -->
+<!-- $Revision: 1.41 $ -->
<sect1 xml:id="language.oop5.reflection" xmlns="http://docbook.org/ns/docbook">
<title>Reflection</title>
<sect2 xml:id="language.oop5.reflection.toc">
@@ -176,7 +176,6 @@
public string getName()
public bool isInternal()
public bool isDisabled()
- public mixed getClosure() /* As of PHP 5.3.0 */
public bool isUserDefined()
public string getFileName()
public int getStartLine()
@@ -579,7 +578,6 @@
public bool isConstructor()
public bool isDestructor()
public int getModifiers()
- public mixed getClosure() /* As of PHP 5.3.0 */
public ReflectionClass getDeclaringClass()
// Inherited from ReflectionFunctionAbstract
@@ -669,41 +667,6 @@
]]>
</programlisting>
</example>
- <example>
- <title>Getting closure using <classname>ReflectionMethod</classname>
class</title>
- <programlisting role='php'>
-<![CDATA[
-<?php
-
-class Example {
- static function printer () {
- echo "Hello World!\n";
- }
-}
-
-$class = new ReflectionClass('Example');
-$method = $class->getMethod('printer');
-$closure = $method->getClosure(); /* As of PHP 5.3.0 */
-$closure(); // Hello World!
-
-?>
-]]>
- </programlisting>
- </example>
- <note>
- <simpara>
- Trying to invoke private, protected or abstract methods will result
- in an exception being thrown from the <function>invoke</function>
- method.
- </simpara>
- </note>
- <note>
- <simpara>
- For static methods as seen above, you should pass NULL as the first
- argument to <function>invoke</function>. For non-static methods, pass
- an instance of the class.
- </simpara>
- </note>
</sect2>
<sect2 xml:id="language.oop5.reflection.reflectionproperty">