svn: /phpdoc/en/trunk/internals2/opcodes/ add-char.xml

From: Date: Sun, 16 Aug 2015 00:44:44 +0000
Subject: svn: /phpdoc/en/trunk/internals2/opcodes/ add-char.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13604@lists.php.net to get a copy of this message
cmb Sun, 16 Aug 2015 00:44:44 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=337495 Log: This example will actually emit the ADD_CHAR opcode unlike the previous one. -- Provided by anonymous 56715 (gennady@kovshenin.com) Changed paths: U phpdoc/en/trunk/internals2/opcodes/add-char.xml Modified: phpdoc/en/trunk/internals2/opcodes/add-char.xml =================================================================== --- phpdoc/en/trunk/internals2/opcodes/add-char.xml 2015-08-16 00:42:19 UTC (rev 337494) +++ phpdoc/en/trunk/internals2/opcodes/add-char.xml 2015-08-16 00:44:44 UTC (rev 337495) @@ -8,10 +8,10 @@ <![CDATA[ <?php /* - * add character value2 to string value1 and store in result + * add regular characters in encapsed string * opcode number: 54 */ -echo "hello\ world"; +echo "$a "; ?> ]]> </programlisting> @@ -19,7 +19,7 @@ <section xml:id="internals2.opcodes.add-char.listing"> <title>PHP opcodes</title> <simpara>Function name: (null)</simpara> - <simpara>Compiled variables: none </simpara> + <simpara>Compiled variables: !0=$a</simpara> <informaltable> <tgroup cols="7"> <thead> @@ -32,12 +32,24 @@ <tbody> <row> <entry>6</entry><entry>0</entry> + <entry>ADD_VAR</entry><entry></entry> + <entry></entry><entry></entry> + <entry>!0</entry> + </row> + <row> + <entry></entry><entry>1</entry> + <entry>ADD_CHAR</entry><entry></entry> + <entry></entry><entry></entry> + <entry>32</entry> + </row> + <row> + <entry></entry><entry>2</entry> <entry>ECHO</entry><entry></entry> <entry></entry><entry></entry> - <entry>'hello%5C+world'</entry> + <entry> </entry> </row> <row> - <entry>7</entry><entry>1</entry> + <entry></entry><entry>3</entry> <entry>RETURN</entry><entry></entry> <entry></entry><entry></entry> <entry>1</entry>

« previous php.doc.cvs (#13604) next »