fix #98 #99 #100 #101 #102 #103
[m6w6/ext-http] / tests / propertyproxy001.phpt
index 3f9d70a1aed123ec77d580d45f8068e047e2c51e..88a35436b18e680a725306f99657adb520b0c80b 100644 (file)
@@ -1,17 +1,23 @@
 --TEST--
 property proxy
+--SKIPIF--
+<?php
+include "skipif.inc";
+?>
 --FILE--
 <?php
 
 class m extends http\Message { 
-    function test() { 
+    function test1() { 
         $this->headers["bykey"] = 1; 
         var_dump($this->headers); 
-
+       }
+       function test2() {
         $h = &$this->headers; 
         $h["by1ref"] = 2; 
         var_dump($this->headers); 
-
+       }
+       function test3() {
         $x = &$this->headers["byXref"];
 
         $h = &$this->headers["by2ref"]; 
@@ -20,7 +26,8 @@ class m extends http\Message {
 
         $x = 2;
         var_dump($this->headers);
-
+       }
+       function test4() {
         $this->headers["bynext"][] = 1;
         $this->headers["bynext"][] = 2;
         $this->headers["bynext"][] = 3;
@@ -29,7 +36,10 @@ class m extends http\Message {
 } 
 
 $m=new m; 
-$m->test(); 
+$m->test1(); 
+$m->test2(); 
+$m->test3(); 
+$m->test4(); 
 echo $m,"\n";
 
 ?>
@@ -51,7 +61,7 @@ array(3) {
   ["by1ref"]=>
   int(2)
   ["by2ref"]=>
-  &int(1)
+  int(1)
 }
 array(4) {
   ["bykey"]=>
@@ -59,9 +69,9 @@ array(4) {
   ["by1ref"]=>
   int(2)
   ["by2ref"]=>
-  &int(1)
+  int(1)
   ["byXref"]=>
-  &int(2)
+  int(2)
 }
 array(5) {
   ["bykey"]=>
@@ -69,9 +79,9 @@ array(5) {
   ["by1ref"]=>
   int(2)
   ["by2ref"]=>
-  &int(1)
+  int(1)
   ["byXref"]=>
-  &int(2)
+  int(2)
   ["bynext"]=>
   array(3) {
     [0]=>