How to use is class

Best Mockery code snippet using .is

Run Mockery automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

is_a.phpt

Source: is_a.phpt Github

copy
1--TEST--
2is_a and is_subclass_of behaviour (with and without autoload)
3--FILE--
4<?php
5
6interface if_a {
7    function f_a();
8}
9
10interface if_b extends if_a {
11    function f_b();
12}
13
14class base {
15    function _is_a($sub) {
16
17        echo "\n>>> With Defined class\n";
18        echo str_pad('is_a( OBJECT:'.get_class($this).', '.$sub.') = ', 60) . (is_a($this, $sub) ? 'yes' : 'no')."\n";
19        echo str_pad('is_a( STRING:'.get_class($this).', '.$sub.') = ', 60). (is_a(get_class($this), $sub) ? 'yes' : 'no')."\n";
20        echo str_pad('is_a( STRING:'.get_class($this).', '.$sub.', true) = ', 60). (is_a(get_class($this), $sub, true) ? 'yes' : 'no')."\n";
21        echo str_pad('is_subclass_of( OBJECT:'.get_class($this).', '.$sub.') = ', 60).  (is_subclass_of($this, $sub) ? 'yes' : 'no')."\n";
22        echo str_pad('is_subclass_of( STRING:'.get_class($this).', '.$sub.') = ', 60). (is_subclass_of(get_class($this), $sub) ? 'yes' : 'no')."\n";
23        echo str_pad('is_subclass_of( STRING:'.get_class($this).', '.$sub.',false) = ', 60). (is_subclass_of(get_class($this), $sub , false) ? 'yes' : 'no')."\n";
24
25        // with autoload options..
26        echo ">>> With Undefined\n";
27        echo  str_pad('is_a( STRING:undefB, '.$sub.',true) = ', 60). (is_a('undefB', $sub, true) ? 'yes' : 'no')."\n";
28        echo  str_pad('is_a( STRING:undefB, '.$sub.') = ', 60). (is_a('undefB', $sub) ? 'yes' : 'no')."\n";
29        echo  str_pad('is_subclass_of( STRING:undefB, '.$sub.',false) = ', 60). (is_subclass_of('undefB', $sub, false) ? 'yes' : 'no')."\n";
30        echo  str_pad('is_subclass_of( STRING:undefB, '.$sub.') = ', 60). (is_subclass_of('undefB', $sub) ? 'yes' : 'no')."\n";
31    }
32    function test() {
33        echo $this->_is_a('base');
34        echo $this->_is_a('derived_a');
35        echo $this->_is_a('if_a');
36        echo $this->_is_a('undefA');
37        echo "\n";
38    }
39}
40
41class derived_a extends base implements if_a {
42    function f_a() {}
43}
44
45class derived_b extends base implements if_a, if_b {
46    function f_a() {}
47    function f_b() {}
48}
49
50class derived_c extends derived_a implements if_b {
51    function f_b() {}
52}
53
54class derived_d extends derived_c {
55}
56
57$t = new base();
58$t->test();
59
60$t = new derived_a();
61$t->test();
62
63spl_autoload_register(function ($name) {
64    echo ">>>> In autoload: ";
65    var_dump($name);
66});
67
68echo "NOW WITH AUTOLOAD\n\n";
69
70$t = new base();
71$t->test();
72
73$t = new derived_a();
74$t->test();
75
76$t = new derived_b();
77$t->test();
78
79
80
81
82
83?>
84--EXPECT--
85>>> With Defined class
86is_a( OBJECT:base, base) =                                  yes
87is_a( STRING:base, base) =                                  no
88is_a( STRING:base, base, true) =                            yes
89is_subclass_of( OBJECT:base, base) =                        no
90is_subclass_of( STRING:base, base) =                        no
91is_subclass_of( STRING:base, base,false) =                  no
92>>> With Undefined
93is_a( STRING:undefB, base,true) =                           no
94is_a( STRING:undefB, base) =                                no
95is_subclass_of( STRING:undefB, base,false) =                no
96is_subclass_of( STRING:undefB, base) =                      no
97
98>>> With Defined class
99is_a( OBJECT:base, derived_a) =                             no
100is_a( STRING:base, derived_a) =                             no
101is_a( STRING:base, derived_a, true) =                       no
102is_subclass_of( OBJECT:base, derived_a) =                   no
103is_subclass_of( STRING:base, derived_a) =                   no
104is_subclass_of( STRING:base, derived_a,false) =             no
105>>> With Undefined
106is_a( STRING:undefB, derived_a,true) =                      no
107is_a( STRING:undefB, derived_a) =                           no
108is_subclass_of( STRING:undefB, derived_a,false) =           no
109is_subclass_of( STRING:undefB, derived_a) =                 no
110
111>>> With Defined class
112is_a( OBJECT:base, if_a) =                                  no
113is_a( STRING:base, if_a) =                                  no
114is_a( STRING:base, if_a, true) =                            no
115is_subclass_of( OBJECT:base, if_a) =                        no
116is_subclass_of( STRING:base, if_a) =                        no
117is_subclass_of( STRING:base, if_a,false) =                  no
118>>> With Undefined
119is_a( STRING:undefB, if_a,true) =                           no
120is_a( STRING:undefB, if_a) =                                no
121is_subclass_of( STRING:undefB, if_a,false) =                no
122is_subclass_of( STRING:undefB, if_a) =                      no
123
124>>> With Defined class
125is_a( OBJECT:base, undefA) =                                no
126is_a( STRING:base, undefA) =                                no
127is_a( STRING:base, undefA, true) =                          no
128is_subclass_of( OBJECT:base, undefA) =                      no
129is_subclass_of( STRING:base, undefA) =                      no
130is_subclass_of( STRING:base, undefA,false) =                no
131>>> With Undefined
132is_a( STRING:undefB, undefA,true) =                         no
133is_a( STRING:undefB, undefA) =                              no
134is_subclass_of( STRING:undefB, undefA,false) =              no
135is_subclass_of( STRING:undefB, undefA) =                    no
136
137
138>>> With Defined class
139is_a( OBJECT:derived_a, base) =                             yes
140is_a( STRING:derived_a, base) =                             no
141is_a( STRING:derived_a, base, true) =                       yes
142is_subclass_of( OBJECT:derived_a, base) =                   yes
143is_subclass_of( STRING:derived_a, base) =                   yes
144is_subclass_of( STRING:derived_a, base,false) =             no
145>>> With Undefined
146is_a( STRING:undefB, base,true) =                           no
147is_a( STRING:undefB, base) =                                no
148is_subclass_of( STRING:undefB, base,false) =                no
149is_subclass_of( STRING:undefB, base) =                      no
150
151>>> With Defined class
152is_a( OBJECT:derived_a, derived_a) =                        yes
153is_a( STRING:derived_a, derived_a) =                        no
154is_a( STRING:derived_a, derived_a, true) =                  yes
155is_subclass_of( OBJECT:derived_a, derived_a) =              no
156is_subclass_of( STRING:derived_a, derived_a) =              no
157is_subclass_of( STRING:derived_a, derived_a,false) =        no
158>>> With Undefined
159is_a( STRING:undefB, derived_a,true) =                      no
160is_a( STRING:undefB, derived_a) =                           no
161is_subclass_of( STRING:undefB, derived_a,false) =           no
162is_subclass_of( STRING:undefB, derived_a) =                 no
163
164>>> With Defined class
165is_a( OBJECT:derived_a, if_a) =                             yes
166is_a( STRING:derived_a, if_a) =                             no
167is_a( STRING:derived_a, if_a, true) =                       yes
168is_subclass_of( OBJECT:derived_a, if_a) =                   yes
169is_subclass_of( STRING:derived_a, if_a) =                   yes
170is_subclass_of( STRING:derived_a, if_a,false) =             no
171>>> With Undefined
172is_a( STRING:undefB, if_a,true) =                           no
173is_a( STRING:undefB, if_a) =                                no
174is_subclass_of( STRING:undefB, if_a,false) =                no
175is_subclass_of( STRING:undefB, if_a) =                      no
176
177>>> With Defined class
178is_a( OBJECT:derived_a, undefA) =                           no
179is_a( STRING:derived_a, undefA) =                           no
180is_a( STRING:derived_a, undefA, true) =                     no
181is_subclass_of( OBJECT:derived_a, undefA) =                 no
182is_subclass_of( STRING:derived_a, undefA) =                 no
183is_subclass_of( STRING:derived_a, undefA,false) =           no
184>>> With Undefined
185is_a( STRING:undefB, undefA,true) =                         no
186is_a( STRING:undefB, undefA) =                              no
187is_subclass_of( STRING:undefB, undefA,false) =              no
188is_subclass_of( STRING:undefB, undefA) =                    no
189
190NOW WITH AUTOLOAD
191
192
193>>> With Defined class
194is_a( OBJECT:base, base) =                                  yes
195is_a( STRING:base, base) =                                  no
196is_a( STRING:base, base, true) =                            yes
197is_subclass_of( OBJECT:base, base) =                        no
198is_subclass_of( STRING:base, base) =                        no
199is_subclass_of( STRING:base, base,false) =                  no
200>>> With Undefined
201>>>> In autoload: string(6) "undefB"
202is_a( STRING:undefB, base,true) =                           no
203is_a( STRING:undefB, base) =                                no
204is_subclass_of( STRING:undefB, base,false) =                no
205>>>> In autoload: string(6) "undefB"
206is_subclass_of( STRING:undefB, base) =                      no
207
208>>> With Defined class
209is_a( OBJECT:base, derived_a) =                             no
210is_a( STRING:base, derived_a) =                             no
211is_a( STRING:base, derived_a, true) =                       no
212is_subclass_of( OBJECT:base, derived_a) =                   no
213is_subclass_of( STRING:base, derived_a) =                   no
214is_subclass_of( STRING:base, derived_a,false) =             no
215>>> With Undefined
216>>>> In autoload: string(6) "undefB"
217is_a( STRING:undefB, derived_a,true) =                      no
218is_a( STRING:undefB, derived_a) =                           no
219is_subclass_of( STRING:undefB, derived_a,false) =           no
220>>>> In autoload: string(6) "undefB"
221is_subclass_of( STRING:undefB, derived_a) =                 no
222
223>>> With Defined class
224is_a( OBJECT:base, if_a) =                                  no
225is_a( STRING:base, if_a) =                                  no
226is_a( STRING:base, if_a, true) =                            no
227is_subclass_of( OBJECT:base, if_a) =                        no
228is_subclass_of( STRING:base, if_a) =                        no
229is_subclass_of( STRING:base, if_a,false) =                  no
230>>> With Undefined
231>>>> In autoload: string(6) "undefB"
232is_a( STRING:undefB, if_a,true) =                           no
233is_a( STRING:undefB, if_a) =                                no
234is_subclass_of( STRING:undefB, if_a,false) =                no
235>>>> In autoload: string(6) "undefB"
236is_subclass_of( STRING:undefB, if_a) =                      no
237
238>>> With Defined class
239is_a( OBJECT:base, undefA) =                                no
240is_a( STRING:base, undefA) =                                no
241is_a( STRING:base, undefA, true) =                          no
242is_subclass_of( OBJECT:base, undefA) =                      no
243is_subclass_of( STRING:base, undefA) =                      no
244is_subclass_of( STRING:base, undefA,false) =                no
245>>> With Undefined
246>>>> In autoload: string(6) "undefB"
247is_a( STRING:undefB, undefA,true) =                         no
248is_a( STRING:undefB, undefA) =                              no
249is_subclass_of( STRING:undefB, undefA,false) =              no
250>>>> In autoload: string(6) "undefB"
251is_subclass_of( STRING:undefB, undefA) =                    no
252
253
254>>> With Defined class
255is_a( OBJECT:derived_a, base) =                             yes
256is_a( STRING:derived_a, base) =                             no
257is_a( STRING:derived_a, base, true) =                       yes
258is_subclass_of( OBJECT:derived_a, base) =                   yes
259is_subclass_of( STRING:derived_a, base) =                   yes
260is_subclass_of( STRING:derived_a, base,false) =             no
261>>> With Undefined
262>>>> In autoload: string(6) "undefB"
263is_a( STRING:undefB, base,true) =                           no
264is_a( STRING:undefB, base) =                                no
265is_subclass_of( STRING:undefB, base,false) =                no
266>>>> In autoload: string(6) "undefB"
267is_subclass_of( STRING:undefB, base) =                      no
268
269>>> With Defined class
270is_a( OBJECT:derived_a, derived_a) =                        yes
271is_a( STRING:derived_a, derived_a) =                        no
272is_a( STRING:derived_a, derived_a, true) =                  yes
273is_subclass_of( OBJECT:derived_a, derived_a) =              no
274is_subclass_of( STRING:derived_a, derived_a) =              no
275is_subclass_of( STRING:derived_a, derived_a,false) =        no
276>>> With Undefined
277>>>> In autoload: string(6) "undefB"
278is_a( STRING:undefB, derived_a,true) =                      no
279is_a( STRING:undefB, derived_a) =                           no
280is_subclass_of( STRING:undefB, derived_a,false) =           no
281>>>> In autoload: string(6) "undefB"
282is_subclass_of( STRING:undefB, derived_a) =                 no
283
284>>> With Defined class
285is_a( OBJECT:derived_a, if_a) =                             yes
286is_a( STRING:derived_a, if_a) =                             no
287is_a( STRING:derived_a, if_a, true) =                       yes
288is_subclass_of( OBJECT:derived_a, if_a) =                   yes
289is_subclass_of( STRING:derived_a, if_a) =                   yes
290is_subclass_of( STRING:derived_a, if_a,false) =             no
291>>> With Undefined
292>>>> In autoload: string(6) "undefB"
293is_a( STRING:undefB, if_a,true) =                           no
294is_a( STRING:undefB, if_a) =                                no
295is_subclass_of( STRING:undefB, if_a,false) =                no
296>>>> In autoload: string(6) "undefB"
297is_subclass_of( STRING:undefB, if_a) =                      no
298
299>>> With Defined class
300is_a( OBJECT:derived_a, undefA) =                           no
301is_a( STRING:derived_a, undefA) =                           no
302is_a( STRING:derived_a, undefA, true) =                     no
303is_subclass_of( OBJECT:derived_a, undefA) =                 no
304is_subclass_of( STRING:derived_a, undefA) =                 no
305is_subclass_of( STRING:derived_a, undefA,false) =           no
306>>> With Undefined
307>>>> In autoload: string(6) "undefB"
308is_a( STRING:undefB, undefA,true) =                         no
309is_a( STRING:undefB, undefA) =                              no
310is_subclass_of( STRING:undefB, undefA,false) =              no
311>>>> In autoload: string(6) "undefB"
312is_subclass_of( STRING:undefB, undefA) =                    no
313
314
315>>> With Defined class
316is_a( OBJECT:derived_b, base) =                             yes
317is_a( STRING:derived_b, base) =                             no
318is_a( STRING:derived_b, base, true) =                       yes
319is_subclass_of( OBJECT:derived_b, base) =                   yes
320is_subclass_of( STRING:derived_b, base) =                   yes
321is_subclass_of( STRING:derived_b, base,false) =             no
322>>> With Undefined
323>>>> In autoload: string(6) "undefB"
324is_a( STRING:undefB, base,true) =                           no
325is_a( STRING:undefB, base) =                                no
326is_subclass_of( STRING:undefB, base,false) =                no
327>>>> In autoload: string(6) "undefB"
328is_subclass_of( STRING:undefB, base) =                      no
329
330>>> With Defined class
331is_a( OBJECT:derived_b, derived_a) =                        no
332is_a( STRING:derived_b, derived_a) =                        no
333is_a( STRING:derived_b, derived_a, true) =                  no
334is_subclass_of( OBJECT:derived_b, derived_a) =              no
335is_subclass_of( STRING:derived_b, derived_a) =              no
336is_subclass_of( STRING:derived_b, derived_a,false) =        no
337>>> With Undefined
338>>>> In autoload: string(6) "undefB"
339is_a( STRING:undefB, derived_a,true) =                      no
340is_a( STRING:undefB, derived_a) =                           no
341is_subclass_of( STRING:undefB, derived_a,false) =           no
342>>>> In autoload: string(6) "undefB"
343is_subclass_of( STRING:undefB, derived_a) =                 no
344
345>>> With Defined class
346is_a( OBJECT:derived_b, if_a) =                             yes
347is_a( STRING:derived_b, if_a) =                             no
348is_a( STRING:derived_b, if_a, true) =                       yes
349is_subclass_of( OBJECT:derived_b, if_a) =                   yes
350is_subclass_of( STRING:derived_b, if_a) =                   yes
351is_subclass_of( STRING:derived_b, if_a,false) =             no
352>>> With Undefined
353>>>> In autoload: string(6) "undefB"
354is_a( STRING:undefB, if_a,true) =                           no
355is_a( STRING:undefB, if_a) =                                no
356is_subclass_of( STRING:undefB, if_a,false) =                no
357>>>> In autoload: string(6) "undefB"
358is_subclass_of( STRING:undefB, if_a) =                      no
359
360>>> With Defined class
361is_a( OBJECT:derived_b, undefA) =                           no
362is_a( STRING:derived_b, undefA) =                           no
363is_a( STRING:derived_b, undefA, true) =                     no
364is_subclass_of( OBJECT:derived_b, undefA) =                 no
365is_subclass_of( STRING:derived_b, undefA) =                 no
366is_subclass_of( STRING:derived_b, undefA,false) =           no
367>>> With Undefined
368>>>> In autoload: string(6) "undefB"
369is_a( STRING:undefB, undefA,true) =                         no
370is_a( STRING:undefB, undefA) =                              no
371is_subclass_of( STRING:undefB, undefA,false) =              no
372>>>> In autoload: string(6) "undefB"
373is_subclass_of( STRING:undefB, undefA) =                    no
374
Full Screen

