mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-18 09:58:55 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323545 c90b9560-bf6c-de11-be94-00142212c4b1
100 lines
No EOL
2.6 KiB
XML
100 lines
No EOL
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<section xml:id="internals2.opcodes.init-static-method-call">
|
|
<title>INIT_STATIC_METHOD_CALL</title>
|
|
<section xml:id="internals2.opcodes.init-static-method-call.code">
|
|
<title>PHP code</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
/*
|
|
*
|
|
* opcode number: 113
|
|
*/
|
|
class Foo {
|
|
public static function aStaticMethod() {
|
|
echo "hello world\n";
|
|
}
|
|
}
|
|
|
|
Foo::aStaticMethod();
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</section>
|
|
<section xml:id="internals2.opcodes.init-static-method-call.listing">
|
|
<title>PHP opcodes</title>
|
|
<simpara>Function name: (null)</simpara>
|
|
<simpara>Compiled variables: none </simpara>
|
|
<informaltable>
|
|
<tgroup cols="7">
|
|
<thead>
|
|
<row>
|
|
<entry>line</entry><entry>#</entry><entry>op</entry>
|
|
<entry>fetch</entry><entry>ext</entry><entry>return</entry>
|
|
<entry>operands</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>6</entry><entry>0</entry>
|
|
<entry>NOP</entry><entry></entry>
|
|
<entry></entry><entry></entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row>
|
|
<entry>12</entry><entry>1</entry>
|
|
<entry>ZEND_INIT_STATIC_METHOD_CALL</entry><entry></entry>
|
|
<entry></entry><entry></entry>
|
|
<entry>'Foo','aStaticMethod'</entry>
|
|
</row>
|
|
<row>
|
|
<entry></entry><entry>2</entry>
|
|
<entry>ZEND_OP_DATA</entry><entry></entry>
|
|
<entry></entry><entry></entry>
|
|
<entry>'foo%3A%3Aastaticmethod'</entry>
|
|
</row>
|
|
<row>
|
|
<entry></entry><entry>3</entry>
|
|
<entry>DO_FCALL_BY_NAME</entry><entry></entry>
|
|
<entry>0</entry><entry></entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row>
|
|
<entry>13</entry><entry>4</entry>
|
|
<entry>RETURN</entry><entry></entry>
|
|
<entry></entry><entry></entry>
|
|
<entry>1</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
<simpara>Function name: aStaticMethod</simpara>
|
|
<simpara>Compiled variables: none </simpara>
|
|
<informaltable>
|
|
<tgroup cols="7">
|
|
<thead>
|
|
<row>
|
|
<entry>line</entry><entry>#</entry><entry>op</entry>
|
|
<entry>fetch</entry><entry>ext</entry><entry>return</entry>
|
|
<entry>operands</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>8</entry><entry>0</entry>
|
|
<entry>ECHO</entry><entry></entry>
|
|
<entry></entry><entry></entry>
|
|
<entry>'hello+world%0A'</entry>
|
|
</row>
|
|
<row>
|
|
<entry>9</entry><entry>1</entry>
|
|
<entry>RETURN</entry><entry></entry>
|
|
<entry></entry><entry></entry>
|
|
<entry>null</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</section>
|
|
</section> |