cvs: phpdoc /en/internals2 opcodes.xml

From: Date: Sun, 21 Jun 2009 21:33:52 +0000
Subject: cvs: phpdoc /en/internals2 opcodes.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4191@lists.php.net to get a copy of this message
bjori Sun Jun 21 21:33:52 2009 UTC Modified files: /phpdoc/en/internals2 opcodes.xml Log: Add opening and closing PHP tags for examples

http://cvs.php.net/viewvc.cgi/phpdoc/en/internals2/opcodes.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/internals2/opcodes.xml diff -u phpdoc/en/internals2/opcodes.xml:1.1 phpdoc/en/internals2/opcodes.xml:1.2 --- phpdoc/en/internals2/opcodes.xml:1.1 Sun Jun 21 14:21:05 2009 +++ phpdoc/en/internals2/opcodes.xml Sun Jun 21 21:33:52 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <part xml:id="internals2.opcodes" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>Zend Engine 2 opcode list</title> @@ -290,13 +290,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Adds "value1" to "value2" and stores the result into "result". * opcode number: 1 */ echo 1 + 2; - +?> ]]> </programlisting> </section> @@ -343,14 +343,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Add elem-value as an element to array-value * opcode number: 72 */ $a = array(1,2,3); print_r($a); - +?> ]]> </programlisting> </section> @@ -421,13 +421,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * add character value2 to string value1 and store in result * opcode number: 54 */ echo "hello\ world"; - +?> ]]> </programlisting> </section> @@ -468,12 +468,12 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 144 * No sample PHP yet */ - +?> ]]> </programlisting> </section> @@ -484,13 +484,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * add string value2 to string value2 and store in result * opcode number: 55 */ echo "hello$a world"; - +?> ]]> </programlisting> </section> @@ -549,13 +549,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * add contents of variable in value2 to string value1 and store in result * opcode number: 56 */ echo "hello$a world"; - +?> ]]> </programlisting> </section> @@ -614,7 +614,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * assigns value1 to result * opcode number: 38 @@ -622,7 +622,7 @@ $a=1; $a='a'; $a=new A(); - +?> ]]> </programlisting> </section> @@ -693,13 +693,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Add value1 to value2 and store in variable indicated by value1 * opcode number: 23 */ $a+=3; - +?> ]]> </programlisting> </section> @@ -740,13 +740,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Performs binary AND on result and value1 and stores in variable indicated by result. * opcode number: 32 */ $a &= 64; - +?> ]]> </programlisting> </section> @@ -787,13 +787,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Performs binary OR on result and value1 and stores in variable indicated by result. * opcode number: 31 */ $a |= 64; - +?> ]]> </programlisting> </section> @@ -834,13 +834,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Performs binary XOR on result and value1and stores in variable indicated by result. * opcode number: 33 */ $a ^= 64; - +?> ]]> </programlisting> </section> @@ -881,13 +881,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Concats string values result and value1 and store in variable indicated by result * opcode number: 30 */ $a .= 'z'; - +?> ]]> </programlisting> </section> @@ -928,14 +928,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 147 */ $b = 1; $a[1][2] = $b; - +?> ]]> </programlisting> </section> @@ -994,13 +994,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Divide result by value1and store in variable indicated by result. * opcode number: 26 */ $a/=3; - +?> ]]> </programlisting> </section> @@ -1041,13 +1041,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Perform result mod value1 and store in variable indicated by result * opcode number: 27 */ $a %= 3; - +?> ]]> </programlisting> </section> @@ -1088,13 +1088,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Multiply result by value1 and store in variable indicated by result * opcode number: 25 */ $a*=3; - +?> ]]> </programlisting> </section> @@ -1135,13 +1135,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 136 */ $obj->a = $otherobj; - +?> ]]> </programlisting> </section> @@ -1188,13 +1188,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * indicates that variable indicated by value1 is to be treated in the global scope for the remainder of the current scope. * opcode number: 39 */ global $a; - +?> ]]> </programlisting> </section> @@ -1241,13 +1241,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Shift result by value1 bits to left and store in variable indicated by result * opcode number: 28 */ $a <<= 3; - +?> ]]> </programlisting> </section> @@ -1288,13 +1288,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Shift result by value1 bits to right and store in variable indicated by result * opcode number: 29 */ $a >>= 3; - +?> ]]> </programlisting> </section> @@ -1335,13 +1335,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Subtract value1 from value2 and store in variable indicated by value1 * opcode number: 24 */ $a-=3; - +?> ]]> </programlisting> </section> @@ -1382,7 +1382,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * prepare to perform function call without displaying error messages * opcode number: 57 @@ -1390,7 +1390,7 @@ /* Intentional file error */ $my_file = @file ('non_existent_file') or die ("error:'$php_errormsg'"); - +?> ]]> </programlisting> </section> @@ -1497,7 +1497,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * convert value1 to boolean and store in result?????????? * opcode number: 52 @@ -1505,7 +1505,7 @@ if (1 || 2 || 1) echo "foo"; //$a = true; //if($a) echo "foo"; - +?> ]]> </programlisting> </section> @@ -1582,13 +1582,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Boolean (logical) not of "value" * opcode number: 13 */ echo !1; - +?> ]]> </programlisting> </section> @@ -1635,13 +1635,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Boolean (logical) xor of value1 * opcode number: 14 */ echo 1 xor 2; - +?> ]]> </programlisting> </section> @@ -1688,7 +1688,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * ??? End of a case block exists the current switch block. Followed by JMP? * opcode number: 50 @@ -1697,7 +1697,7 @@ while(1) { if($x == 0) break; } - +?> ]]> </programlisting> </section> @@ -1774,13 +1774,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Bit-wise and of value1 and value2 * opcode number: 10 */ echo 1&2; - +?> ]]> </programlisting> </section> @@ -1827,13 +1827,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Bit-wise not of "value" * opcode number: 12 */ echo ~15; - +?> ]]> </programlisting> </section> @@ -1880,13 +1880,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Bit-wise or of value1 and value2 * opcode number: 9 */ echo 1|2; - +?> ]]> </programlisting> </section> @@ -1933,13 +1933,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Bit-wise xor of value1 and value2 * opcode number: 11 */ echo 1^2; - +?> ]]> </programlisting> </section> @@ -1986,7 +1986,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Set result to true if value1 equals value2. The value2 must be a constant value? * opcode number: 48 @@ -2003,7 +2003,7 @@ echo "i=2"; break; } - +?> ]]> </programlisting> </section> @@ -2134,13 +2134,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * casts value1 as type value2 (?? Not certain about arguments ??) * opcode number: 21 */ echo (int)1; - +?> ]]> </programlisting> </section> @@ -2187,7 +2187,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 107 @@ -2205,7 +2205,7 @@ // Continue execution echo 'Hello World'; - +?> ]]> </programlisting> </section> @@ -2336,14 +2336,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 110 */ $obj = new A(); $copy = clone $obj; - +?> ]]> </programlisting> </section> @@ -2414,13 +2414,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Concats string values string1 and string2 * opcode number: 8 */ echo "hello" . "world"; - +?> ]]> </programlisting> </section> @@ -2467,7 +2467,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Declare a class with the name of class-name as the implementation specified by ID. * opcode number: 139 @@ -2477,7 +2477,7 @@ echo "hello world"; } } - +?> ]]> </programlisting> </section> @@ -2545,7 +2545,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 141 @@ -2554,7 +2554,7 @@ function funcA(){ } } - +?> ]]> </programlisting> </section> @@ -2616,7 +2616,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 140 @@ -2635,7 +2635,7 @@ } } } - +?> ]]> </programlisting> </section> @@ -2778,13 +2778,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Divides "value1" by "value2" and stores the result into "result". * opcode number: 4 */ echo 6/3; - +?> ]]> </programlisting> </section> @@ -2831,13 +2831,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Call a function. Following multiple SEND_VAL, SEND_VAR or SEND_REF. * opcode number: 60 */ $a = phpinfo(); - +?> ]]> </programlisting> </section> @@ -2884,14 +2884,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Call a function by name. Following INIT_FCALL_BY_NAME and multiple SEND_VAL, SEND_VAR or SEND_REF. * opcode number: 61 */ $x = 'phpinfo'; $a = $x(); - +?> ]]> </programlisting> </section> @@ -2950,13 +2950,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Dump text * opcode number: 40 */ echo "hello world"; - +?> ]]> </programlisting> </section> @@ -2997,14 +2997,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * no longer surpress error messages * opcode number: 58 */ $my_file = @file ('non_existent_file') or die ("error:'$php_errormsg'"); - +?> ]]> </programlisting> </section> @@ -3111,13 +3111,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Exit running after dumping "message". * opcode number: 79 */ die("foobar"); - +?> ]]> </programlisting> </section> @@ -3158,12 +3158,12 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 102 * No sample PHP yet */ - +?> ]]> </programlisting> </section> @@ -3174,12 +3174,12 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 103 * No sample PHP yet */ - +?> ]]> </programlisting> </section> @@ -3190,12 +3190,12 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 104 * No sample PHP yet */ - +?> ]]> </programlisting> </section> @@ -3206,12 +3206,12 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 101 * No sample PHP yet */ - +?> ]]> </programlisting> </section> @@ -3222,13 +3222,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 109 */ $obj = new A(); - +?> ]]> </programlisting> </section> @@ -3287,14 +3287,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch the constant value bound to the specified name (name) and stores it into a variable (result). * opcode number: 99 */ define("FOO", "something"); echo FOO; - +?> ]]> </programlisting> </section> @@ -3359,7 +3359,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 93 @@ -3375,7 +3375,7 @@ $z($x[0]); - +?> ]]> </programlisting> </section> @@ -3527,12 +3527,12 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 90 * No sample PHP yet */ - +?> ]]> </programlisting> </section> @@ -3543,7 +3543,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch the value of the element at "index" in "array-value" to store it in "result". Read-only? * opcode number: 81 @@ -3551,7 +3551,7 @@ $x = array(1,2,3); $a = 'x'; echo $$a[0]; - +?> ]]> </programlisting> </section> @@ -3634,7 +3634,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch the value of the element at "index" in "array-value" to store it in "result". * opcode number: 87 @@ -3642,7 +3642,7 @@ $x = array(1,2,3); $a = 'x'; $$a[0]++; - +?> ]]> </programlisting> </section> @@ -3731,13 +3731,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch an entry of an array from a temporal variable? * opcode number: 98 */ list($x) = array("X"); - +?> ]]> </programlisting> </section> @@ -3796,12 +3796,12 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch an entry of an array variable for the purpose of unset() operation. * opcode number: 96 * No sample PHP yet */ - +?> ]]> </programlisting> </section> @@ -3812,7 +3812,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch the value of the element at "index" in "array-value" to store it in "result". Write-only? * opcode number: 84 @@ -3834,7 +3834,7 @@ }*/ - +?> ]]> </programlisting> </section> @@ -3899,7 +3899,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 92 @@ -3914,7 +3914,7 @@ $z($$y); - +?> ]]> </programlisting> </section> @@ -4024,7 +4024,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch the value from variable which is to be used to test if it is set or not, through isset()/isempty(). * opcode number: 89 @@ -4032,7 +4032,7 @@ echo isset($_SESSION['userid']); echo isset($_SESSION['userid'][1]); echo isset($_SESSION->prop->prop); - +?> ]]> </programlisting> </section> @@ -4133,7 +4133,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 94 @@ -4151,7 +4151,7 @@ print $obj->num; $z($obj->num); - +?> ]]> </programlisting> </section> @@ -4348,12 +4348,12 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 91 * No sample PHP yet */ - +?> ]]> </programlisting> </section> @@ -4364,7 +4364,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch the "prop-name" property value of this object. Read-only? * opcode number: 82 @@ -4372,7 +4372,7 @@ $x = new A(); $a = 'x'; echo $$a->num; - +?> ]]> </programlisting> </section> @@ -4455,7 +4455,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch the "prop-name" property value of this object. * opcode number: 88 @@ -4463,7 +4463,7 @@ $x = new A(); $a = 'x'; $$a->num++; - +?> ]]> </programlisting> </section> @@ -4546,12 +4546,12 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch a property of an object variable for the purpose of unset() operation. * opcode number: 97 * No sample PHP yet */ - +?> ]]> </programlisting> </section> @@ -4562,7 +4562,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch the "prop-name" property value of this object. Write-only? * opcode number: 85 @@ -4570,7 +4570,7 @@ $x = new A(); $a = 'x'; $$a->num = 1;; - +?> ]]> </programlisting> </section> @@ -4653,7 +4653,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch the value of the varible of "name" to assign it to a variable? Read-only? * opcode number: 80 @@ -4661,7 +4661,7 @@ $x = 1; $a = 'x'; echo $$a; - +?> ]]> </programlisting> </section> @@ -4720,7 +4720,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch the value of the varible of "name" to assign it to a variable? * opcode number: 86 @@ -4728,7 +4728,7 @@ $x = 1; $a = 'x'; $$a++; - +?> ]]> </programlisting> </section> @@ -4793,12 +4793,12 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch a variable for the purpose of unset() operation. * opcode number: 95 * No sample PHP yet */ - +?> ]]> </programlisting> </section> @@ -4809,7 +4809,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch the value of the varible of "name" to assign it to a variable? Write-only? * opcode number: 83 @@ -4817,7 +4817,7 @@ $x = 1; $a = 'x'; $$a = 2; - +?> ]]> </programlisting> </section> @@ -4876,7 +4876,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Fetch an element from iterator. If no element is available, jump to address. Followed by OP_DATA? * opcode number: 78 @@ -4885,7 +4885,7 @@ foreach($a as $num){ print $num; } - +?> ]]> </programlisting> </section> @@ -4992,7 +4992,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Initialize an iterator on array-value. If the array is empty, jump to address. Followed by FE_FETCH. * opcode number: 77 @@ -5001,7 +5001,7 @@ foreach($a as $num){ print $num; } - +?> ]]> </programlisting> </section> @@ -5108,13 +5108,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Release the allocated space of the value. * opcode number: 70 */ print "Hello World"; - +?> ]]> </programlisting> </section> @@ -5161,12 +5161,12 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 149 */ - +?> ]]> </programlisting> </section> @@ -5201,14 +5201,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Include the file specified by filename and eval it. * opcode number: 73 */ include("test.php"); eval("test.php"); - +?> ]]> </programlisting> </section> @@ -5282,14 +5282,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Allocate a new array with elem-value as the first element of the array. Followed by ADD_ARRAY_ELEMENT. * opcode number: 71 */ $a = array(1,2,3); print_r($a); - +?> ]]> </programlisting> </section> @@ -5360,14 +5360,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * prepare for a function call to function value1 * opcode number: 59 */ $x = 'phpinfo'; $a = $x(); - +?> ]]> </programlisting> </section> @@ -5426,7 +5426,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Prepare for a method call. Followed by DO_FCALL. * opcode number: 112 @@ -5441,7 +5441,7 @@ $obj = new A(); $obj->incrementNum(); - +?> ]]> </programlisting> </section> @@ -5551,7 +5551,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 113 @@ -5563,7 +5563,7 @@ } Foo::aStaticMethod(); - +?> ]]> </programlisting> </section> @@ -5649,13 +5649,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * appears to create a string variable in result * opcode number: 53 */ echo "hello$a world"; - +?> ]]> </programlisting> </section> @@ -5714,7 +5714,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 138 @@ -5724,7 +5724,7 @@ if ($obj instanceof A) { echo 'A'; } - +?> ]]> </programlisting> </section> @@ -5813,13 +5813,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Tests if the entry of an array is set or not. * opcode number: 115 */ if(isset($a[0])) return 0; - +?> ]]> </programlisting> </section> @@ -5878,14 +5878,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 148 */ $obj = new A(); if(empty($obj->num)) return 0; - +?> ]]> </programlisting> </section> @@ -5968,13 +5968,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Tests if the value of a variable is set or not. * opcode number: 114 */ if(isset($a)){ return 0;} - +?> ]]> </programlisting> </section> @@ -6033,14 +6033,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * compares if value1 and value2 are equal * opcode number: 17 */ echo (1 == 1); echo (1 == 'c'); - +?> ]]> </programlisting> </section> @@ -6099,14 +6099,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Compares value1 and value2 to see if they are equal AND have the same type * opcode number: 15 */ echo (1===1); echo (1==='a'); - +?> ]]> </programlisting> </section> @@ -6165,13 +6165,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * compares if value1 and value2 are not equal * opcode number: 18 */ echo (1 != 1); - +?> ]]> </programlisting> </section> @@ -6218,13 +6218,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * compares value1 and value2 to see if they are unequal or of different types * opcode number: 16 */ echo (1 !== 1); - +?> ]]> </programlisting> </section> @@ -6271,13 +6271,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * compares if value1 is less than value2 * opcode number: 19 */ echo (1 < 2); - +?> ]]> </programlisting> </section> @@ -6324,13 +6324,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * compares if value1 is less than or equal to value2 * opcode number: 20 */ echo (1 >= 2); - +?> ]]> </programlisting> </section> @@ -6377,7 +6377,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Jump to the address if the value is not zero * opcode number: 44 @@ -6385,7 +6385,7 @@ for($i=0; $i<3; $i++){ echo "hi"; } - +?> ]]> </programlisting> </section> @@ -6468,13 +6468,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Jump to the address if the xor of value1 and value2 is zero .. ??? * opcode number: 47 */ if(1^2) return; - +?> ]]> </programlisting> </section> @@ -6533,13 +6533,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Jump to the address if the value is zero * opcode number: 43 */ if($a != 0) echo "foo"; - +?> ]]> </programlisting> </section> @@ -6598,7 +6598,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Jump to the address if the value is .. ??? * opcode number: 45 @@ -6606,7 +6606,7 @@ for($i=0; $i<3; $i++){ echo "hi"; } - +?> ]]> </programlisting> </section> @@ -6689,13 +6689,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Jump to the address if the xor of value1 and value2 is zero .. ??? * opcode number: 46 */ - +?> ]]> </programlisting> </section> @@ -6730,13 +6730,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Makes the value of "result" congruent to "value1" modulo "value2". * opcode number: 5 */ echo 6 % 3; - +?> ]]> </programlisting> </section> @@ -6783,13 +6783,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Multiplys "value1" by "value2" and stores the result into "result". * opcode number: 3 */ echo 2*3; - +?> ]]> </programlisting> </section> @@ -6836,13 +6836,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Construct an instance of "type" and store the reference to the object into "result". * opcode number: 68 */ $obj = new A(); - +?> ]]> </programlisting> </section> @@ -6901,13 +6901,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * no operation * opcode number: 0 */ function A(){}; - +?> ]]> </programlisting> </section> @@ -6969,13 +6969,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * decrements variable indicated by value1 by 1 (after performing other operations) and stores in result * opcode number: 37 */ $a--; - +?> ]]> </programlisting> </section> @@ -7022,14 +7022,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 135 */ $obj = new A(); $obj->num--; - +?> ]]> </programlisting> </section> @@ -7100,13 +7100,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * increments variable indicated by value1 by 1 (after performing other operations) and stores in result * opcode number: 36 */ $a++; - +?> ]]> </programlisting> </section> @@ -7153,14 +7153,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Increment the property value specified by prop-name and store the original value into result. * opcode number: 134 */ $obj = new A(); $obj->num++; - +?> ]]> </programlisting> </section> @@ -7231,13 +7231,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * decrements variable indicated by value1 by 1 (before performing other operations) and stores in results * opcode number: 35 */ --$a; - +?> ]]> </programlisting> </section> @@ -7278,14 +7278,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 133 */ $obj = new A(); --$obj->num; - +?> ]]> </programlisting> </section> @@ -7350,13 +7350,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * increments variable indicated by value1 by 1 (before performing other operations) and stores in result * opcode number: 34 */ ++$a; - +?> ]]> </programlisting> </section> @@ -7397,14 +7397,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 132 */ $obj = new A(); ++$obj->num; - +?> ]]> </programlisting> </section> @@ -7469,13 +7469,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 41 */ print "Hello World"; - +?> ]]> </programlisting> </section> @@ -7522,7 +7522,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Question Mark Assign, used twice inside a question mark assign to temporarily assign result as value1 (this is followed up with an ASSIGN bytecode) * opcode number: 22 @@ -7535,7 +7535,7 @@ $b = 0; $a = $b > 1 ? 10: 11; } - +?> ]]> </programlisting> </section> @@ -7696,7 +7696,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 142 @@ -7719,7 +7719,7 @@ $t->show(); echo "Done\n"; // shouldn't be displayed - +?> ]]> </programlisting> </section> @@ -7904,13 +7904,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Receive a functoin argument of "argument-number" and store the argument value into a variable of "argument-number". (e.g. $1 for 1) * opcode number: 63 */ function hello($a){} - +?> ]]> </programlisting> </section> @@ -7978,13 +7978,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Initialize a function argument with "value" if not received from caller. Otherwise same as RECV. * opcode number: 64 */ function hello($a=5){} - +?> ]]> </programlisting> </section> @@ -8052,13 +8052,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Return value from a funciton. * opcode number: 62 */ return 1; - +?> ]]> </programlisting> </section> @@ -8099,13 +8099,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Pass the reference value as an actual parameter to a function. DO_FCALL follows. * opcode number: 67 */ @each($input); - +?> ]]> </programlisting> </section> @@ -8170,7 +8170,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Pass the constant value as an actual parameter to a function. DO_FCALL follows. * opcode number: 65 @@ -8182,7 +8182,7 @@ funcA('HELLO'); defined('IN_PHPBB'); - +?> ]]> </programlisting> </section> @@ -8286,14 +8286,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Pass the variable value as an actual parameter to a function. DO_FCALL follows. * opcode number: 66 */ $a = array(1,2,3); if(is_array($a)){ return 0; } - +?> ]]> </programlisting> </section> @@ -8382,12 +8382,12 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 106 * No sample PHP yet */ - +?> ]]> </programlisting> </section> @@ -8398,13 +8398,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Shift value1 by balue2 bits to left * opcode number: 6 */ echo 8 << 2; - +?> ]]> </programlisting> </section> @@ -8451,13 +8451,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Shift bits to right * opcode number: 7 */ echo 8 >> 2; - +?> ]]> </programlisting> </section> @@ -8504,13 +8504,13 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Subtracts "value2" from "value1" and stores the result into "result". * opcode number: 2 */ echo 1-2; - +?> ]]> </programlisting> </section> @@ -8557,7 +8557,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Release the allocated space of "value"? * opcode number: 49 @@ -8566,7 +8566,7 @@ foreach($a as $num){ print $num; } - +?> ]]> </programlisting> </section> @@ -8673,7 +8673,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 108 @@ -8691,7 +8691,7 @@ // Continue execution echo 'Hello World'; - +?> ]]> </programlisting> </section> @@ -8822,7 +8822,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 105 @@ -8845,7 +8845,7 @@ echo "hello world\n"; } } - +?> ]]> </programlisting> </section> @@ -8997,14 +8997,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Unset the entry of array-value, which is specified by index, and store the original element value into "result". * opcode number: 75 */ $a = array(1,2,3); unset($a[0]); - +?> ]]> </programlisting> </section> @@ -9069,14 +9069,14 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Unset the property of the current object (this) and store the original value into "result". * opcode number: 76 */ $obj = new A(); unset($obj->num); - +?> ]]> </programlisting> </section> @@ -9141,7 +9141,7 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * Unset the variable and store the original value into "result". * opcode number: 74 @@ -9149,7 +9149,7 @@ $x = 1; $a='x'; unset($$a); - +?> ]]> </programlisting> </section> @@ -9202,12 +9202,12 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 150 * No sample PHP yet */ - +?> ]]> </programlisting> </section> @@ -9218,12 +9218,12 @@ <title>PHP code</title> <programlisting role="php"> <![CDATA[ - +<?php /* * * opcode number: 146 * No sample PHP yet */ - +?> ]]> </programlisting> </section>
« previous php.doc.cvs (#4191) next »