024.phpt

Source: 024.phpt Github

copy
1--TEST--
2Looped regression test (may take a while)
3--FILE--
4<?php
5for ($jdk=0; $jdk<50; $jdk++) {
6?><html>
7<head>
8<?php /* the point of this file is to intensively test various aspects of the parser.
9    * right now, each test focuses in one aspect only (e.g. variable aliasing, arithemtic operator,
10    * various control structures), while trying to combine code from other parts of the parser as well.
11    */
12?>
13*** Testing assignments and variable aliasing: ***
14<?php
15  /* This test tests assignments to variables using other variables as variable-names */
16  $a = "b";
17  $$a = "test";
18  $$$a = "blah";
19  ${$$$a}["associative arrays work too"] = "this is nifty";
20?>
21This should read "blah": <?php echo "$test\n"; ?>
22This should read "this is nifty": <?php echo $blah[$test="associative arrays work too"]."\n"; ?>
23*************************************************
24
25*** Testing integer operators ***
26<?php
27  /* test just about any operator possible on $i and $j (ints) */
28  $i = 5;
29  $j = 3;
30?>
31Correct result - 8:  <?php echo $i+$j; ?>
32
33Correct result - 8:  <?php echo $i+$j; ?>
34
35Correct result - 2:  <?php echo $i-$j; ?>
36
37Correct result - -2:  <?php echo $j-$i; ?>
38
39Correct result - 15:  <?php echo $i*$j; ?>
40
41Correct result - 15:  <?php echo $j*$i; ?>
42
43Correct result - 2:  <?php echo $i%$j; ?>
44
45Correct result - 3:  <?php echo $j%$i; ?>
46
47*********************************
48
49*** Testing real operators ***
50<?php
51  /* test just about any operator possible on $i and $j (floats) */
52  $i = 5.0;
53  $j = 3.0;
54?>
55Correct result - 8:  <?php echo $i+$j; ?>
56
57Correct result - 8:  <?php echo $i+$j; ?>
58
59Correct result - 2:  <?php echo $i-$j; ?>
60
61Correct result - -2:  <?php echo $j-$i; ?>
62
63Correct result - 15:  <?php echo $i*$j; ?>
64
65Correct result - 15:  <?php echo $j*$i; ?>
66
67Correct result - 2:  <?php echo $i%$j; ?>
68
69Correct result - 3:  <?php echo $j%$i; ?>
70
71*********************************
72
73*** Testing if/elseif/else control ***
74
75<?php
76/* sick if/elseif/else test by Andi :) */
77$a = 5;
78if ($a == "4") {
79    echo "This "." does "."  not "." work\n";
80} elseif ($a == "5") {
81    echo "This "." works\n";
82    $a = 6;
83    if ("andi" == ($test = "andi")) {
84        echo "this_still_works\n";
85    } elseif (1) {
86        echo "should_not_print\n";
87    } else {
88            echo "should_not_print\n";
89    }
90        if (44 == 43) {
91        echo "should_not_print\n";
92    } else {
93        echo "should_print\n";
94    }
95} elseif ($a == 6) {
96    echo "this "."broken\n";
97    if (0) {
98        echo "this_should_not_print\n";
99    } else {
100        echo "TestingDanglingElse_This_Should_not_print\n";
101    }
102} else {
103    echo "This "."does "." not"." work\n";
104}
105?>
106
107
108*** Seriously nested if's test ***
109** spelling correction by kluzz **
110<?php
111/* yet another sick if/elseif/else test by Zeev */
112$i=$j=0;
113echo "Only two lines of text should follow:\n";
114if (0) { /* this code is not supposed to be executed */
115  echo "hmm, this shouldn't be displayed #1\n";
116  $j++;
117  if (1) {
118    $i += $j;
119    if (0) {
120      $j = ++$i;
121      if (1) {
122        $j *= $i;
123        echo "damn, this shouldn't be displayed\n";
124      } else {
125        $j /= $i;
126        ++$j;
127        echo "this shouldn't be displayed either\n";
128      }
129    } elseif (1) {
130      $i++; $j++;
131      echo "this isn't supposed to be displayed\n";
132    }
133  } elseif (0) {
134    $i++;
135    echo "this definitely shouldn't be displayed\n";
136  } else {
137    --$j;
138    echo "and this too shouldn't be displayed\n";
139    while ($j>0) {
140      $j--;
141    }
142  }
143} elseif (2-2) {  /* as long as 2-2==0, this isn't supposed to be executed either */
144  $i = ++$j;
145  echo "hmm, this shouldn't be displayed #2\n";
146  if (1) {
147    $j = ++$i;
148    if (0) {
149      $j = $i*2+$j*($i++);
150      if (1) {
151        $i++;
152        echo "damn, this shouldn't be displayed\n";
153      } else {
154        $j++;
155        echo "this shouldn't be displayed either\n";
156      }
157    } else if (1) {
158      ++$j;
159      echo "this isn't supposed to be displayed\n";
160    }
161  } elseif (0) {
162    $j++;
163    echo "this definitely shouldn't be displayed\n";
164  } else {
165    $i++;
166    echo "and this too shouldn't be displayed\n";
167  }
168} else {
169  $j=$i++;  /* this should set $i to 1, but shouldn't change $j (it's assigned $i's previous values, zero) */
170  echo "this should be displayed. should be:  \$i=1, \$j=0.  is:  \$i=$i, \$j=$j\n";
171  if (1) {
172    $j += ++$i;  /* ++$i --> $i==2,  $j += 2 --> $j==2 */
173    if (0) {
174      $j += 40;
175      if (1) {
176        $i += 50;
177        echo "damn, this shouldn't be displayed\n";
178      } else {
179        $j += 20;
180        echo "this shouldn't be displayed either\n";
181      }
182    } else if (1) {
183      $j *= $i;  /* $j *= 2  --> $j == 4 */
184      echo "this is supposed to be displayed. should be:  \$i=2, \$j=4.  is:  \$i=$i, \$j=$j\n";
185      echo "3 loop iterations should follow:\n";
186      while ($i<=$j) {
187        echo $i++." $j\n";
188      }
189    }
190  } elseif (0) {
191    echo "this definitely shouldn't be displayed\n";
192  } else {
193    echo "and this too shouldn't be displayed\n";
194  }
195  echo "**********************************\n";
196}
197?>
198
199*** C-style else-if's ***
200<?php
201  /* looks like without we even tried, C-style else-if structure works fine! */
202  if ($a=0) {
203    echo "This shouldn't be displayed\n";
204  } else if ($a++) {
205    echo "This shouldn't be displayed either\n";
206  } else if (--$a) {
207    echo "No, this neither\n";
208  } else if (++$a) {
209    echo "This should be displayed\n";
210  } else {
211    echo "This shouldn't be displayed at all\n";
212  }
213?>
214*************************
215
216*** WHILE tests ***
217<?php
218$i=0;
219$j=20;
220while ($i<(2*$j)) {
221  if ($i>$j) {
222    echo "$i is greater than $j\n";
223  } else if ($i==$j) {
224    echo "$i equals $j\n";
225  } else {
226    echo "$i is smaller than $j\n";
227  }
228  $i++;
229}
230?>
231*******************
232
233
234*** Nested WHILEs ***
235<?php
236$arr_len=3;
237
238$i=0;
239while ($i<$arr_len) {
240  $j=0;
241  while ($j<$arr_len) {
242    $k=0;
243    while ($k<$arr_len) {
244      ${"test$i$j"}[$k] = $i+$j+$k;
245      $k++;
246    }
247    $j++;
248  }
249  $i++;
250}
251
252echo "Each array variable should be equal to the sum of its indices:\n";
253
254$i=0;
255while ($i<$arr_len) {
256  $j=0;
257  while ($j<$arr_len) {
258    $k=0;
259    while ($k<$arr_len) {
260      echo "\${test$i$j}[$k] = ".${"test$i$j"}[$k]."\n";
261      $k++;
262    }
263    $j++;
264  }
265  $i++;
266}
267?>
268*********************
269
270*** hash test... ***
271<?php
272/*
273$i=0;
274
275while ($i<10000) {
276  $arr[$i]=$i;
277  $i++;
278}
279
280$i=0;
281while ($i<10000) {
282  echo $arr[$i++]."\n";
283}
284*/
285echo "commented out...";
286?>
287
288**************************
289
290*** Hash resizing test ***
291<?php
292$i = 10;
293$a = "b";
294while ($i > 0) {
295    $a = $a . "a";
296    echo "$a\n";
297    $resize[$a] = $i;
298    $i--;
299}
300$i = 10;
301$a = "b";
302while ($i > 0) {
303    $a = $a . "a";
304    echo "$a\n";
305    echo $resize[$a]."\n";
306    $i--;
307}
308?>
309**************************
310
311
312*** break/continue test ***
313<?php
314$i=0;
315
316echo "\$i should go from 0 to 2\n";
317while ($i<5) {
318  if ($i>2) {
319    break;
320  }
321  $j=0;
322  echo "\$j should go from 3 to 4, and \$q should go from 3 to 4\n";
323  while ($j<5) {
324    if ($j<=2) {
325      $j++;
326      continue;
327    }
328    echo "  \$j=$j\n";
329    for ($q=0; $q<=10; $q++) {
330      if ($q<3) {
331        continue;
332      }
333      if ($q>4) {
334        break;
335      }
336      echo "    \$q=$q\n";
337    }
338    $j++;
339  }
340  $j=0;
341  echo "\$j should go from 0 to 2\n";
342  while ($j<5) {
343    if ($j>2) {
344      $k=0;
345      echo "\$k should go from 0 to 2\n";
346      while ($k<5) {
347        if ($k>2) {
348          break 2;
349        }
350        echo "    \$k=$k\n";
351        $k++;
352      }
353    }
354    echo "  \$j=$j\n";
355    $j++;
356  }
357  echo "\$i=$i\n";
358  $i++;
359}
360?>
361***********************
362
363*** Nested file include test ***
364<?php include("023-2.inc"); ?>
365********************************
366
367<?php
368{
369  echo "Tests completed.\n";  # testing some PHP style comment...
370}
371
372} ?>
373--EXPECT--
374<html>
375<head>
376*** Testing assignments and variable aliasing: ***
377This should read "blah": blah
378This should read "this is nifty": this is nifty
379*************************************************
380
381*** Testing integer operators ***
382Correct result - 8:  8
383Correct result - 8:  8
384Correct result - 2:  2
385Correct result - -2:  -2
386Correct result - 15:  15
387Correct result - 15:  15
388Correct result - 2:  2
389Correct result - 3:  3
390*********************************
391
392*** Testing real operators ***
393Correct result - 8:  8
394Correct result - 8:  8
395Correct result - 2:  2
396Correct result - -2:  -2
397Correct result - 15:  15
398Correct result - 15:  15
399Correct result - 2:  2
400Correct result - 3:  3
401*********************************
402
403*** Testing if/elseif/else control ***
404
405This  works
406this_still_works
407should_print
408
409
410*** Seriously nested if's test ***
411** spelling correction by kluzz **
412Only two lines of text should follow:
413this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
414this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
4153 loop iterations should follow:
4162 4
4173 4
4184 4
419**********************************
420
421*** C-style else-if's ***
422This should be displayed
423*************************
424
425*** WHILE tests ***
4260 is smaller than 20
4271 is smaller than 20
4282 is smaller than 20
4293 is smaller than 20
4304 is smaller than 20
4315 is smaller than 20
4326 is smaller than 20
4337 is smaller than 20
4348 is smaller than 20
4359 is smaller than 20
43610 is smaller than 20
43711 is smaller than 20
43812 is smaller than 20
43913 is smaller than 20
44014 is smaller than 20
44115 is smaller than 20
44216 is smaller than 20
44317 is smaller than 20
44418 is smaller than 20
44519 is smaller than 20
44620 equals 20
44721 is greater than 20
44822 is greater than 20
44923 is greater than 20
45024 is greater than 20
45125 is greater than 20
45226 is greater than 20
45327 is greater than 20
45428 is greater than 20
45529 is greater than 20
45630 is greater than 20
45731 is greater than 20
45832 is greater than 20
45933 is greater than 20
46034 is greater than 20
46135 is greater than 20
46236 is greater than 20
46337 is greater than 20
46438 is greater than 20
46539 is greater than 20
466*******************
467
468
469*** Nested WHILEs ***
470Each array variable should be equal to the sum of its indices:
471${test00}[0] = 0
472${test00}[1] = 1
473${test00}[2] = 2
474${test01}[0] = 1
475${test01}[1] = 2
476${test01}[2] = 3
477${test02}[0] = 2
478${test02}[1] = 3
479${test02}[2] = 4
480${test10}[0] = 1
481${test10}[1] = 2
482${test10}[2] = 3
483${test11}[0] = 2
484${test11}[1] = 3
485${test11}[2] = 4
486${test12}[0] = 3
487${test12}[1] = 4
488${test12}[2] = 5
489${test20}[0] = 2
490${test20}[1] = 3
491${test20}[2] = 4
492${test21}[0] = 3
493${test21}[1] = 4
494${test21}[2] = 5
495${test22}[0] = 4
496${test22}[1] = 5
497${test22}[2] = 6
498*********************
499
500*** hash test... ***
501commented out...
502**************************
503
504*** Hash resizing test ***
505ba
506baa
507baaa
508baaaa
509baaaaa
510baaaaaa
511baaaaaaa
512baaaaaaaa
513baaaaaaaaa
514baaaaaaaaaa
515ba
51610
517baa
5189
519baaa
5208
521baaaa
5227
523baaaaa
5246
525baaaaaa
5265
527baaaaaaa
5284
529baaaaaaaa
5303
531baaaaaaaaa
5322
533baaaaaaaaaa
5341
535**************************
536
537
538*** break/continue test ***
539$i should go from 0 to 2
540$j should go from 3 to 4, and $q should go from 3 to 4
541  $j=3
542    $q=3
543    $q=4
544  $j=4
545    $q=3
546    $q=4
547$j should go from 0 to 2
548  $j=0
549  $j=1
550  $j=2
551$k should go from 0 to 2
552    $k=0
553    $k=1
554    $k=2
555$i=0
556$j should go from 3 to 4, and $q should go from 3 to 4
557  $j=3
558    $q=3
559    $q=4
560  $j=4
561    $q=3
562    $q=4
563$j should go from 0 to 2
564  $j=0
565  $j=1
566  $j=2
567$k should go from 0 to 2
568    $k=0
569    $k=1
570    $k=2
571$i=1
572$j should go from 3 to 4, and $q should go from 3 to 4
573  $j=3
574    $q=3
575    $q=4
576  $j=4
577    $q=3
578    $q=4
579$j should go from 0 to 2
580  $j=0
581  $j=1
582  $j=2
583$k should go from 0 to 2
584    $k=0
585    $k=1
586    $k=2
587$i=2
588***********************
589
590*** Nested file include test ***
591<html>
592This is Finish.phtml.  This file is supposed to be included
593from regression_test.phtml.  This is normal HTML.
594and this is PHP code, 2+2=4
595</html>
596********************************
597
598Tests completed.
599<html>
600<head>
601*** Testing assignments and variable aliasing: ***
602This should read "blah": blah
603This should read "this is nifty": this is nifty
604*************************************************
605
606*** Testing integer operators ***
607Correct result - 8:  8
608Correct result - 8:  8
609Correct result - 2:  2
610Correct result - -2:  -2
611Correct result - 15:  15
612Correct result - 15:  15
613Correct result - 2:  2
614Correct result - 3:  3
615*********************************
616
617*** Testing real operators ***
618Correct result - 8:  8
619Correct result - 8:  8
620Correct result - 2:  2
621Correct result - -2:  -2
622Correct result - 15:  15
623Correct result - 15:  15
624Correct result - 2:  2
625Correct result - 3:  3
626*********************************
627
628*** Testing if/elseif/else control ***
629
630This  works
631this_still_works
632should_print
633
634
635*** Seriously nested if's test ***
636** spelling correction by kluzz **
637Only two lines of text should follow:
638this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
639this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
6403 loop iterations should follow:
6412 4
6423 4
6434 4
644**********************************
645
646*** C-style else-if's ***
647This should be displayed
648*************************
649
650*** WHILE tests ***
6510 is smaller than 20
6521 is smaller than 20
6532 is smaller than 20
6543 is smaller than 20
6554 is smaller than 20
6565 is smaller than 20
6576 is smaller than 20
6587 is smaller than 20
6598 is smaller than 20
6609 is smaller than 20
66110 is smaller than 20
66211 is smaller than 20
66312 is smaller than 20
66413 is smaller than 20
66514 is smaller than 20
66615 is smaller than 20
66716 is smaller than 20
66817 is smaller than 20
66918 is smaller than 20
67019 is smaller than 20
67120 equals 20
67221 is greater than 20
67322 is greater than 20
67423 is greater than 20
67524 is greater than 20
67625 is greater than 20
67726 is greater than 20
67827 is greater than 20
67928 is greater than 20
68029 is greater than 20
68130 is greater than 20
68231 is greater than 20
68332 is greater than 20
68433 is greater than 20
68534 is greater than 20
68635 is greater than 20
68736 is greater than 20
68837 is greater than 20
68938 is greater than 20
69039 is greater than 20
691*******************
692
693
694*** Nested WHILEs ***
695Each array variable should be equal to the sum of its indices:
696${test00}[0] = 0
697${test00}[1] = 1
698${test00}[2] = 2
699${test01}[0] = 1
700${test01}[1] = 2
701${test01}[2] = 3
702${test02}[0] = 2
703${test02}[1] = 3
704${test02}[2] = 4
705${test10}[0] = 1
706${test10}[1] = 2
707${test10}[2] = 3
708${test11}[0] = 2
709${test11}[1] = 3
710${test11}[2] = 4
711${test12}[0] = 3
712${test12}[1] = 4
713${test12}[2] = 5
714${test20}[0] = 2
715${test20}[1] = 3
716${test20}[2] = 4
717${test21}[0] = 3
718${test21}[1] = 4
719${test21}[2] = 5
720${test22}[0] = 4
721${test22}[1] = 5
722${test22}[2] = 6
723*********************
724
725*** hash test... ***
726commented out...
727**************************
728
729*** Hash resizing test ***
730ba
731baa
732baaa
733baaaa
734baaaaa
735baaaaaa
736baaaaaaa
737baaaaaaaa
738baaaaaaaaa
739baaaaaaaaaa
740ba
74110
742baa
7439
744baaa
7458
746baaaa
7477
748baaaaa
7496
750baaaaaa
7515
752baaaaaaa
7534
754baaaaaaaa
7553
756baaaaaaaaa
7572
758baaaaaaaaaa
7591
760**************************
761
762
763*** break/continue test ***
764$i should go from 0 to 2
765$j should go from 3 to 4, and $q should go from 3 to 4
766  $j=3
767    $q=3
768    $q=4
769  $j=4
770    $q=3
771    $q=4
772$j should go from 0 to 2
773  $j=0
774  $j=1
775  $j=2
776$k should go from 0 to 2
777    $k=0
778    $k=1
779    $k=2
780$i=0
781$j should go from 3 to 4, and $q should go from 3 to 4
782  $j=3
783    $q=3
784    $q=4
785  $j=4
786    $q=3
787    $q=4
788$j should go from 0 to 2
789  $j=0
790  $j=1
791  $j=2
792$k should go from 0 to 2
793    $k=0
794    $k=1
795    $k=2
796$i=1
797$j should go from 3 to 4, and $q should go from 3 to 4
798  $j=3
799    $q=3
800    $q=4
801  $j=4
802    $q=3
803    $q=4
804$j should go from 0 to 2
805  $j=0
806  $j=1
807  $j=2
808$k should go from 0 to 2
809    $k=0
810    $k=1
811    $k=2
812$i=2
813***********************
814
815*** Nested file include test ***
816<html>
817This is Finish.phtml.  This file is supposed to be included
818from regression_test.phtml.  This is normal HTML.
819and this is PHP code, 2+2=4
820</html>
821********************************
822
823Tests completed.
824<html>
825<head>
826*** Testing assignments and variable aliasing: ***
827This should read "blah": blah
828This should read "this is nifty": this is nifty
829*************************************************
830
831*** Testing integer operators ***
832Correct result - 8:  8
833Correct result - 8:  8
834Correct result - 2:  2
835Correct result - -2:  -2
836Correct result - 15:  15
837Correct result - 15:  15
838Correct result - 2:  2
839Correct result - 3:  3
840*********************************
841
842*** Testing real operators ***
843Correct result - 8:  8
844Correct result - 8:  8
845Correct result - 2:  2
846Correct result - -2:  -2
847Correct result - 15:  15
848Correct result - 15:  15
849Correct result - 2:  2
850Correct result - 3:  3
851*********************************
852
853*** Testing if/elseif/else control ***
854
855This  works
856this_still_works
857should_print
858
859
860*** Seriously nested if's test ***
861** spelling correction by kluzz **
862Only two lines of text should follow:
863this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
864this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
8653 loop iterations should follow:
8662 4
8673 4
8684 4
869**********************************
870
871*** C-style else-if's ***
872This should be displayed
873*************************
874
875*** WHILE tests ***
8760 is smaller than 20
8771 is smaller than 20
8782 is smaller than 20
8793 is smaller than 20
8804 is smaller than 20
8815 is smaller than 20
8826 is smaller than 20
8837 is smaller than 20
8848 is smaller than 20
8859 is smaller than 20
88610 is smaller than 20
88711 is smaller than 20
88812 is smaller than 20
88913 is smaller than 20
89014 is smaller than 20
89115 is smaller than 20
89216 is smaller than 20
89317 is smaller than 20
89418 is smaller than 20
89519 is smaller than 20
89620 equals 20
89721 is greater than 20
89822 is greater than 20
89923 is greater than 20
90024 is greater than 20
90125 is greater than 20
90226 is greater than 20
90327 is greater than 20
90428 is greater than 20
90529 is greater than 20
90630 is greater than 20
90731 is greater than 20
90832 is greater than 20
90933 is greater than 20
91034 is greater than 20
91135 is greater than 20
91236 is greater than 20
91337 is greater than 20
91438 is greater than 20
91539 is greater than 20
916*******************
917
918
919*** Nested WHILEs ***
920Each array variable should be equal to the sum of its indices:
921${test00}[0] = 0
922${test00}[1] = 1
923${test00}[2] = 2
924${test01}[0] = 1
925${test01}[1] = 2
926${test01}[2] = 3
927${test02}[0] = 2
928${test02}[1] = 3
929${test02}[2] = 4
930${test10}[0] = 1
931${test10}[1] = 2
932${test10}[2] = 3
933${test11}[0] = 2
934${test11}[1] = 3
935${test11}[2] = 4
936${test12}[0] = 3
937${test12}[1] = 4
938${test12}[2] = 5
939${test20}[0] = 2
940${test20}[1] = 3
941${test20}[2] = 4
942${test21}[0] = 3
943${test21}[1] = 4
944${test21}[2] = 5
945${test22}[0] = 4
946${test22}[1] = 5
947${test22}[2] = 6
948*********************
949
950*** hash test... ***
951commented out...
952**************************
953
954*** Hash resizing test ***
955ba
956baa
957baaa
958baaaa
959baaaaa
960baaaaaa
961baaaaaaa
962baaaaaaaa
963baaaaaaaaa
964baaaaaaaaaa
965ba
96610
967baa
9689
969baaa
9708
971baaaa
9727
973baaaaa
9746
975baaaaaa
9765
977baaaaaaa
9784
979baaaaaaaa
9803
981baaaaaaaaa
9822
983baaaaaaaaaa
9841
985**************************
986
987
988*** break/continue test ***
989$i should go from 0 to 2
990$j should go from 3 to 4, and $q should go from 3 to 4
991  $j=3
992    $q=3
993    $q=4
994  $j=4
995    $q=3
996    $q=4
997$j should go from 0 to 2
998  $j=0
999  $j=1
1000  $j=2
1001$k should go from 0 to 2
1002    $k=0
1003    $k=1
1004    $k=2
1005$i=0
1006$j should go from 3 to 4, and $q should go from 3 to 4
1007  $j=3
1008    $q=3
1009    $q=4
1010  $j=4
1011    $q=3
1012    $q=4
1013$j should go from 0 to 2
1014  $j=0
1015  $j=1
1016  $j=2
1017$k should go from 0 to 2
1018    $k=0
1019    $k=1
1020    $k=2
1021$i=1
1022$j should go from 3 to 4, and $q should go from 3 to 4
1023  $j=3
1024    $q=3
1025    $q=4
1026  $j=4
1027    $q=3
1028    $q=4
1029$j should go from 0 to 2
1030  $j=0
1031  $j=1
1032  $j=2
1033$k should go from 0 to 2
1034    $k=0
1035    $k=1
1036    $k=2
1037$i=2
1038***********************
1039
1040*** Nested file include test ***
1041<html>
1042This is Finish.phtml.  This file is supposed to be included
1043from regression_test.phtml.  This is normal HTML.
1044and this is PHP code, 2+2=4
1045</html>
1046********************************
1047
1048Tests completed.
1049<html>
1050<head>
1051*** Testing assignments and variable aliasing: ***
1052This should read "blah": blah
1053This should read "this is nifty": this is nifty
1054*************************************************
1055
1056*** Testing integer operators ***
1057Correct result - 8:  8
1058Correct result - 8:  8
1059Correct result - 2:  2
1060Correct result - -2:  -2
1061Correct result - 15:  15
1062Correct result - 15:  15
1063Correct result - 2:  2
1064Correct result - 3:  3
1065*********************************
1066
1067*** Testing real operators ***
1068Correct result - 8:  8
1069Correct result - 8:  8
1070Correct result - 2:  2
1071Correct result - -2:  -2
1072Correct result - 15:  15
1073Correct result - 15:  15
1074Correct result - 2:  2
1075Correct result - 3:  3
1076*********************************
1077
1078*** Testing if/elseif/else control ***
1079
1080This  works
1081this_still_works
1082should_print
1083
1084
1085*** Seriously nested if's test ***
1086** spelling correction by kluzz **
1087Only two lines of text should follow:
1088this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
1089this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
10903 loop iterations should follow:
10912 4
10923 4
10934 4
1094**********************************
1095
1096*** C-style else-if's ***
1097This should be displayed
1098*************************
1099
1100*** WHILE tests ***
11010 is smaller than 20
11021 is smaller than 20
11032 is smaller than 20
11043 is smaller than 20
11054 is smaller than 20
11065 is smaller than 20
11076 is smaller than 20
11087 is smaller than 20
11098 is smaller than 20
11109 is smaller than 20
111110 is smaller than 20
111211 is smaller than 20
111312 is smaller than 20
111413 is smaller than 20
111514 is smaller than 20
111615 is smaller than 20
111716 is smaller than 20
111817 is smaller than 20
111918 is smaller than 20
112019 is smaller than 20
112120 equals 20
112221 is greater than 20
112322 is greater than 20
112423 is greater than 20
112524 is greater than 20
112625 is greater than 20
112726 is greater than 20
112827 is greater than 20
112928 is greater than 20
113029 is greater than 20
113130 is greater than 20
113231 is greater than 20
113332 is greater than 20
113433 is greater than 20
113534 is greater than 20
113635 is greater than 20
113736 is greater than 20
113837 is greater than 20
113938 is greater than 20
114039 is greater than 20
1141*******************
1142
1143
1144*** Nested WHILEs ***
1145Each array variable should be equal to the sum of its indices:
1146${test00}[0] = 0
1147${test00}[1] = 1
1148${test00}[2] = 2
1149${test01}[0] = 1
1150${test01}[1] = 2
1151${test01}[2] = 3
1152${test02}[0] = 2
1153${test02}[1] = 3
1154${test02}[2] = 4
1155${test10}[0] = 1
1156${test10}[1] = 2
1157${test10}[2] = 3
1158${test11}[0] = 2
1159${test11}[1] = 3
1160${test11}[2] = 4
1161${test12}[0] = 3
1162${test12}[1] = 4
1163${test12}[2] = 5
1164${test20}[0] = 2
1165${test20}[1] = 3
1166${test20}[2] = 4
1167${test21}[0] = 3
1168${test21}[1] = 4
1169${test21}[2] = 5
1170${test22}[0] = 4
1171${test22}[1] = 5
1172${test22}[2] = 6
1173*********************
1174
1175*** hash test... ***
1176commented out...
1177**************************
1178
1179*** Hash resizing test ***
1180ba
1181baa
1182baaa
1183baaaa
1184baaaaa
1185baaaaaa
1186baaaaaaa
1187baaaaaaaa
1188baaaaaaaaa
1189baaaaaaaaaa
1190ba
119110
1192baa
11939
1194baaa
11958
1196baaaa
11977
1198baaaaa
11996
1200baaaaaa
12015
1202baaaaaaa
12034
1204baaaaaaaa
12053
1206baaaaaaaaa
12072
1208baaaaaaaaaa
12091
1210**************************
1211
1212
1213*** break/continue test ***
1214$i should go from 0 to 2
1215$j should go from 3 to 4, and $q should go from 3 to 4
1216  $j=3
1217    $q=3
1218    $q=4
1219  $j=4
1220    $q=3
1221    $q=4
1222$j should go from 0 to 2
1223  $j=0
1224  $j=1
1225  $j=2
1226$k should go from 0 to 2
1227    $k=0
1228    $k=1
1229    $k=2
1230$i=0
1231$j should go from 3 to 4, and $q should go from 3 to 4
1232  $j=3
1233    $q=3
1234    $q=4
1235  $j=4
1236    $q=3
1237    $q=4
1238$j should go from 0 to 2
1239  $j=0
1240  $j=1
1241  $j=2
1242$k should go from 0 to 2
1243    $k=0
1244    $k=1
1245    $k=2
1246$i=1
1247$j should go from 3 to 4, and $q should go from 3 to 4
1248  $j=3
1249    $q=3
1250    $q=4
1251  $j=4
1252    $q=3
1253    $q=4
1254$j should go from 0 to 2
1255  $j=0
1256  $j=1
1257  $j=2
1258$k should go from 0 to 2
1259    $k=0
1260    $k=1
1261    $k=2
1262$i=2
1263***********************
1264
1265*** Nested file include test ***
1266<html>
1267This is Finish.phtml.  This file is supposed to be included
1268from regression_test.phtml.  This is normal HTML.
1269and this is PHP code, 2+2=4
1270</html>
1271********************************
1272
1273Tests completed.
1274<html>
1275<head>
1276*** Testing assignments and variable aliasing: ***
1277This should read "blah": blah
1278This should read "this is nifty": this is nifty
1279*************************************************
1280
1281*** Testing integer operators ***
1282Correct result - 8:  8
1283Correct result - 8:  8
1284Correct result - 2:  2
1285Correct result - -2:  -2
1286Correct result - 15:  15
1287Correct result - 15:  15
1288Correct result - 2:  2
1289Correct result - 3:  3
1290*********************************
1291
1292*** Testing real operators ***
1293Correct result - 8:  8
1294Correct result - 8:  8
1295Correct result - 2:  2
1296Correct result - -2:  -2
1297Correct result - 15:  15
1298Correct result - 15:  15
1299Correct result - 2:  2
1300Correct result - 3:  3
1301*********************************
1302
1303*** Testing if/elseif/else control ***
1304
1305This  works
1306this_still_works
1307should_print
1308
1309
1310*** Seriously nested if's test ***
1311** spelling correction by kluzz **
1312Only two lines of text should follow:
1313this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
1314this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
13153 loop iterations should follow:
13162 4
13173 4
13184 4
1319**********************************
1320
1321*** C-style else-if's ***
1322This should be displayed
1323*************************
1324
1325*** WHILE tests ***
13260 is smaller than 20
13271 is smaller than 20
13282 is smaller than 20
13293 is smaller than 20
13304 is smaller than 20
13315 is smaller than 20
13326 is smaller than 20
13337 is smaller than 20
13348 is smaller than 20
13359 is smaller than 20
133610 is smaller than 20
133711 is smaller than 20
133812 is smaller than 20
133913 is smaller than 20
134014 is smaller than 20
134115 is smaller than 20
134216 is smaller than 20
134317 is smaller than 20
134418 is smaller than 20
134519 is smaller than 20
134620 equals 20
134721 is greater than 20
134822 is greater than 20
134923 is greater than 20
135024 is greater than 20
135125 is greater than 20
135226 is greater than 20
135327 is greater than 20
135428 is greater than 20
135529 is greater than 20
135630 is greater than 20
135731 is greater than 20
135832 is greater than 20
135933 is greater than 20
136034 is greater than 20
136135 is greater than 20
136236 is greater than 20
136337 is greater than 20
136438 is greater than 20
136539 is greater than 20
1366*******************
1367
1368
1369*** Nested WHILEs ***
1370Each array variable should be equal to the sum of its indices:
1371${test00}[0] = 0
1372${test00}[1] = 1
1373${test00}[2] = 2
1374${test01}[0] = 1
1375${test01}[1] = 2
1376${test01}[2] = 3
1377${test02}[0] = 2
1378${test02}[1] = 3
1379${test02}[2] = 4
1380${test10}[0] = 1
1381${test10}[1] = 2
1382${test10}[2] = 3
1383${test11}[0] = 2
1384${test11}[1] = 3
1385${test11}[2] = 4
1386${test12}[0] = 3
1387${test12}[1] = 4
1388${test12}[2] = 5
1389${test20}[0] = 2
1390${test20}[1] = 3
1391${test20}[2] = 4
1392${test21}[0] = 3
1393${test21}[1] = 4
1394${test21}[2] = 5
1395${test22}[0] = 4
1396${test22}[1] = 5
1397${test22}[2] = 6
1398*********************
1399
1400*** hash test... ***
1401commented out...
1402**************************
1403
1404*** Hash resizing test ***
1405ba
1406baa
1407baaa
1408baaaa
1409baaaaa
1410baaaaaa
1411baaaaaaa
1412baaaaaaaa
1413baaaaaaaaa
1414baaaaaaaaaa
1415ba
141610
1417baa
14189
1419baaa
14208
1421baaaa
14227
1423baaaaa
14246
1425baaaaaa
14265
1427baaaaaaa
14284
1429baaaaaaaa
14303
1431baaaaaaaaa
14322
1433baaaaaaaaaa
14341
1435**************************
1436
1437
1438*** break/continue test ***
1439$i should go from 0 to 2
1440$j should go from 3 to 4, and $q should go from 3 to 4
1441  $j=3
1442    $q=3
1443    $q=4
1444  $j=4
1445    $q=3
1446    $q=4
1447$j should go from 0 to 2
1448  $j=0
1449  $j=1
1450  $j=2
1451$k should go from 0 to 2
1452    $k=0
1453    $k=1
1454    $k=2
1455$i=0
1456$j should go from 3 to 4, and $q should go from 3 to 4
1457  $j=3
1458    $q=3
1459    $q=4
1460  $j=4
1461    $q=3
1462    $q=4
1463$j should go from 0 to 2
1464  $j=0
1465  $j=1
1466  $j=2
1467$k should go from 0 to 2
1468    $k=0
1469    $k=1
1470    $k=2
1471$i=1
1472$j should go from 3 to 4, and $q should go from 3 to 4
1473  $j=3
1474    $q=3
1475    $q=4
1476  $j=4
1477    $q=3
1478    $q=4
1479$j should go from 0 to 2
1480  $j=0
1481  $j=1
1482  $j=2
1483$k should go from 0 to 2
1484    $k=0
1485    $k=1
1486    $k=2
1487$i=2
1488***********************
1489
1490*** Nested file include test ***
1491<html>
1492This is Finish.phtml.  This file is supposed to be included
1493from regression_test.phtml.  This is normal HTML.
1494and this is PHP code, 2+2=4
1495</html>
1496********************************
1497
1498Tests completed.
1499<html>
1500<head>
1501*** Testing assignments and variable aliasing: ***
1502This should read "blah": blah
1503This should read "this is nifty": this is nifty
1504*************************************************
1505
1506*** Testing integer operators ***
1507Correct result - 8:  8
1508Correct result - 8:  8
1509Correct result - 2:  2
1510Correct result - -2:  -2
1511Correct result - 15:  15
1512Correct result - 15:  15
1513Correct result - 2:  2
1514Correct result - 3:  3
1515*********************************
1516
1517*** Testing real operators ***
1518Correct result - 8:  8
1519Correct result - 8:  8
1520Correct result - 2:  2
1521Correct result - -2:  -2
1522Correct result - 15:  15
1523Correct result - 15:  15
1524Correct result - 2:  2
1525Correct result - 3:  3
1526*********************************
1527
1528*** Testing if/elseif/else control ***
1529
1530This  works
1531this_still_works
1532should_print
1533
1534
1535*** Seriously nested if's test ***
1536** spelling correction by kluzz **
1537Only two lines of text should follow:
1538this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
1539this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
15403 loop iterations should follow:
15412 4
15423 4
15434 4
1544**********************************
1545
1546*** C-style else-if's ***
1547This should be displayed
1548*************************
1549
1550*** WHILE tests ***
15510 is smaller than 20
15521 is smaller than 20
15532 is smaller than 20
15543 is smaller than 20
15554 is smaller than 20
15565 is smaller than 20
15576 is smaller than 20
15587 is smaller than 20
15598 is smaller than 20
15609 is smaller than 20
156110 is smaller than 20
156211 is smaller than 20
156312 is smaller than 20
156413 is smaller than 20
156514 is smaller than 20
156615 is smaller than 20
156716 is smaller than 20
156817 is smaller than 20
156918 is smaller than 20
157019 is smaller than 20
157120 equals 20
157221 is greater than 20
157322 is greater than 20
157423 is greater than 20
157524 is greater than 20
157625 is greater than 20
157726 is greater than 20
157827 is greater than 20
157928 is greater than 20
158029 is greater than 20
158130 is greater than 20
158231 is greater than 20
158332 is greater than 20
158433 is greater than 20
158534 is greater than 20
158635 is greater than 20
158736 is greater than 20
158837 is greater than 20
158938 is greater than 20
159039 is greater than 20
1591*******************
1592
1593
1594*** Nested WHILEs ***
1595Each array variable should be equal to the sum of its indices:
1596${test00}[0] = 0
1597${test00}[1] = 1
1598${test00}[2] = 2
1599${test01}[0] = 1
1600${test01}[1] = 2
1601${test01}[2] = 3
1602${test02}[0] = 2
1603${test02}[1] = 3
1604${test02}[2] = 4
1605${test10}[0] = 1
1606${test10}[1] = 2
1607${test10}[2] = 3
1608${test11}[0] = 2
1609${test11}[1] = 3
1610${test11}[2] = 4
1611${test12}[0] = 3
1612${test12}[1] = 4
1613${test12}[2] = 5
1614${test20}[0] = 2
1615${test20}[1] = 3
1616${test20}[2] = 4
1617${test21}[0] = 3
1618${test21}[1] = 4
1619${test21}[2] = 5
1620${test22}[0] = 4
1621${test22}[1] = 5
1622${test22}[2] = 6
1623*********************
1624
1625*** hash test... ***
1626commented out...
1627**************************
1628
1629*** Hash resizing test ***
1630ba
1631baa
1632baaa
1633baaaa
1634baaaaa
1635baaaaaa
1636baaaaaaa
1637baaaaaaaa
1638baaaaaaaaa
1639baaaaaaaaaa
1640ba
164110
1642baa
16439
1644baaa
16458
1646baaaa
16477
1648baaaaa
16496
1650baaaaaa
16515
1652baaaaaaa
16534
1654baaaaaaaa
16553
1656baaaaaaaaa
16572
1658baaaaaaaaaa
16591
1660**************************
1661
1662
1663*** break/continue test ***
1664$i should go from 0 to 2
1665$j should go from 3 to 4, and $q should go from 3 to 4
1666  $j=3
1667    $q=3
1668    $q=4
1669  $j=4
1670    $q=3
1671    $q=4
1672$j should go from 0 to 2
1673  $j=0
1674  $j=1
1675  $j=2
1676$k should go from 0 to 2
1677    $k=0
1678    $k=1
1679    $k=2
1680$i=0
1681$j should go from 3 to 4, and $q should go from 3 to 4
1682  $j=3
1683    $q=3
1684    $q=4
1685  $j=4
1686    $q=3
1687    $q=4
1688$j should go from 0 to 2
1689  $j=0
1690  $j=1
1691  $j=2
1692$k should go from 0 to 2
1693    $k=0
1694    $k=1
1695    $k=2
1696$i=1
1697$j should go from 3 to 4, and $q should go from 3 to 4
1698  $j=3
1699    $q=3
1700    $q=4
1701  $j=4
1702    $q=3
1703    $q=4
1704$j should go from 0 to 2
1705  $j=0
1706  $j=1
1707  $j=2
1708$k should go from 0 to 2
1709    $k=0
1710    $k=1
1711    $k=2
1712$i=2
1713***********************
1714
1715*** Nested file include test ***
1716<html>
1717This is Finish.phtml.  This file is supposed to be included
1718from regression_test.phtml.  This is normal HTML.
1719and this is PHP code, 2+2=4
1720</html>
1721********************************
1722
1723Tests completed.
1724<html>
1725<head>
1726*** Testing assignments and variable aliasing: ***
1727This should read "blah": blah
1728This should read "this is nifty": this is nifty
1729*************************************************
1730
1731*** Testing integer operators ***
1732Correct result - 8:  8
1733Correct result - 8:  8
1734Correct result - 2:  2
1735Correct result - -2:  -2
1736Correct result - 15:  15
1737Correct result - 15:  15
1738Correct result - 2:  2
1739Correct result - 3:  3
1740*********************************
1741
1742*** Testing real operators ***
1743Correct result - 8:  8
1744Correct result - 8:  8
1745Correct result - 2:  2
1746Correct result - -2:  -2
1747Correct result - 15:  15
1748Correct result - 15:  15
1749Correct result - 2:  2
1750Correct result - 3:  3
1751*********************************
1752
1753*** Testing if/elseif/else control ***
1754
1755This  works
1756this_still_works
1757should_print
1758
1759
1760*** Seriously nested if's test ***
1761** spelling correction by kluzz **
1762Only two lines of text should follow:
1763this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
1764this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
17653 loop iterations should follow:
17662 4
17673 4
17684 4
1769**********************************
1770
1771*** C-style else-if's ***
1772This should be displayed
1773*************************
1774
1775*** WHILE tests ***
17760 is smaller than 20
17771 is smaller than 20
17782 is smaller than 20
17793 is smaller than 20
17804 is smaller than 20
17815 is smaller than 20
17826 is smaller than 20
17837 is smaller than 20
17848 is smaller than 20
17859 is smaller than 20
178610 is smaller than 20
178711 is smaller than 20
178812 is smaller than 20
178913 is smaller than 20
179014 is smaller than 20
179115 is smaller than 20
179216 is smaller than 20
179317 is smaller than 20
179418 is smaller than 20
179519 is smaller than 20
179620 equals 20
179721 is greater than 20
179822 is greater than 20
179923 is greater than 20
180024 is greater than 20
180125 is greater than 20
180226 is greater than 20
180327 is greater than 20
180428 is greater than 20
180529 is greater than 20
180630 is greater than 20
180731 is greater than 20
180832 is greater than 20
180933 is greater than 20
181034 is greater than 20
181135 is greater than 20
181236 is greater than 20
181337 is greater than 20
181438 is greater than 20
181539 is greater than 20
1816*******************
1817
1818
1819*** Nested WHILEs ***
1820Each array variable should be equal to the sum of its indices:
1821${test00}[0] = 0
1822${test00}[1] = 1
1823${test00}[2] = 2
1824${test01}[0] = 1
1825${test01}[1] = 2
1826${test01}[2] = 3
1827${test02}[0] = 2
1828${test02}[1] = 3
1829${test02}[2] = 4
1830${test10}[0] = 1
1831${test10}[1] = 2
1832${test10}[2] = 3
1833${test11}[0] = 2
1834${test11}[1] = 3
1835${test11}[2] = 4
1836${test12}[0] = 3
1837${test12}[1] = 4
1838${test12}[2] = 5
1839${test20}[0] = 2
1840${test20}[1] = 3
1841${test20}[2] = 4
1842${test21}[0] = 3
1843${test21}[1] = 4
1844${test21}[2] = 5
1845${test22}[0] = 4
1846${test22}[1] = 5
1847${test22}[2] = 6
1848*********************
1849
1850*** hash test... ***
1851commented out...
1852**************************
1853
1854*** Hash resizing test ***
1855ba
1856baa
1857baaa
1858baaaa
1859baaaaa
1860baaaaaa
1861baaaaaaa
1862baaaaaaaa
1863baaaaaaaaa
1864baaaaaaaaaa
1865ba
186610
1867baa
18689
1869baaa
18708
1871baaaa
18727
1873baaaaa
18746
1875baaaaaa
18765
1877baaaaaaa
18784
1879baaaaaaaa
18803
1881baaaaaaaaa
18822
1883baaaaaaaaaa
18841
1885**************************
1886
1887
1888*** break/continue test ***
1889$i should go from 0 to 2
1890$j should go from 3 to 4, and $q should go from 3 to 4
1891  $j=3
1892    $q=3
1893    $q=4
1894  $j=4
1895    $q=3
1896    $q=4
1897$j should go from 0 to 2
1898  $j=0
1899  $j=1
1900  $j=2
1901$k should go from 0 to 2
1902    $k=0
1903    $k=1
1904    $k=2
1905$i=0
1906$j should go from 3 to 4, and $q should go from 3 to 4
1907  $j=3
1908    $q=3
1909    $q=4
1910  $j=4
1911    $q=3
1912    $q=4
1913$j should go from 0 to 2
1914  $j=0
1915  $j=1
1916  $j=2
1917$k should go from 0 to 2
1918    $k=0
1919    $k=1
1920    $k=2
1921$i=1
1922$j should go from 3 to 4, and $q should go from 3 to 4
1923  $j=3
1924    $q=3
1925    $q=4
1926  $j=4
1927    $q=3
1928    $q=4
1929$j should go from 0 to 2
1930  $j=0
1931  $j=1
1932  $j=2
1933$k should go from 0 to 2
1934    $k=0
1935    $k=1
1936    $k=2
1937$i=2
1938***********************
1939
1940*** Nested file include test ***
1941<html>
1942This is Finish.phtml.  This file is supposed to be included
1943from regression_test.phtml.  This is normal HTML.
1944and this is PHP code, 2+2=4
1945</html>
1946********************************
1947
1948Tests completed.
1949<html>
1950<head>
1951*** Testing assignments and variable aliasing: ***
1952This should read "blah": blah
1953This should read "this is nifty": this is nifty
1954*************************************************
1955
1956*** Testing integer operators ***
1957Correct result - 8:  8
1958Correct result - 8:  8
1959Correct result - 2:  2
1960Correct result - -2:  -2
1961Correct result - 15:  15
1962Correct result - 15:  15
1963Correct result - 2:  2
1964Correct result - 3:  3
1965*********************************
1966
1967*** Testing real operators ***
1968Correct result - 8:  8
1969Correct result - 8:  8
1970Correct result - 2:  2
1971Correct result - -2:  -2
1972Correct result - 15:  15
1973Correct result - 15:  15
1974Correct result - 2:  2
1975Correct result - 3:  3
1976*********************************
1977
1978*** Testing if/elseif/else control ***
1979
1980This  works
1981this_still_works
1982should_print
1983
1984
1985*** Seriously nested if's test ***
1986** spelling correction by kluzz **
1987Only two lines of text should follow:
1988this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
1989this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
19903 loop iterations should follow:
19912 4
19923 4
19934 4
1994**********************************
1995
1996*** C-style else-if's ***
1997This should be displayed
1998*************************
1999
2000*** WHILE tests ***
20010 is smaller than 20
20021 is smaller than 20
20032 is smaller than 20
20043 is smaller than 20
20054 is smaller than 20
20065 is smaller than 20
20076 is smaller than 20
20087 is smaller than 20
20098 is smaller than 20
20109 is smaller than 20
201110 is smaller than 20
201211 is smaller than 20
201312 is smaller than 20
201413 is smaller than 20
201514 is smaller than 20
201615 is smaller than 20
201716 is smaller than 20
201817 is smaller than 20
201918 is smaller than 20
202019 is smaller than 20
202120 equals 20
202221 is greater than 20
202322 is greater than 20
202423 is greater than 20
202524 is greater than 20
202625 is greater than 20
202726 is greater than 20
202827 is greater than 20
202928 is greater than 20
203029 is greater than 20
203130 is greater than 20
203231 is greater than 20
203332 is greater than 20
203433 is greater than 20
203534 is greater than 20
203635 is greater than 20
203736 is greater than 20
203837 is greater than 20
203938 is greater than 20
204039 is greater than 20
2041*******************
2042
2043
2044*** Nested WHILEs ***
2045Each array variable should be equal to the sum of its indices:
2046${test00}[0] = 0
2047${test00}[1] = 1
2048${test00}[2] = 2
2049${test01}[0] = 1
2050${test01}[1] = 2
2051${test01}[2] = 3
2052${test02}[0] = 2
2053${test02}[1] = 3
2054${test02}[2] = 4
2055${test10}[0] = 1
2056${test10}[1] = 2
2057${test10}[2] = 3
2058${test11}[0] = 2
2059${test11}[1] = 3
2060${test11}[2] = 4
2061${test12}[0] = 3
2062${test12}[1] = 4
2063${test12}[2] = 5
2064${test20}[0] = 2
2065${test20}[1] = 3
2066${test20}[2] = 4
2067${test21}[0] = 3
2068${test21}[1] = 4
2069${test21}[2] = 5
2070${test22}[0] = 4
2071${test22}[1] = 5
2072${test22}[2] = 6
2073*********************
2074
2075*** hash test... ***
2076commented out...
2077**************************
2078
2079*** Hash resizing test ***
2080ba
2081baa
2082baaa
2083baaaa
2084baaaaa
2085baaaaaa
2086baaaaaaa
2087baaaaaaaa
2088baaaaaaaaa
2089baaaaaaaaaa
2090ba
209110
2092baa
20939
2094baaa
20958
2096baaaa
20977
2098baaaaa
20996
2100baaaaaa
21015
2102baaaaaaa
21034
2104baaaaaaaa
21053
2106baaaaaaaaa
21072
2108baaaaaaaaaa
21091
2110**************************
2111
2112
2113*** break/continue test ***
2114$i should go from 0 to 2
2115$j should go from 3 to 4, and $q should go from 3 to 4
2116  $j=3
2117    $q=3
2118    $q=4
2119  $j=4
2120    $q=3
2121    $q=4
2122$j should go from 0 to 2
2123  $j=0
2124  $j=1
2125  $j=2
2126$k should go from 0 to 2
2127    $k=0
2128    $k=1
2129    $k=2
2130$i=0
2131$j should go from 3 to 4, and $q should go from 3 to 4
2132  $j=3
2133    $q=3
2134    $q=4
2135  $j=4
2136    $q=3
2137    $q=4
2138$j should go from 0 to 2
2139  $j=0
2140  $j=1
2141  $j=2
2142$k should go from 0 to 2
2143    $k=0
2144    $k=1
2145    $k=2
2146$i=1
2147$j should go from 3 to 4, and $q should go from 3 to 4
2148  $j=3
2149    $q=3
2150    $q=4
2151  $j=4
2152    $q=3
2153    $q=4
2154$j should go from 0 to 2
2155  $j=0
2156  $j=1
2157  $j=2
2158$k should go from 0 to 2
2159    $k=0
2160    $k=1
2161    $k=2
2162$i=2
2163***********************
2164
2165*** Nested file include test ***
2166<html>
2167This is Finish.phtml.  This file is supposed to be included
2168from regression_test.phtml.  This is normal HTML.
2169and this is PHP code, 2+2=4
2170</html>
2171********************************
2172
2173Tests completed.
2174<html>
2175<head>
2176*** Testing assignments and variable aliasing: ***
2177This should read "blah": blah
2178This should read "this is nifty": this is nifty
2179*************************************************
2180
2181*** Testing integer operators ***
2182Correct result - 8:  8
2183Correct result - 8:  8
2184Correct result - 2:  2
2185Correct result - -2:  -2
2186Correct result - 15:  15
2187Correct result - 15:  15
2188Correct result - 2:  2
2189Correct result - 3:  3
2190*********************************
2191
2192*** Testing real operators ***
2193Correct result - 8:  8
2194Correct result - 8:  8
2195Correct result - 2:  2
2196Correct result - -2:  -2
2197Correct result - 15:  15
2198Correct result - 15:  15
2199Correct result - 2:  2
2200Correct result - 3:  3
2201*********************************
2202
2203*** Testing if/elseif/else control ***
2204
2205This  works
2206this_still_works
2207should_print
2208
2209
2210*** Seriously nested if's test ***
2211** spelling correction by kluzz **
2212Only two lines of text should follow:
2213this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
2214this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
22153 loop iterations should follow:
22162 4
22173 4
22184 4
2219**********************************
2220
2221*** C-style else-if's ***
2222This should be displayed
2223*************************
2224
2225*** WHILE tests ***
22260 is smaller than 20
22271 is smaller than 20
22282 is smaller than 20
22293 is smaller than 20
22304 is smaller than 20
22315 is smaller than 20
22326 is smaller than 20
22337 is smaller than 20
22348 is smaller than 20
22359 is smaller than 20
223610 is smaller than 20
223711 is smaller than 20
223812 is smaller than 20
223913 is smaller than 20
224014 is smaller than 20
224115 is smaller than 20
224216 is smaller than 20
224317 is smaller than 20
224418 is smaller than 20
224519 is smaller than 20
224620 equals 20
224721 is greater than 20
224822 is greater than 20
224923 is greater than 20
225024 is greater than 20
225125 is greater than 20
225226 is greater than 20
225327 is greater than 20
225428 is greater than 20
225529 is greater than 20
225630 is greater than 20
225731 is greater than 20
225832 is greater than 20
225933 is greater than 20
226034 is greater than 20
226135 is greater than 20
226236 is greater than 20
226337 is greater than 20
226438 is greater than 20
226539 is greater than 20
2266*******************
2267
2268
2269*** Nested WHILEs ***
2270Each array variable should be equal to the sum of its indices:
2271${test00}[0] = 0
2272${test00}[1] = 1
2273${test00}[2] = 2
2274${test01}[0] = 1
2275${test01}[1] = 2
2276${test01}[2] = 3
2277${test02}[0] = 2
2278${test02}[1] = 3
2279${test02}[2] = 4
2280${test10}[0] = 1
2281${test10}[1] = 2
2282${test10}[2] = 3
2283${test11}[0] = 2
2284${test11}[1] = 3
2285${test11}[2] = 4
2286${test12}[0] = 3
2287${test12}[1] = 4
2288${test12}[2] = 5
2289${test20}[0] = 2
2290${test20}[1] = 3
2291${test20}[2] = 4
2292${test21}[0] = 3
2293${test21}[1] = 4
2294${test21}[2] = 5
2295${test22}[0] = 4
2296${test22}[1] = 5
2297${test22}[2] = 6
2298*********************
2299
2300*** hash test... ***
2301commented out...
2302**************************
2303
2304*** Hash resizing test ***
2305ba
2306baa
2307baaa
2308baaaa
2309baaaaa
2310baaaaaa
2311baaaaaaa
2312baaaaaaaa
2313baaaaaaaaa
2314baaaaaaaaaa
2315ba
231610
2317baa
23189
2319baaa
23208
2321baaaa
23227
2323baaaaa
23246
2325baaaaaa
23265
2327baaaaaaa
23284
2329baaaaaaaa
23303
2331baaaaaaaaa
23322
2333baaaaaaaaaa
23341
2335**************************
2336
2337
2338*** break/continue test ***
2339$i should go from 0 to 2
2340$j should go from 3 to 4, and $q should go from 3 to 4
2341  $j=3
2342    $q=3
2343    $q=4
2344  $j=4
2345    $q=3
2346    $q=4
2347$j should go from 0 to 2
2348  $j=0
2349  $j=1
2350  $j=2
2351$k should go from 0 to 2
2352    $k=0
2353    $k=1
2354    $k=2
2355$i=0
2356$j should go from 3 to 4, and $q should go from 3 to 4
2357  $j=3
2358    $q=3
2359    $q=4
2360  $j=4
2361    $q=3
2362    $q=4
2363$j should go from 0 to 2
2364  $j=0
2365  $j=1
2366  $j=2
2367$k should go from 0 to 2
2368    $k=0
2369    $k=1
2370    $k=2
2371$i=1
2372$j should go from 3 to 4, and $q should go from 3 to 4
2373  $j=3
2374    $q=3
2375    $q=4
2376  $j=4
2377    $q=3
2378    $q=4
2379$j should go from 0 to 2
2380  $j=0
2381  $j=1
2382  $j=2
2383$k should go from 0 to 2
2384    $k=0
2385    $k=1
2386    $k=2
2387$i=2
2388***********************
2389
2390*** Nested file include test ***
2391<html>
2392This is Finish.phtml.  This file is supposed to be included
2393from regression_test.phtml.  This is normal HTML.
2394and this is PHP code, 2+2=4
2395</html>
2396********************************
2397
2398Tests completed.
2399<html>
2400<head>
2401*** Testing assignments and variable aliasing: ***
2402This should read "blah": blah
2403This should read "this is nifty": this is nifty
2404*************************************************
2405
2406*** Testing integer operators ***
2407Correct result - 8:  8
2408Correct result - 8:  8
2409Correct result - 2:  2
2410Correct result - -2:  -2
2411Correct result - 15:  15
2412Correct result - 15:  15
2413Correct result - 2:  2
2414Correct result - 3:  3
2415*********************************
2416
2417*** Testing real operators ***
2418Correct result - 8:  8
2419Correct result - 8:  8
2420Correct result - 2:  2
2421Correct result - -2:  -2
2422Correct result - 15:  15
2423Correct result - 15:  15
2424Correct result - 2:  2
2425Correct result - 3:  3
2426*********************************
2427
2428*** Testing if/elseif/else control ***
2429
2430This  works
2431this_still_works
2432should_print
2433
2434
2435*** Seriously nested if's test ***
2436** spelling correction by kluzz **
2437Only two lines of text should follow:
2438this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
2439this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
24403 loop iterations should follow:
24412 4
24423 4
24434 4
2444**********************************
2445
2446*** C-style else-if's ***
2447This should be displayed
2448*************************
2449
2450*** WHILE tests ***
24510 is smaller than 20
24521 is smaller than 20
24532 is smaller than 20
24543 is smaller than 20
24554 is smaller than 20
24565 is smaller than 20
24576 is smaller than 20
24587 is smaller than 20
24598 is smaller than 20
24609 is smaller than 20
246110 is smaller than 20
246211 is smaller than 20
246312 is smaller than 20
246413 is smaller than 20
246514 is smaller than 20
246615 is smaller than 20
246716 is smaller than 20
246817 is smaller than 20
246918 is smaller than 20
247019 is smaller than 20
247120 equals 20
247221 is greater than 20
247322 is greater than 20
247423 is greater than 20
247524 is greater than 20
247625 is greater than 20
247726 is greater than 20
247827 is greater than 20
247928 is greater than 20
248029 is greater than 20
248130 is greater than 20
248231 is greater than 20
248332 is greater than 20
248433 is greater than 20
248534 is greater than 20
248635 is greater than 20
248736 is greater than 20
248837 is greater than 20
248938 is greater than 20
249039 is greater than 20
2491*******************
2492
2493
2494*** Nested WHILEs ***
2495Each array variable should be equal to the sum of its indices:
2496${test00}[0] = 0
2497${test00}[1] = 1
2498${test00}[2] = 2
2499${test01}[0] = 1
2500${test01}[1] = 2
2501${test01}[2] = 3
2502${test02}[0] = 2
2503${test02}[1] = 3
2504${test02}[2] = 4
2505${test10}[0] = 1
2506${test10}[1] = 2
2507${test10}[2] = 3
2508${test11}[0] = 2
2509${test11}[1] = 3
2510${test11}[2] = 4
2511${test12}[0] = 3
2512${test12}[1] = 4
2513${test12}[2] = 5
2514${test20}[0] = 2
2515${test20}[1] = 3
2516${test20}[2] = 4
2517${test21}[0] = 3
2518${test21}[1] = 4
2519${test21}[2] = 5
2520${test22}[0] = 4
2521${test22}[1] = 5
2522${test22}[2] = 6
2523*********************
2524
2525*** hash test... ***
2526commented out...
2527**************************
2528
2529*** Hash resizing test ***
2530ba
2531baa
2532baaa
2533baaaa
2534baaaaa
2535baaaaaa
2536baaaaaaa
2537baaaaaaaa
2538baaaaaaaaa
2539baaaaaaaaaa
2540ba
254110
2542baa
25439
2544baaa
25458
2546baaaa
25477
2548baaaaa
25496
2550baaaaaa
25515
2552baaaaaaa
25534
2554baaaaaaaa
25553
2556baaaaaaaaa
25572
2558baaaaaaaaaa
25591
2560**************************
2561
2562
2563*** break/continue test ***
2564$i should go from 0 to 2
2565$j should go from 3 to 4, and $q should go from 3 to 4
2566  $j=3
2567    $q=3
2568    $q=4
2569  $j=4
2570    $q=3
2571    $q=4
2572$j should go from 0 to 2
2573  $j=0
2574  $j=1
2575  $j=2
2576$k should go from 0 to 2
2577    $k=0
2578    $k=1
2579    $k=2
2580$i=0
2581$j should go from 3 to 4, and $q should go from 3 to 4
2582  $j=3
2583    $q=3
2584    $q=4
2585  $j=4
2586    $q=3
2587    $q=4
2588$j should go from 0 to 2
2589  $j=0
2590  $j=1
2591  $j=2
2592$k should go from 0 to 2
2593    $k=0
2594    $k=1
2595    $k=2
2596$i=1
2597$j should go from 3 to 4, and $q should go from 3 to 4
2598  $j=3
2599    $q=3
2600    $q=4
2601  $j=4
2602    $q=3
2603    $q=4
2604$j should go from 0 to 2
2605  $j=0
2606  $j=1
2607  $j=2
2608$k should go from 0 to 2
2609    $k=0
2610    $k=1
2611    $k=2
2612$i=2
2613***********************
2614
2615*** Nested file include test ***
2616<html>
2617This is Finish.phtml.  This file is supposed to be included
2618from regression_test.phtml.  This is normal HTML.
2619and this is PHP code, 2+2=4
2620</html>
2621********************************
2622
2623Tests completed.
2624<html>
2625<head>
2626*** Testing assignments and variable aliasing: ***
2627This should read "blah": blah
2628This should read "this is nifty": this is nifty
2629*************************************************
2630
2631*** Testing integer operators ***
2632Correct result - 8:  8
2633Correct result - 8:  8
2634Correct result - 2:  2
2635Correct result - -2:  -2
2636Correct result - 15:  15
2637Correct result - 15:  15
2638Correct result - 2:  2
2639Correct result - 3:  3
2640*********************************
2641
2642*** Testing real operators ***
2643Correct result - 8:  8
2644Correct result - 8:  8
2645Correct result - 2:  2
2646Correct result - -2:  -2
2647Correct result - 15:  15
2648Correct result - 15:  15
2649Correct result - 2:  2
2650Correct result - 3:  3
2651*********************************
2652
2653*** Testing if/elseif/else control ***
2654
2655This  works
2656this_still_works
2657should_print
2658
2659
2660*** Seriously nested if's test ***
2661** spelling correction by kluzz **
2662Only two lines of text should follow:
2663this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
2664this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
26653 loop iterations should follow:
26662 4
26673 4
26684 4
2669**********************************
2670
2671*** C-style else-if's ***
2672This should be displayed
2673*************************
2674
2675*** WHILE tests ***
26760 is smaller than 20
26771 is smaller than 20
26782 is smaller than 20
26793 is smaller than 20
26804 is smaller than 20
26815 is smaller than 20
26826 is smaller than 20
26837 is smaller than 20
26848 is smaller than 20
26859 is smaller than 20
268610 is smaller than 20
268711 is smaller than 20
268812 is smaller than 20
268913 is smaller than 20
269014 is smaller than 20
269115 is smaller than 20
269216 is smaller than 20
269317 is smaller than 20
269418 is smaller than 20
269519 is smaller than 20
269620 equals 20
269721 is greater than 20
269822 is greater than 20
269923 is greater than 20
270024 is greater than 20
270125 is greater than 20
270226 is greater than 20
270327 is greater than 20
270428 is greater than 20
270529 is greater than 20
270630 is greater than 20
270731 is greater than 20
270832 is greater than 20
270933 is greater than 20
271034 is greater than 20
271135 is greater than 20
271236 is greater than 20
271337 is greater than 20
271438 is greater than 20
271539 is greater than 20
2716*******************
2717
2718
2719*** Nested WHILEs ***
2720Each array variable should be equal to the sum of its indices:
2721${test00}[0] = 0
2722${test00}[1] = 1
2723${test00}[2] = 2
2724${test01}[0] = 1
2725${test01}[1] = 2
2726${test01}[2] = 3
2727${test02}[0] = 2
2728${test02}[1] = 3
2729${test02}[2] = 4
2730${test10}[0] = 1
2731${test10}[1] = 2
2732${test10}[2] = 3
2733${test11}[0] = 2
2734${test11}[1] = 3
2735${test11}[2] = 4
2736${test12}[0] = 3
2737${test12}[1] = 4
2738${test12}[2] = 5
2739${test20}[0] = 2
2740${test20}[1] = 3
2741${test20}[2] = 4
2742${test21}[0] = 3
2743${test21}[1] = 4
2744${test21}[2] = 5
2745${test22}[0] = 4
2746${test22}[1] = 5
2747${test22}[2] = 6
2748*********************
2749
2750*** hash test... ***
2751commented out...
2752**************************
2753
2754*** Hash resizing test ***
2755ba
2756baa
2757baaa
2758baaaa
2759baaaaa
2760baaaaaa
2761baaaaaaa
2762baaaaaaaa
2763baaaaaaaaa
2764baaaaaaaaaa
2765ba
276610
2767baa
27689
2769baaa
27708
2771baaaa
27727
2773baaaaa
27746
2775baaaaaa
27765
2777baaaaaaa
27784
2779baaaaaaaa
27803
2781baaaaaaaaa
27822
2783baaaaaaaaaa
27841
2785**************************
2786
2787
2788*** break/continue test ***
2789$i should go from 0 to 2
2790$j should go from 3 to 4, and $q should go from 3 to 4
2791  $j=3
2792    $q=3
2793    $q=4
2794  $j=4
2795    $q=3
2796    $q=4
2797$j should go from 0 to 2
2798  $j=0
2799  $j=1
2800  $j=2
2801$k should go from 0 to 2
2802    $k=0
2803    $k=1
2804    $k=2
2805$i=0
2806$j should go from 3 to 4, and $q should go from 3 to 4
2807  $j=3
2808    $q=3
2809    $q=4
2810  $j=4
2811    $q=3
2812    $q=4
2813$j should go from 0 to 2
2814  $j=0
2815  $j=1
2816  $j=2
2817$k should go from 0 to 2
2818    $k=0
2819    $k=1
2820    $k=2
2821$i=1
2822$j should go from 3 to 4, and $q should go from 3 to 4
2823  $j=3
2824    $q=3
2825    $q=4
2826  $j=4
2827    $q=3
2828    $q=4
2829$j should go from 0 to 2
2830  $j=0
2831  $j=1
2832  $j=2
2833$k should go from 0 to 2
2834    $k=0
2835    $k=1
2836    $k=2
2837$i=2
2838***********************
2839
2840*** Nested file include test ***
2841<html>
2842This is Finish.phtml.  This file is supposed to be included
2843from regression_test.phtml.  This is normal HTML.
2844and this is PHP code, 2+2=4
2845</html>
2846********************************
2847
2848Tests completed.
2849<html>
2850<head>
2851*** Testing assignments and variable aliasing: ***
2852This should read "blah": blah
2853This should read "this is nifty": this is nifty
2854*************************************************
2855
2856*** Testing integer operators ***
2857Correct result - 8:  8
2858Correct result - 8:  8
2859Correct result - 2:  2
2860Correct result - -2:  -2
2861Correct result - 15:  15
2862Correct result - 15:  15
2863Correct result - 2:  2
2864Correct result - 3:  3
2865*********************************
2866
2867*** Testing real operators ***
2868Correct result - 8:  8
2869Correct result - 8:  8
2870Correct result - 2:  2
2871Correct result - -2:  -2
2872Correct result - 15:  15
2873Correct result - 15:  15
2874Correct result - 2:  2
2875Correct result - 3:  3
2876*********************************
2877
2878*** Testing if/elseif/else control ***
2879
2880This  works
2881this_still_works
2882should_print
2883
2884
2885*** Seriously nested if's test ***
2886** spelling correction by kluzz **
2887Only two lines of text should follow:
2888this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
2889this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
28903 loop iterations should follow:
28912 4
28923 4
28934 4
2894**********************************
2895
2896*** C-style else-if's ***
2897This should be displayed
2898*************************
2899
2900*** WHILE tests ***
29010 is smaller than 20
29021 is smaller than 20
29032 is smaller than 20
29043 is smaller than 20
29054 is smaller than 20
29065 is smaller than 20
29076 is smaller than 20
29087 is smaller than 20
29098 is smaller than 20
29109 is smaller than 20
291110 is smaller than 20
291211 is smaller than 20
291312 is smaller than 20
291413 is smaller than 20
291514 is smaller than 20
291615 is smaller than 20
291716 is smaller than 20
291817 is smaller than 20
291918 is smaller than 20
292019 is smaller than 20
292120 equals 20
292221 is greater than 20
292322 is greater than 20
292423 is greater than 20
292524 is greater than 20
292625 is greater than 20
292726 is greater than 20
292827 is greater than 20
292928 is greater than 20
293029 is greater than 20
293130 is greater than 20
293231 is greater than 20
293332 is greater than 20
293433 is greater than 20
293534 is greater than 20
293635 is greater than 20
293736 is greater than 20
293837 is greater than 20
293938 is greater than 20
294039 is greater than 20
2941*******************
2942
2943
2944*** Nested WHILEs ***
2945Each array variable should be equal to the sum of its indices:
2946${test00}[0] = 0
2947${test00}[1] = 1
2948${test00}[2] = 2
2949${test01}[0] = 1
2950${test01}[1] = 2
2951${test01}[2] = 3
2952${test02}[0] = 2
2953${test02}[1] = 3
2954${test02}[2] = 4
2955${test10}[0] = 1
2956${test10}[1] = 2
2957${test10}[2] = 3
2958${test11}[0] = 2
2959${test11}[1] = 3
2960${test11}[2] = 4
2961${test12}[0] = 3
2962${test12}[1] = 4
2963${test12}[2] = 5
2964${test20}[0] = 2
2965${test20}[1] = 3
2966${test20}[2] = 4
2967${test21}[0] = 3
2968${test21}[1] = 4
2969${test21}[2] = 5
2970${test22}[0] = 4
2971${test22}[1] = 5
2972${test22}[2] = 6
2973*********************
2974
2975*** hash test... ***
2976commented out...
2977**************************
2978
2979*** Hash resizing test ***
2980ba
2981baa
2982baaa
2983baaaa
2984baaaaa
2985baaaaaa
2986baaaaaaa
2987baaaaaaaa
2988baaaaaaaaa
2989baaaaaaaaaa
2990ba
299110
2992baa
29939
2994baaa
29958
2996baaaa
29977
2998baaaaa
29996
3000baaaaaa
30015
3002baaaaaaa
30034
3004baaaaaaaa
30053
3006baaaaaaaaa
30072
3008baaaaaaaaaa
30091
3010**************************
3011
3012
3013*** break/continue test ***
3014$i should go from 0 to 2
3015$j should go from 3 to 4, and $q should go from 3 to 4
3016  $j=3
3017    $q=3
3018    $q=4
3019  $j=4
3020    $q=3
3021    $q=4
3022$j should go from 0 to 2
3023  $j=0
3024  $j=1
3025  $j=2
3026$k should go from 0 to 2
3027    $k=0
3028    $k=1
3029    $k=2
3030$i=0
3031$j should go from 3 to 4, and $q should go from 3 to 4
3032  $j=3
3033    $q=3
3034    $q=4
3035  $j=4
3036    $q=3
3037    $q=4
3038$j should go from 0 to 2
3039  $j=0
3040  $j=1
3041  $j=2
3042$k should go from 0 to 2
3043    $k=0
3044    $k=1
3045    $k=2
3046$i=1
3047$j should go from 3 to 4, and $q should go from 3 to 4
3048  $j=3
3049    $q=3
3050    $q=4
3051  $j=4
3052    $q=3
3053    $q=4
3054$j should go from 0 to 2
3055  $j=0
3056  $j=1
3057  $j=2
3058$k should go from 0 to 2
3059    $k=0
3060    $k=1
3061    $k=2
3062$i=2
3063***********************
3064
3065*** Nested file include test ***
3066<html>
3067This is Finish.phtml.  This file is supposed to be included
3068from regression_test.phtml.  This is normal HTML.
3069and this is PHP code, 2+2=4
3070</html>
3071********************************
3072
3073Tests completed.
3074<html>
3075<head>
3076*** Testing assignments and variable aliasing: ***
3077This should read "blah": blah
3078This should read "this is nifty": this is nifty
3079*************************************************
3080
3081*** Testing integer operators ***
3082Correct result - 8:  8
3083Correct result - 8:  8
3084Correct result - 2:  2
3085Correct result - -2:  -2
3086Correct result - 15:  15
3087Correct result - 15:  15
3088Correct result - 2:  2
3089Correct result - 3:  3
3090*********************************
3091
3092*** Testing real operators ***
3093Correct result - 8:  8
3094Correct result - 8:  8
3095Correct result - 2:  2
3096Correct result - -2:  -2
3097Correct result - 15:  15
3098Correct result - 15:  15
3099Correct result - 2:  2
3100Correct result - 3:  3
3101*********************************
3102
3103*** Testing if/elseif/else control ***
3104
3105This  works
3106this_still_works
3107should_print
3108
3109
3110*** Seriously nested if's test ***
3111** spelling correction by kluzz **
3112Only two lines of text should follow:
3113this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
3114this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
31153 loop iterations should follow:
31162 4
31173 4
31184 4
3119**********************************
3120
3121*** C-style else-if's ***
3122This should be displayed
3123*************************
3124
3125*** WHILE tests ***
31260 is smaller than 20
31271 is smaller than 20
31282 is smaller than 20
31293 is smaller than 20
31304 is smaller than 20
31315 is smaller than 20
31326 is smaller than 20
31337 is smaller than 20
31348 is smaller than 20
31359 is smaller than 20
313610 is smaller than 20
313711 is smaller than 20
313812 is smaller than 20
313913 is smaller than 20
314014 is smaller than 20
314115 is smaller than 20
314216 is smaller than 20
314317 is smaller than 20
314418 is smaller than 20
314519 is smaller than 20
314620 equals 20
314721 is greater than 20
314822 is greater than 20
314923 is greater than 20
315024 is greater than 20
315125 is greater than 20
315226 is greater than 20
315327 is greater than 20
315428 is greater than 20
315529 is greater than 20
315630 is greater than 20
315731 is greater than 20
315832 is greater than 20
315933 is greater than 20
316034 is greater than 20
316135 is greater than 20
316236 is greater than 20
316337 is greater than 20
316438 is greater than 20
316539 is greater than 20
3166*******************
3167
3168
3169*** Nested WHILEs ***
3170Each array variable should be equal to the sum of its indices:
3171${test00}[0] = 0
3172${test00}[1] = 1
3173${test00}[2] = 2
3174${test01}[0] = 1
3175${test01}[1] = 2
3176${test01}[2] = 3
3177${test02}[0] = 2
3178${test02}[1] = 3
3179${test02}[2] = 4
3180${test10}[0] = 1
3181${test10}[1] = 2
3182${test10}[2] = 3
3183${test11}[0] = 2
3184${test11}[1] = 3
3185${test11}[2] = 4
3186${test12}[0] = 3
3187${test12}[1] = 4
3188${test12}[2] = 5
3189${test20}[0] = 2
3190${test20}[1] = 3
3191${test20}[2] = 4
3192${test21}[0] = 3
3193${test21}[1] = 4
3194${test21}[2] = 5
3195${test22}[0] = 4
3196${test22}[1] = 5
3197${test22}[2] = 6
3198*********************
3199
3200*** hash test... ***
3201commented out...
3202**************************
3203
3204*** Hash resizing test ***
3205ba
3206baa
3207baaa
3208baaaa
3209baaaaa
3210baaaaaa
3211baaaaaaa
3212baaaaaaaa
3213baaaaaaaaa
3214baaaaaaaaaa
3215ba
321610
3217baa
32189
3219baaa
32208
3221baaaa
32227
3223baaaaa
32246
3225baaaaaa
32265
3227baaaaaaa
32284
3229baaaaaaaa
32303
3231baaaaaaaaa
32322
3233baaaaaaaaaa
32341
3235**************************
3236
3237
3238*** break/continue test ***
3239$i should go from 0 to 2
3240$j should go from 3 to 4, and $q should go from 3 to 4
3241  $j=3
3242    $q=3
3243    $q=4
3244  $j=4
3245    $q=3
3246    $q=4
3247$j should go from 0 to 2
3248  $j=0
3249  $j=1
3250  $j=2
3251$k should go from 0 to 2
3252    $k=0
3253    $k=1
3254    $k=2
3255$i=0
3256$j should go from 3 to 4, and $q should go from 3 to 4
3257  $j=3
3258    $q=3
3259    $q=4
3260  $j=4
3261    $q=3
3262    $q=4
3263$j should go from 0 to 2
3264  $j=0
3265  $j=1
3266  $j=2
3267$k should go from 0 to 2
3268    $k=0
3269    $k=1
3270    $k=2
3271$i=1
3272$j should go from 3 to 4, and $q should go from 3 to 4
3273  $j=3
3274    $q=3
3275    $q=4
3276  $j=4
3277    $q=3
3278    $q=4
3279$j should go from 0 to 2
3280  $j=0
3281  $j=1
3282  $j=2
3283$k should go from 0 to 2
3284    $k=0
3285    $k=1
3286    $k=2
3287$i=2
3288***********************
3289
3290*** Nested file include test ***
3291<html>
3292This is Finish.phtml.  This file is supposed to be included
3293from regression_test.phtml.  This is normal HTML.
3294and this is PHP code, 2+2=4
3295</html>
3296********************************
3297
3298Tests completed.
3299<html>
3300<head>
3301*** Testing assignments and variable aliasing: ***
3302This should read "blah": blah
3303This should read "this is nifty": this is nifty
3304*************************************************
3305
3306*** Testing integer operators ***
3307Correct result - 8:  8
3308Correct result - 8:  8
3309Correct result - 2:  2
3310Correct result - -2:  -2
3311Correct result - 15:  15
3312Correct result - 15:  15
3313Correct result - 2:  2
3314Correct result - 3:  3
3315*********************************
3316
3317*** Testing real operators ***
3318Correct result - 8:  8
3319Correct result - 8:  8
3320Correct result - 2:  2
3321Correct result - -2:  -2
3322Correct result - 15:  15
3323Correct result - 15:  15
3324Correct result - 2:  2
3325Correct result - 3:  3
3326*********************************
3327
3328*** Testing if/elseif/else control ***
3329
3330This  works
3331this_still_works
3332should_print
3333
3334
3335*** Seriously nested if's test ***
3336** spelling correction by kluzz **
3337Only two lines of text should follow:
3338this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
3339this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
33403 loop iterations should follow:
33412 4
33423 4
33434 4
3344**********************************
3345
3346*** C-style else-if's ***
3347This should be displayed
3348*************************
3349
3350*** WHILE tests ***
33510 is smaller than 20
33521 is smaller than 20
33532 is smaller than 20
33543 is smaller than 20
33554 is smaller than 20
33565 is smaller than 20
33576 is smaller than 20
33587 is smaller than 20
33598 is smaller than 20
33609 is smaller than 20
336110 is smaller than 20
336211 is smaller than 20
336312 is smaller than 20
336413 is smaller than 20
336514 is smaller than 20
336615 is smaller than 20
336716 is smaller than 20
336817 is smaller than 20
336918 is smaller than 20
337019 is smaller than 20
337120 equals 20
337221 is greater than 20
337322 is greater than 20
337423 is greater than 20
337524 is greater than 20
337625 is greater than 20
337726 is greater than 20
337827 is greater than 20
337928 is greater than 20
338029 is greater than 20
338130 is greater than 20
338231 is greater than 20
338332 is greater than 20
338433 is greater than 20
338534 is greater than 20
338635 is greater than 20
338736 is greater than 20
338837 is greater than 20
338938 is greater than 20
339039 is greater than 20
3391*******************
3392
3393
3394*** Nested WHILEs ***
3395Each array variable should be equal to the sum of its indices:
3396${test00}[0] = 0
3397${test00}[1] = 1
3398${test00}[2] = 2
3399${test01}[0] = 1
3400${test01}[1] = 2
3401${test01}[2] = 3
3402${test02}[0] = 2
3403${test02}[1] = 3
3404${test02}[2] = 4
3405${test10}[0] = 1
3406${test10}[1] = 2
3407${test10}[2] = 3
3408${test11}[0] = 2
3409${test11}[1] = 3
3410${test11}[2] = 4
3411${test12}[0] = 3
3412${test12}[1] = 4
3413${test12}[2] = 5
3414${test20}[0] = 2
3415${test20}[1] = 3
3416${test20}[2] = 4
3417${test21}[0] = 3
3418${test21}[1] = 4
3419${test21}[2] = 5
3420${test22}[0] = 4
3421${test22}[1] = 5
3422${test22}[2] = 6
3423*********************
3424
3425*** hash test... ***
3426commented out...
3427**************************
3428
3429*** Hash resizing test ***
3430ba
3431baa
3432baaa
3433baaaa
3434baaaaa
3435baaaaaa
3436baaaaaaa
3437baaaaaaaa
3438baaaaaaaaa
3439baaaaaaaaaa
3440ba
344110
3442baa
34439
3444baaa
34458
3446baaaa
34477
3448baaaaa
34496
3450baaaaaa
34515
3452baaaaaaa
34534
3454baaaaaaaa
34553
3456baaaaaaaaa
34572
3458baaaaaaaaaa
34591
3460**************************
3461
3462
3463*** break/continue test ***
3464$i should go from 0 to 2
3465$j should go from 3 to 4, and $q should go from 3 to 4
3466  $j=3
3467    $q=3
3468    $q=4
3469  $j=4
3470    $q=3
3471    $q=4
3472$j should go from 0 to 2
3473  $j=0
3474  $j=1
3475  $j=2
3476$k should go from 0 to 2
3477    $k=0
3478    $k=1
3479    $k=2
3480$i=0
3481$j should go from 3 to 4, and $q should go from 3 to 4
3482  $j=3
3483    $q=3
3484    $q=4
3485  $j=4
3486    $q=3
3487    $q=4
3488$j should go from 0 to 2
3489  $j=0
3490  $j=1
3491  $j=2
3492$k should go from 0 to 2
3493    $k=0
3494    $k=1
3495    $k=2
3496$i=1
3497$j should go from 3 to 4, and $q should go from 3 to 4
3498  $j=3
3499    $q=3
3500    $q=4
3501  $j=4
3502    $q=3
3503    $q=4
3504$j should go from 0 to 2
3505  $j=0
3506  $j=1
3507  $j=2
3508$k should go from 0 to 2
3509    $k=0
3510    $k=1
3511    $k=2
3512$i=2
3513***********************
3514
3515*** Nested file include test ***
3516<html>
3517This is Finish.phtml.  This file is supposed to be included
3518from regression_test.phtml.  This is normal HTML.
3519and this is PHP code, 2+2=4
3520</html>
3521********************************
3522
3523Tests completed.
3524<html>
3525<head>
3526*** Testing assignments and variable aliasing: ***
3527This should read "blah": blah
3528This should read "this is nifty": this is nifty
3529*************************************************
3530
3531*** Testing integer operators ***
3532Correct result - 8:  8
3533Correct result - 8:  8
3534Correct result - 2:  2
3535Correct result - -2:  -2
3536Correct result - 15:  15
3537Correct result - 15:  15
3538Correct result - 2:  2
3539Correct result - 3:  3
3540*********************************
3541
3542*** Testing real operators ***
3543Correct result - 8:  8
3544Correct result - 8:  8
3545Correct result - 2:  2
3546Correct result - -2:  -2
3547Correct result - 15:  15
3548Correct result - 15:  15
3549Correct result - 2:  2
3550Correct result - 3:  3
3551*********************************
3552
3553*** Testing if/elseif/else control ***
3554
3555This  works
3556this_still_works
3557should_print
3558
3559
3560*** Seriously nested if's test ***
3561** spelling correction by kluzz **
3562Only two lines of text should follow:
3563this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
3564this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
35653 loop iterations should follow:
35662 4
35673 4
35684 4
3569**********************************
3570
3571*** C-style else-if's ***
3572This should be displayed
3573*************************
3574
3575*** WHILE tests ***
35760 is smaller than 20
35771 is smaller than 20
35782 is smaller than 20
35793 is smaller than 20
35804 is smaller than 20
35815 is smaller than 20
35826 is smaller than 20
35837 is smaller than 20
35848 is smaller than 20
35859 is smaller than 20
358610 is smaller than 20
358711 is smaller than 20
358812 is smaller than 20
358913 is smaller than 20
359014 is smaller than 20
359115 is smaller than 20
359216 is smaller than 20
359317 is smaller than 20
359418 is smaller than 20
359519 is smaller than 20
359620 equals 20
359721 is greater than 20
359822 is greater than 20
359923 is greater than 20
360024 is greater than 20
360125 is greater than 20
360226 is greater than 20
360327 is greater than 20
360428 is greater than 20
360529 is greater than 20
360630 is greater than 20
360731 is greater than 20
360832 is greater than 20
360933 is greater than 20
361034 is greater than 20
361135 is greater than 20
361236 is greater than 20
361337 is greater than 20
361438 is greater than 20
361539 is greater than 20
3616*******************
3617
3618
3619*** Nested WHILEs ***
3620Each array variable should be equal to the sum of its indices:
3621${test00}[0] = 0
3622${test00}[1] = 1
3623${test00}[2] = 2
3624${test01}[0] = 1
3625${test01}[1] = 2
3626${test01}[2] = 3
3627${test02}[0] = 2
3628${test02}[1] = 3
3629${test02}[2] = 4
3630${test10}[0] = 1
3631${test10}[1] = 2
3632${test10}[2] = 3
3633${test11}[0] = 2
3634${test11}[1] = 3
3635${test11}[2] = 4
3636${test12}[0] = 3
3637${test12}[1] = 4
3638${test12}[2] = 5
3639${test20}[0] = 2
3640${test20}[1] = 3
3641${test20}[2] = 4
3642${test21}[0] = 3
3643${test21}[1] = 4
3644${test21}[2] = 5
3645${test22}[0] = 4
3646${test22}[1] = 5
3647${test22}[2] = 6
3648*********************
3649
3650*** hash test... ***
3651commented out...
3652**************************
3653
3654*** Hash resizing test ***
3655ba
3656baa
3657baaa
3658baaaa
3659baaaaa
3660baaaaaa
3661baaaaaaa
3662baaaaaaaa
3663baaaaaaaaa
3664baaaaaaaaaa
3665ba
366610
3667baa
36689
3669baaa
36708
3671baaaa
36727
3673baaaaa
36746
3675baaaaaa
36765
3677baaaaaaa
36784
3679baaaaaaaa
36803
3681baaaaaaaaa
36822
3683baaaaaaaaaa
36841
3685**************************
3686
3687
3688*** break/continue test ***
3689$i should go from 0 to 2
3690$j should go from 3 to 4, and $q should go from 3 to 4
3691  $j=3
3692    $q=3
3693    $q=4
3694  $j=4
3695    $q=3
3696    $q=4
3697$j should go from 0 to 2
3698  $j=0
3699  $j=1
3700  $j=2
3701$k should go from 0 to 2
3702    $k=0
3703    $k=1
3704    $k=2
3705$i=0
3706$j should go from 3 to 4, and $q should go from 3 to 4
3707  $j=3
3708    $q=3
3709    $q=4
3710  $j=4
3711    $q=3
3712    $q=4
3713$j should go from 0 to 2
3714  $j=0
3715  $j=1
3716  $j=2
3717$k should go from 0 to 2
3718    $k=0
3719    $k=1
3720    $k=2
3721$i=1
3722$j should go from 3 to 4, and $q should go from 3 to 4
3723  $j=3
3724    $q=3
3725    $q=4
3726  $j=4
3727    $q=3
3728    $q=4
3729$j should go from 0 to 2
3730  $j=0
3731  $j=1
3732  $j=2
3733$k should go from 0 to 2
3734    $k=0
3735    $k=1
3736    $k=2
3737$i=2
3738***********************
3739
3740*** Nested file include test ***
3741<html>
3742This is Finish.phtml.  This file is supposed to be included
3743from regression_test.phtml.  This is normal HTML.
3744and this is PHP code, 2+2=4
3745</html>
3746********************************
3747
3748Tests completed.
3749<html>
3750<head>
3751*** Testing assignments and variable aliasing: ***
3752This should read "blah": blah
3753This should read "this is nifty": this is nifty
3754*************************************************
3755
3756*** Testing integer operators ***
3757Correct result - 8:  8
3758Correct result - 8:  8
3759Correct result - 2:  2
3760Correct result - -2:  -2
3761Correct result - 15:  15
3762Correct result - 15:  15
3763Correct result - 2:  2
3764Correct result - 3:  3
3765*********************************
3766
3767*** Testing real operators ***
3768Correct result - 8:  8
3769Correct result - 8:  8
3770Correct result - 2:  2
3771Correct result - -2:  -2
3772Correct result - 15:  15
3773Correct result - 15:  15
3774Correct result - 2:  2
3775Correct result - 3:  3
3776*********************************
3777
3778*** Testing if/elseif/else control ***
3779
3780This  works
3781this_still_works
3782should_print
3783
3784
3785*** Seriously nested if's test ***
3786** spelling correction by kluzz **
3787Only two lines of text should follow:
3788this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
3789this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
37903 loop iterations should follow:
37912 4
37923 4
37934 4
3794**********************************
3795
3796*** C-style else-if's ***
3797This should be displayed
3798*************************
3799
3800*** WHILE tests ***
38010 is smaller than 20
38021 is smaller than 20
38032 is smaller than 20
38043 is smaller than 20
38054 is smaller than 20
38065 is smaller than 20
38076 is smaller than 20
38087 is smaller than 20
38098 is smaller than 20
38109 is smaller than 20
381110 is smaller than 20
381211 is smaller than 20
381312 is smaller than 20
381413 is smaller than 20
381514 is smaller than 20
381615 is smaller than 20
381716 is smaller than 20
381817 is smaller than 20
381918 is smaller than 20
382019 is smaller than 20
382120 equals 20
382221 is greater than 20
382322 is greater than 20
382423 is greater than 20
382524 is greater than 20
382625 is greater than 20
382726 is greater than 20
382827 is greater than 20
382928 is greater than 20
383029 is greater than 20
383130 is greater than 20
383231 is greater than 20
383332 is greater than 20
383433 is greater than 20
383534 is greater than 20
383635 is greater than 20
383736 is greater than 20
383837 is greater than 20
383938 is greater than 20
384039 is greater than 20
3841*******************
3842
3843
3844*** Nested WHILEs ***
3845Each array variable should be equal to the sum of its indices:
3846${test00}[0] = 0
3847${test00}[1] = 1
3848${test00}[2] = 2
3849${test01}[0] = 1
3850${test01}[1] = 2
3851${test01}[2] = 3
3852${test02}[0] = 2
3853${test02}[1] = 3
3854${test02}[2] = 4
3855${test10}[0] = 1
3856${test10}[1] = 2
3857${test10}[2] = 3
3858${test11}[0] = 2
3859${test11}[1] = 3
3860${test11}[2] = 4
3861${test12}[0] = 3
3862${test12}[1] = 4
3863${test12}[2] = 5
3864${test20}[0] = 2
3865${test20}[1] = 3
3866${test20}[2] = 4
3867${test21}[0] = 3
3868${test21}[1] = 4
3869${test21}[2] = 5
3870${test22}[0] = 4
3871${test22}[1] = 5
3872${test22}[2] = 6
3873*********************
3874
3875*** hash test... ***
3876commented out...
3877**************************
3878
3879*** Hash resizing test ***
3880ba
3881baa
3882baaa
3883baaaa
3884baaaaa
3885baaaaaa
3886baaaaaaa
3887baaaaaaaa
3888baaaaaaaaa
3889baaaaaaaaaa
3890ba
389110
3892baa
38939
3894baaa
38958
3896baaaa
38977
3898baaaaa
38996
3900baaaaaa
39015
3902baaaaaaa
39034
3904baaaaaaaa
39053
3906baaaaaaaaa
39072
3908baaaaaaaaaa
39091
3910**************************
3911
3912
3913*** break/continue test ***
3914$i should go from 0 to 2
3915$j should go from 3 to 4, and $q should go from 3 to 4
3916  $j=3
3917    $q=3
3918    $q=4
3919  $j=4
3920    $q=3
3921    $q=4
3922$j should go from 0 to 2
3923  $j=0
3924  $j=1
3925  $j=2
3926$k should go from 0 to 2
3927    $k=0
3928    $k=1
3929    $k=2
3930$i=0
3931$j should go from 3 to 4, and $q should go from 3 to 4
3932  $j=3
3933    $q=3
3934    $q=4
3935  $j=4
3936    $q=3
3937    $q=4
3938$j should go from 0 to 2
3939  $j=0
3940  $j=1
3941  $j=2
3942$k should go from 0 to 2
3943    $k=0
3944    $k=1
3945    $k=2
3946$i=1
3947$j should go from 3 to 4, and $q should go from 3 to 4
3948  $j=3
3949    $q=3
3950    $q=4
3951  $j=4
3952    $q=3
3953    $q=4
3954$j should go from 0 to 2
3955  $j=0
3956  $j=1
3957  $j=2
3958$k should go from 0 to 2
3959    $k=0
3960    $k=1
3961    $k=2
3962$i=2
3963***********************
3964
3965*** Nested file include test ***
3966<html>
3967This is Finish.phtml.  This file is supposed to be included
3968from regression_test.phtml.  This is normal HTML.
3969and this is PHP code, 2+2=4
3970</html>
3971********************************
3972
3973Tests completed.
3974<html>
3975<head>
3976*** Testing assignments and variable aliasing: ***
3977This should read "blah": blah
3978This should read "this is nifty": this is nifty
3979*************************************************
3980
3981*** Testing integer operators ***
3982Correct result - 8:  8
3983Correct result - 8:  8
3984Correct result - 2:  2
3985Correct result - -2:  -2
3986Correct result - 15:  15
3987Correct result - 15:  15
3988Correct result - 2:  2
3989Correct result - 3:  3
3990*********************************
3991
3992*** Testing real operators ***
3993Correct result - 8:  8
3994Correct result - 8:  8
3995Correct result - 2:  2
3996Correct result - -2:  -2
3997Correct result - 15:  15
3998Correct result - 15:  15
3999Correct result - 2:  2
4000Correct result - 3:  3
4001*********************************
4002
4003*** Testing if/elseif/else control ***
4004
4005This  works
4006this_still_works
4007should_print
4008
4009
4010*** Seriously nested if's test ***
4011** spelling correction by kluzz **
4012Only two lines of text should follow:
4013this should be displayed. should be:  $i=1, $j=0.  is:  $i=1, $j=0
4014this is supposed to be displayed. should be:  $i=2, $j=4.  is:  $i=2, $j=4
40153 loop iterations should follow:
40162 4
40173 4
40184 4
4019**********************************
4020
4021*** C-style else-if's ***
4022This should be displayed
4023*************************
4024
4025*** WHILE tests ***
40260 is smaller than 20
40271 is smaller than 20
40282 is smaller than 20
40293 is smaller than 20
40304 is smaller than 20
40315 is smaller than 20
40326 is smaller than 20
40337 is smaller than 20
40348 is smaller than 20
40359 is smaller than 20
403610 is smaller than 20
403711 is smaller than 20
403812 is smaller than 20
403913 is smaller than 20
404014 is smaller than 20
404115 is smaller than 20
404216 is smaller than 20
404317 is smaller than 20
404418 is smaller than 20
404519 is smaller than 20
404620 equals 20
404721 is greater than 20
404822 is greater than 20
404923 is greater than 20
405024 is greater than 20
405125 is greater than 20
405226 is greater than 20
405327 is greater than 20
405428 is greater than 20
405529 is greater than 20
405630 is greater than 20
405731 is greater than 20
405832 is greater than 20
405933 is greater than 20
406034 is greater than 20
406135 is greater than 20
406236 is greater than 20
406337 is greater than 20
406438 is greater than 20
406539 is greater than 20
4066*******************
4067
4068
4069*** Nested WHILEs ***
4070Each array variable should be equal to the sum of its indices:
4071${test00}[0] = 0
4072${test00}[1] = 1
4073${test00}[2] = 2
4074${test01}[0] = 1
4075${test01}[1] = 2
4076${test01}[2] = 3
4077${test02}[0] = 2
4078${test02}[1] = 3
4079${test02}[2] = 4
4080${test10}[0] = 1
4081${test10}[1] = 2
4082${test10}[2] = 3
4083${test11}[0] = 2
4084${test11}[1] = 3
4085${test11}[2] = 4
4086${test12}[0] = 3
4087${test12}[1] = 4
4088${test12}[2] = 5
4089${test20}[0] = 2
4090${test20}[1] = 3
4091${test20}[2] = 4
4092${test21}[0] = 3
4093${test21}[1] = 4
4094${test21}[2] = 5
4095${test22}[0] = 4
4096${test22}[1] = 5
4097${test22}[2] = 6
4098*********************
4099
4100*** hash test... ***
4101commented out...
4102**************************
4103
4104*** Hash resizing test ***
4105ba
4106baa
4107baaa
4108baaaa
4109baaaaa
4110baaaaaa
4111baaaaaaa
4112baaaaaaaa
4113baaaaaaaaa
4114baaaaaaaaaa
4115ba
411610
4117baa
41189
4119baaa
41208
4121baaaa
41227
4123baaaaa
41246
4125baaaaaa
41265
4127baaaaaaa
41284
4129baaaaaaaa
41303
4131baaaaaaaaa
41322
4133baaaaaaaaaa
41341
4135**************************
4136
4137
4138*** break/continue test ***